0

I need a way to summon an item where an entity died, I tried this:

testfor @e[name=bob] {DeathTime:1s}

1 Answer 1

1

Maybe run these commands every tick?

/execute @e[name=bob] ~ ~ ~ kill @e[type=armor_stand,c=1,r=20,name=deathDetect]

/execute @e[type=armor_stand,name=deathDetect] ~ ~ ~ summon item ~ ~ ~ {Item:{id:"minecraft:diamond",Count:1}}

/kill @e[type=armor_stand,name=deathDetect]

/execute @e[name=bob] ~ ~ ~ summon armor_stand ~ ~ ~ {CustomName:"deathDetect",Invisible:1,Marker:1,NoGravity:1}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .