Topic category: Help with Minecraft modding (Java Edition)
I have customized a hostile creature that will attack the player by default. When the player holds a tea leaf (an item I customized), it will stop attacking. The player can tame it by right-clicking on it while holding a tea leaf (at least in It can be seen from the tamed particles that it seems to be tamed), but in the attack conditions, no matter what settings are set, it cannot stop attacking the player. I really need help. I hope you can give me help. Thank you!
————I’m not very good at English, so I used Google Translate. I hope you can forgive me if you don’t understand the above content.
This is mob’s ai page: https://ibb.co/6RmtX2j
This is the Start condition: https://ibb.co/NrpmkCN
This is the breaking condition: https://ibb.co/m00P7mr