Jump to content

ka268

Members
  • Posts

    5
  • Joined

  • Last visited

ka268's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. It says filenotfound but I have ingot_copper.json?
  2. Ok this is the code I put in ClientProxy @Mod.EventBusSubscriber() public static class RegistrationHandler { @SubscribeEvent public static void registerItems(ModelRegistryEvent event) { ModItems.registerModels(); } } } Does the method need a different name to the one I have in main or will it be ok if they are both called "RegistrationHandler" ? This is also the error I get when I run it. Thank you everybody for taking your time to help.
  3. I have added the @SubscriberEvent but it still seems to give me the same problem. This is the new code, I added the @subscriberEvent to registerItems(ModelRegistryEvent event) and Side.CLIENT to @Mod.EventBusSubscriber. Is adding Side.CLIENT there ok? Or do I need to move the whole registerItems(ModelRegistryEvent event) to ClientProxy? @Mod.EventBusSubscriber(Side.CLIENT) public static class RegistrationHandler { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { ModItems.register(event.getRegistry()); } @SubscribeEvent public static void registerItems(ModelRegistryEvent event){ ModItems.registerModels(); } } }
  4. I'm following this tutorial https://shadowfacts.net/tutorials/forge-modding-112/overview/. I got to the part where I add a copper ingot but in game it is only a pinkbox with text on it, can somebody show me where I went wrong? I uploaded the files here https://github.com/QuackQuackImADuck/TestMod
×
×
  • Create New...

Important Information

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