#kill entity with nbt tag

1 messages · Page 1 of 1 (latest)

gray shale
#

If I spawn an entity in this case an armor stand like this spawn an armor stand at player with nbt from "{tags:[""conv""]}"
then how do I kill the entity/entities that only have that tag or nbt

torpid cliff
#

you can loop all armor stands and check the tag that way

gray shale
#

ah oki ty

gray shale
spiral skiff
gray shale
#

well I tried loop all armor stands: if loop-entity has nbt tag "conv": broadcast "test"

#

and it doesnt work

#

indentation is different idk why it shifted so for back when sending thru discord

#

error is that there isnt a loop matching

#

well I also tested command /waw: trigger: spawn an pig at player with nbt from "{tags:[""conv""]}" wait 1 tick loop all pigs: if nbt compound of loop-entity has tag "conv": broadcast "test" and fsr it doesnt broadcast anything

#

doesnt give any errors but also doesnt rlly do anything

spiral skiff
#

there not like items

#

entity tags have everything under the custom tag

#

so u would set it as
custom;conv

and check it as
custom;conv

gray shale
#

hm okay I'll try

#

so by replacing "conv" with "custom;conv" hasnt done anything sadly, I think I'm just doing smth wrong here

spiral skiff
#

ohh

#

the part where ur setting nbt is mad weird

#

lol

#

ur using a string list tag?

#

just use a normal tag

gray shale
#

I've never rlly worked with tags before and thats the first thingy I saw

spiral skiff
#

read the wiki