Jump to content

SusiKette

Members
  • Posts

    5
  • Joined

  • Last visited

SusiKette's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. In the tutorial series I'm following I'm now at entities and at the end of the first part, the custom entity should be spawnable and it should have a spawn egg in the creative tab where the rest of the eggs are. However, I can't find it, so I'm assuming the entity is not begin registered correctly. There are no errors anywhere in the code, so I'm not sure what I'm missing. I'll put some pastebin links for the class files that have something entity related (excluding the entity's model). EntityWerewolf: https://pastebin.com/qyZ3f95y EntityInit: https://pastebin.com/nbSwRTX2 RenderHandler: https://pastebin.com/wBy9Jw12 RegistryHandler: https://pastebin.com/1tYMERQ1
  2. EDIT: Got it working now. There were some problems in the json files and the folder names, but I was able to fix them in the end Thanks for the help!
  3. Thanks for the help so far Assuming I understood what was in the link (I'm not a native English speaker, so I might derp sometimes :p), the lines I mentioned are not needed. The only error that still remains it the second one in the original post. And as a last kinda unrelated note, I kinda wish Eclipse had some sort of spell check to avoid these kinds of errors from happening ^^;;
  4. I was following a tutorial, so I did things the same way they did. They did edit the video, so I'm not sure if they accidentally edited out the part where they added preInit etc. to CommonProxy. Do I really need those functions in CommonProxy anyways? If not, I'm assuming I can just delete the "proxy.preInit(event);" lines. Also, I'm getting different error after changing the comma to period in item.getRegistryName(). It's on the same place but this time it says "The method getReristryName() is undefined for the type Item"
  5. I'm done writing the code to add a new item which as far as I'm concerned should be correct, but I'm still getting errors in few class files. The errors as far as I know are for things that are included with forge, so I'm not sure how to fix them. 1. The preInit from the following code is underlined and gives this message: "The method preInit(FMLPreInitializationEvent) is undefined for the type CommonProxy". The same error is in the init and postInit variants as well. There are no errors in the CommonProxy class file either, but I can add it if it's needed. @EventHandler public static void preInit(FMLPreInitializationEvent event) { proxy.preInit(event); } 2. The getRegistry() gives the following error "The method getRegistry() is undefined for the type RegistryEvent<Item>". @SubscribeEvent public static void onItemRegister(RegistryEvent<Item> event) { event.getRegistry().registerAll(ItemInit.ITEMS.toArray(new Item[0])); } 3. The getRegistryName() gives the following error "The method getReristryName() is undefined for the type ClientProxy". @Override public void registerItemRenderer(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item, getReristryName(), id)); } I'm not sure how common there kinds of errors are, so I'm not sure how much information is needed. Let me know if you need more information on something.
×
×
  • Create New...

Important Information

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