GreenbackCafe
-
Posts
7 -
Joined
-
Last visited
Posts posted by GreenbackCafe
-
-
This did not work for me. The items still showed up as normal, but the anvil is still not accepting the repair item even though I called the fields. GitHub updated
-
I'm in the process of rewriting my code after finding a better tutorial, and I was wondering how to use an item as a repair material for tools/armor. Before, I would just call the variable directly from my ItemList (which would have things like "public static Item copper_ingot;"), and the ItemList would be used to statically initialise the items. Now that I've learned that's not a good idea, I switched to Cadiboo's method, but I no longer have a variable to reference as an Item for things like this. Is there another way to do this?
I'd also appreciate any general suggestions on how to improve my code.
-
Whoops, I posted this in the wrong place. My bad
-
I'm in the process of rewriting my code after finding a better tutorial, and I was wondering how to use an item as a repair material for tools/armor. Before, I would just call the variable directly from my ItemList (which would have things like "public static Item copper_ingot;"), and the ItemList would be used to statically initialise the items. Now that I've learned that's not a good idea, I switched to Cadiboo's method, but I no longer have a variable to reference as an Item for things like this. Is there another way to do this?
I'd also appreciate any general suggestions on how to improve my code.
-
You're right, I should use a better tutorial. Luckily I didn't spend too much time on this yet.
-
When I run my mod using eclipse, everything is working. But when I use gradlew build in the command prompt and put the jar into my mods folder, it crashes. Jar attached.
Forge version: 1.13.2 - 25.0.219
Crash report: https://pastebin.com/Y6akn6pz
Any help would be appreciated.
[1.13.2] Anvil repair materials
in Modder Support
Posted
How do you correctly use those fields after onRegisterItems has completed?