Started by
Matt The Banana
on
Topic category: Help with Minecraft modding (Java Edition)
I have a flying mob that copies the AI of a bat and I can't set items up for it to follow. I want to make the mob follow you if you are wearing a certain armor or/and you are holding any type of melon item/block. I don't have any experience with coding in Java and I was wondering how to do this. I want the mob to follow you similarly to how bees do but I am using 1.14.4 and I don't think that there is an option for base AI like a bees. Any help is appreciated.
Make "On Entity Tick Update"
If player holds an item, execute the command in the name of "Event/Target Entity": /tp @s ^ ^ ^0.5 facing entity @p