#Is there a way to detect where something dies

1 messages · Page 1 of 1 (latest)

brazen swift
#

im trying to detcet where somthing dies so it can kill the nearest entity and im going to have like 20-50 entitys that i detect where tthay die

quiet magnetBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 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

hardy prawn
#

Unfortunately the only way to do this is to have another entity follow/ride them and then detect the absence of the main entity

brazen swift
#

can i make the entity thats riding the other one invinsible and invisable if so that will work

hardy prawn
#

Of course

brazen swift
#

ok then ill do that

hardy prawn
#

You'd probably use a marker entity which is invisible anyway

brazen swift
#

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

hardy prawn
hardy prawn
agile snow
#

If so, that's stupid easy, just do an execute as @e[type=marker,tag=TAGHERE] at @s and boom

brazen swift
#

Okay but how do I do it

brazen swift
#

I know how to summon entities with entities riding them but I dont know how to detect the absence of the main mob

hardy prawn
#

execute unless entity @e[distance=..X,type=foo]

brazen swift
#

o ok

brazen swift
#

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

brazen swift
#

i fixed it