I am working on a boar in Minecraft, and it was all going smoothly until I tried to code it to attack when it was attacked. I've spent about 6 hours of browsing the Internet and just toying with the tasks and AI to get something working, and nothing happened besides crashes when I summoned it, it not summoning at all, or it being summoned, but just as a passive mob. The Model and Render classes work just fine, the entity showed up in the game and worked fine up to the point when I added the walking and head animations. So, I will link the EntityBoar file only, unless you need to see the Model and Render classes. With this code in particular, the game continues to run even after attempting to summon the Boar, but Boar won't summon. I am working on Forge 1.12.2. Thanks
I am working on a boar in Minecraft, and it was all going smoothly until I tried to code it to attack when it was attacked. I've spent about 6 hours of browsing the Internet and just toying with the tasks and AI to get something working, and nothing happened besides crashes when I summoned it, it not summoning at all, or it being summoned, but just as a passive mob. The Model and Render classes work just fine, the entity showed up in the game and worked fine up to the point when I added the walking and head animations. So, I will link the EntityBoar file only, unless you need to see the Model and Render classes. With this code in particular, the game continues to run even after attempting to summon the Boar, but Boar won't summon. I am working on Forge 1.12.2. Thanks
Minecraft Expansion
Mod for 1.12.2. Adding onto Minecraft while staying close to vanilla.
Download here