Skip to content

Instantly share code, notes, and snippets.

View vectorwing's full-sized avatar

vectorwing vectorwing

View GitHub Profile

On July 28th, 2020, I released a small project in CurseForge. A mod I made to keep my mind occupied during the COVID pandemic.

I've always wanted to see Minecraft add more content around the farming and food areas of the game, even back when I played in late Alpha. So I decided to try my hand at spriting some meals. The sprites seemed popular enough with the MC communities I shared them with, and soon enough, people asked me if this was going to be a mod.

This isn't my first attempt at making mods. Years ago, on 1.7.10, I attempted to make "Age of the Artisan", a much grander-scoped mod which included the FD crops in it. Needless to say, I was naive, and bit far more than I could chew... I abandoned the idea just because I couldn't get my custom bow to zoom. 😄

After some thought, I decided to try my hand at modding again, now that I had a lot more experience with programming from work/college. And this time, it worked out!

Farmer's Delight looked quite different in the original doc I wrote for it, b

[25Sep2023 18:30:50.288] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, vectorwing, --version, 1.20.1, --gameDir, E:/Jogos/Minecraft/Prism/instances/1.20.1 Testing/.minecraft, --assetsDir, E:/Jogos/Minecraft/Prism/assets, --assetIndex, 5, --uuid, b3705392579144789abb1aff209157b1, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, forgeclient, --fml.forgeVersion, 47.1.70, --fml.fmlVersion, 47.1.47, --fml.mcVersion, 1.20.1, --fml.mcpVersion, 20230612.114412]
[25Sep2023 18:30:50.295] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.4 by Eclipse Adoptium; OS Windows 10 arch amd64 version 10.0
[25Sep2023 18:30:50.680] [main/INFO] [net.minecraftforge.fml.loading.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow
[25Sep2023 18:30:50.778] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6
[25Sep2023 18:30:50.887] [main/INFO] [EARLYDISPLAY/]:
[02Jun2022 18:43:38.263] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, vectorwing, --version, 1.18.2, --gameDir, E:/Jogos/MultiMC/instances/Firefly Omen/.minecraft, --assetsDir, E:/Jogos/MultiMC/assets, --assetIndex, 1.18, --uuid, b3705392579144789abb1aff209157b1, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, forgeclient, --fml.forgeVersion, 40.1.31, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914]
[02Jun2022 18:43:38.263] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.1 by Eclipse Adoptium
[02Jun2022 18:43:38.409] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/E:/Jogos/MultiMC/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2348!/ Service=ModLauncher Env=CLIENT
[02Jun2022 18:43:40.155] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launchi
@vectorwing
vectorwing / latest.log
Created August 2, 2020 05:47
Snippet - Error Message
[02:44:26] [Server thread/FATAL] [minecraft/ThreadTaskExecutor]: Error executing task on Server
java.lang.NullPointerException: null
at vectorwing.farmersdelight.blocks.CookingPotTileEntity.getCapability(CookingPotTileEntity.java:437) ~[?:1.15.2-0.1.3] {re:classloading}
at com.commodorethrawn.strawgolem.events.GolemEventHandler.setPriorityChest(GolemEventHandler.java:62) ~[?:1.15.2-1.9-beta] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_20_GolemEventHandler_setPriorityChest_RightClickBlock.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.0-service.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?] {}
at net.minecraftforge.common.ForgeHooks.onRightClickBlock(ForgeHooks.java:785) ~[?:?] {re:classloading}
at net.minecraft.server.management.PlayerInteractionManager.func_219441_a(PlayerInteractionManager.java:315) ~[?:?] {re:classloading}
at net.minecra
package com.github.vectorwing.farmersdelight.blocks;
import com.github.vectorwing.farmersdelight.init.TileEntityInit;
import net.minecraft.block.CampfireBlock;
import net.minecraft.inventory.*;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CampfireCookingRecipe;
import net.minecraft.item.crafting.IRecipeType;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.network.play.server.SUpdateTileEntityPacket;
package com.github.vectorwing.farmersdelight.data;
import com.github.vectorwing.farmersdelight.FarmersDelight;
import com.github.vectorwing.farmersdelight.init.ItemInit;
import net.minecraft.data.DataGenerator;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.generators.ExistingFileHelper;
import net.minecraftforge.client.model.generators.ItemModelProvider;
public class Items extends ItemModelProvider {