#Is there a way to detect where something dies
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1727231439:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Unfortunately the only way to do this is to have another entity follow/ride them and then detect the absence of the main entity
can i make the entity thats riding the other one invinsible and invisable if so that will work
Of course
ok then ill do that
You'd probably use a marker entity which is invisible anyway
o ok
so do i use somthing like /ride
or do i sommon it with somthing already on it
when its detecting the absence of the main entity can i detect where it is
Either works
I don't understand the question
Are you talking about the entity that is riding the main entity?
If so, that's stupid easy, just do an execute as @e[type=marker,tag=TAGHERE] at @s and boom
Okay but how do I do it
I know how to summon entities with entities riding them but I dont know how to detect the absence of the main mob
execute unless entity @e[distance=..X,type=foo]
o ok
so this command is supposed to summon multiple entites and it dose but only one ever has a marker riding it execute at @e[type=armor_stand,tag=ChestSpawn] run summon pig ~ ~ ~ {Passengers:[{id:"minecraft:marker",Invulnerable:1b,Tags:["ChestKill"]}],Tags:["ChestHitbox"],Health:1f}
and im using this command to check /tag @e[type=minecraft:marker,distance=0..3] list
i fixed it