Started by
Ball-van
on
Topic category: Help with Minecraft modding (Java Edition)
Hello everyone!
Can a mob be trap? According to the fact that at the beginning the mob has a different model or texture and does not show aggression towards the player, but when the player comes close to this mob, it changes and starts attacking the player. (For example: there is a villager, but when the player comes close to him, the villager turns into a zombie and attacks the player)
Edited by Ball-van on Wed, 05/05/2021 - 10:17
yes, you must create two entities, the pacific and the aggressive entity
in the pacific entity add a procedure "on entity tick update".
I used as an example the zombie villager, you change it to your aggressive entity
now, in your aggressive entity add "on entity tick update" and a procedure similar to the previous one but don't forget to add the "not".
Wow! Thanks a lot! You helped me a lot!