Jump to content

GreenbackCafe

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by GreenbackCafe

  1. How do you correctly use those fields after onRegisterItems has completed?
  2. 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
  3. 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. https://github.com/GreenbackCafe/randommod
  4. Whoops, I posted this in the wrong place. My bad
  5. 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. https://github.com/GreenbackCafe/randommod
  6. You're right, I should use a better tutorial. Luckily I didn't spend too much time on this yet.
  7. 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. modid-1.0.jar
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.