Jump to content

[1.10] Changing vanilla classes


Egietje

Recommended Posts

The whole point of Forge is that you don't modify vanilla code, Forge provides the necessary hooks and events for you.

 

If you want to make a mob, create a class that extends the appropriate

Entity

subclass (e.g.

EntityMob

) and register it with

EntityRegistry.registerModEntity

. You can then create a renderer extending the appropriate

Render

subclass (e.g.

RenderBiped

) and register it with

RenderingRegistry.registerEntityRenderingHandler(Class<T>, IRenderFactory<? super T>)

.

 

There are more detailed tutorials out there, this is just a basic overview.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Jabelar has a tutorial here. It looks like it was written for 1.7.10/1.8, but it should still be mostly relevant.

 

There may be other tutorials out there, I don't really keep track of them myself.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.

×
×
  • Create New...

Important Information

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