Jump to content

Trying to make nearby pigmen angry.


Recommended Posts

Hi there. I'm Brad. I recently started work on my own Minecraft Forge mod for MC version 1.7.2. I'm using forge build


I've added some nether ore generation to my mod and I would like to have any nearby pigmen become angry at the player which is mining these nether ores. I've looked at the MFR code on GitHub and in their netherores block's code, they are calling the "becomeAngryAt" method that is part of the "net.minecraft.entity.monster.EntityPigZombie" class. I tried to do this in my code but it turns out that the "becomeAngryAt" method is actually private to the EntityPigZombie class so I am unable to call this method. I did some searching on line and I found this patch file that I'm guessing changes this method from private to public but I don't know I would go about applying the patch or if there is another way of angering nearby pigmen.


Thanks in advance,


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.

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.