Started by
Ello.-'_@
on
Topic category: Help with Minecraft modding (Java Edition)
Hey, i know i ask a lot of questions, and i am sorry! But, my mod has a boss fight with 4 stages what it drops is a crown, and how do i make that crown make pigman fight for me?
This is not possible without editing the pigmen's code, which could remove support for other mods that do the same.
How do i make that happen? I really need to do this or this boss item is useless.
do this to make pigzombies target an entity you designate:
https://mcreator.net/forum/66575/how-make-mining-block-turn-pigmen-aggr…
and use the global trigger "Entity attacked", check if {sourceentity} is EntityPlayer and wearing the crown, then set pigzombies attack target to the {target/event entity}
I cant find how to detect if the player is wearing the crown. ive searched the internet and i found nothing.
Heh, i did that at the start i just forgot to put the source entity in. XD
wait it still didnt work it just made the pigman swing the sword, unless i do the "deal 1 damage to entity generic." that will target a specific entity though, no?
you didn't read the linked post carefully. you have to lock the procedure and modify the code
ok i went in the code would it be like this?
ok it worked but right clicking now hurts who im attacking
what do you want it to do?
Nothin its fine. Thanks!
Haha so funny thing, im using an updated version of mcreator, how do i do this in the updated version? Im trying with Endermen now.