How do I detect a Minecraft banner of a specific color?
//ads -- adsterra.com -- native banner
?>
I'd like to detect a banner of a specific color in various situations: Standing, hanging, dropped, and inside player/entity inventory (as well as in the head slot).
These work:
/testfor @e[type=Item] {Item:{id:"minecraft:banner"}}
/testfor @a {Inventory:[{id:"minecraft:banner"}]}
These don't work:
/testfor @e[type=Item] {Item:{id:"minecraft:banner",Damage:0}}
/testfor @e[type=Item] {Item:{id:"minecraft:banner",Base:0}}
/testfor @e[type=Item] {Item:{id:"minecraft:banner"},Damage:0}
/testfor @e[type=Item] {Item:{id:"minecraft:banner"},Base:0}
/testfor @e[type=Item] {Item:{id:"minecraft:banner",tag:{Damage:0}}}
/testfor @e[type=Item] {Item:{id:"minecraft:banner",tag:{Base:0}}}
Any ideas?
Pictures about "How do I detect a Minecraft banner of a specific color?"



Can you change the base color of a banner in Minecraft?
There are 16 colored blank banners, and numerous patterns each available in each of the 16 colors. A banner can feature up to 6 different patterns. The top layer of a banner (or the last pattern added) can be washed off by using it on a cauldron containing water.5 Minecraft Banner Tips You Didn't Know!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Polina Tankilevitch, Rodion Kutsaiev, Ryutaro Tsukata, Sharon McCutcheon
