Posted June 1, 201411 yr Ok, following a tutorial for custom mobs i get an error in this line of code, the guy says that it's from a previous tutorial but doesn't specify which one, so I'm wondering what do i have to do to get this line to work: EntityRegistry.registerModEntity(entityClass, name, entityId, dma.instance, 64, 1, true); this line of code is from my entity handler, if you want the other code parts I'll stick em up. dma.instance is the part that shows as errored.
June 1, 201411 yr Do you even Java?!? Do you actuall define "entityClass", "name" or "entityId"? And yes, you need your mod's instance, wich is defined as follows: @Instance(MODID) public static YourMod instance; Where MODID is your mod's id, and YourMod is the class with the @Mod annotation; Pretty straight forward...
June 1, 201411 yr Author Do you even Java?!? Do you actuall define "entityClass", "name" or "entityId"? And yes, you need your mod's instance, wich is defined as follows: @Instance(MODID) public static YourMod instance; Where MODID is your mod's id, and YourMod is the class with the @Mod annotation; Pretty straight forward... Yes they are defined, the only thing that wasn't done was the section i said wasnt
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.