Jump to content

Custom Mob Texture Issue when in minecraft client


majesticmadman98

Recommended Posts

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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