Posted May 24, 201510 yr I want to recreate the entity that heals the dragon in the end, but I have no idea what it's called (in the code) or how to create an entity in 1.8. Is there a tutorial that shows how to create an entity? The proud(ish) developer of Ancients
May 24, 201510 yr 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(). http://i.imgur.com/NdrFdld.png[/img]
May 24, 201510 yr Author 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. The proud(ish) developer of Ancients
May 24, 201510 yr 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. http://i.imgur.com/NdrFdld.png[/img]
May 25, 201510 yr Author I'm creating an 'artifact' that essentially looks like the ender crystal and stores a string in it's nbt. The proud(ish) developer of Ancients
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.