#Detect when a given entity is above/below another entity

1 messages · Page 1 of 1 (latest)

red warren
#

I have some custom mobs that are passive mobs with scale 0.1 husks riding them to give them hostile AI. What I am trying to do is make it so that if the husk or mob is without the other it will die. I was initially doing this with distance, but it doesn't work the best. I want something efficient as it ideally runs every tick.

latent nicheBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

tame plaza
#

You can use execute on vehicle, which will only run if the husk has a vehicle.

#

You could tag the husk, remove the tag using execute on vehicle, then kill the husk of it still has the tag

red warren
#

Works, thanks