How create a banner block with a name using a command?
I can name a banner item with a give command:
give @p minecraft:banner 1 1 {display:{Name:"BlueFlag"}}
But I can't add a name with a command like this:
/setblock -263 99 69 minecraft:standing_banner 0 0 <NBT Tag>
I've tried every possible NBT Tag I can think of/find. Does anyone know if naming banner blocks is impossible for some reason?
Best Answer
What you want to do is impossible. Placed banners are blocks (well, tile-entities), and blocks cannot have names that appear above them, only entities.
A workaround perhaps could be to summon an invisible ArmorStand or WitherSkull with the name you want, and have that on the banner so that it appears as if the banner has a name. Try this command:
/summon ArmorStand ~ ~ ~ {CustomName:"Banner",Invisible:1b,CustomNameVisible:1b}
The minecraft wiki has pages on NBT data, including that of tile entities. Rather than guessing, it's a good guide to check what tags an entity/tile-entity has.
Entities and Tile-Entities: http://minecraft.gamepedia.com/Chunk_format
Players and Items: http://minecraft.gamepedia.com/Player.dat_Format
Pictures about "How create a banner block with a name using a command?"



How do you make a banner with commands?
How to get a Command BlockHow do you give a named item with commands?
This is just a small fun little addition to the game, you can now wear banners by placing them in your head slot. It does not provide protection or any bonuses except looking different. This idea came from the Illager Captain wearing a banner. It would look just like that except with the banner of your choice.How to make EVERY letter in the alphabet | Banner design | Minecraft
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Tatiana Syrikova, Vlada Karpovich, Karolina Grabowska, Michael Burrows
