Posted April 14, 20205 yr So I created an entity that inherits from ZombiePigmanEntity and I've been able to replace the basic sounds like death and the like because they are inside methods that can be overritten. The problem is that the ENTITY_ZOMBIE_PIGMAN_ANGRY sound is inside a method that uses a bunch of other methods inside the class. This is problematic because if I override it I have to define the other functions it calls which basically means I have to overwrite everything. The alternative is inheriting directly from the parent ZombieEntity and copy-pasting the vanilla code inside the ZombiePigmanEntity and just change it to fit my mod (which I think is better). Is there a less messy way to do this? I wish I could just override an if statement within a method but I guess that's life hahaha. This is the code for ZombiePigmanEntity: [remove copyrighted code - diesieben07] The method that is giving me trouble is the updateAITasks() one. Help would be greatly appreciated! Edited April 14, 20205 yr by diesieben07
April 14, 20205 yr Author Bump Oops. I just noticed I didn't attack the code right. Help would be appreciated (again). Thanks!
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.