Jump to content

[1.8]How do I create an Entity?


memcallen

Recommended Posts

Have you tried searching, perhaps on Google?

 

There are lots of tutorials, though I'm not sure how many are specifically for 1.8. Any tutorial for 1.7.10 should get you going for 1.8 as well, since the basics of coding an entity (registering it to EntityRegistry#registerModEntity, registering the render class, etc.) has not changed a whole lot, and mostly not at all.

 

As for the entity in the end, that's an EntityEnderCrystal, but the code for healing is actually within the ender dragon class called from onLivingUpdate() -> updateDragonEnderCrystal().

Link to comment
Share on other sites

Ok, thanks for the entity class. I asked for a tutorial because it looks like a lot of things changed in 1.8 so I assumed that it changed as well.

It has, but not really - a few methods have been renamed, the AI has changed a little, entity rendering has changed a little with the addition of Layers, but the basics of the actual entity class itself are nearly identical.

 

Unless you are planning to something really complicated, which it doesn't sound like you are, you are unlikely to run into any major issues following a 1.7 tutorial and using that code for 1.8.

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.