mojira.dev
MC-87624

NBT Tags dont work on tag command with /execute

When i want to tag an specific item with the scoreboard tag command it doesnt work. When i do it myself with

/scoreboard players tag @e add isDropper {Item:{id:minecraft:dropper}}

But when i do this:

/execute @e[name=CAS,type=ArmorStand] ~ ~ ~ detect ~ ~ ~ air 0 scoreboard players tag @e[type=Item,r=1] add isDropper {Item:{id:minecraft:dropper}

it doesnt work.

Thanks for help or for the bugfix!

Comments 5

Works fine for me – as long as you format your command correctly. Your second example is missing a closing curly brace.

I'm not exactly sure what you're trying to do, or even what problem you're experiencing. That's why the default issue text includes sections for what you expected to happen, and what actually happened. If you still can't get it to work after double-checking that you've entered the command correctly, please describe what you're building, provide screenshots if relevant, and explain what it is that you're trying to do.

If that is my problem Ill cry a river.

I just want to give all droppers in a radius of 1 from the Crafting ArmorStand(CAS) a tag to kill them then.

are you sure the CAS armor stand is standing in air?

Doesn't matter, as long as it's not buried in another block.

/execute @e[name=CAS,type=ArmorStand] ~ ~ ~ detect ~ ~ ~ air 0

That's checking the block the armor stand is standing in, not the block it's standing on top of.

I know that, but maby it's standing on/in a slab, that causes it to fail, or in water, or anything like that

Johann Bartel

(Unassigned)

Unconfirmed

Minecraft 15w35e

Retrieved