Entities Have Visible Text When On Ground (Minecraft 1.9)
I have looked around google and have not found an answer to this question, mostly because I do not know what to search or what to call my "problem." I am making an adventure map and I am very advanced with command blocks. I have an item spawning that will
- Never despawn, and
- Never be picked up.
The item is a bow. What I want to do is have the entity display the text "Bow" when the player looks near the entity (like a name tag does!) . I know this is possible, but I haven't figured out how to do it yet. Here is my current command:
/summon Item ~ ~2 ~ {Item:{id:minecraft:bow,Count:1},Age:-32768,PickupDelay:32767}
If there is already a question answering this, my sincere apologies, I have not found one.
Best Answer
Using the CustomName tag this can be achieved.
/summon Item ~ ~2 ~ {Item:{id:minecraft:bow,Count:1},CustomName:"Bow",CustomNameVisible:1,Age:-32768,PickupDelay:32767}
This is very simple, only thing is the text is there permanently, not only when you look at it.
Pictures about "Entities Have Visible Text When On Ground (Minecraft 1.9)"



How do you make text appear in chat in Minecraft?
How to Enter the CommandWhat does @P mean in Minecraft?
The selector \u201c@p\u201d selects the nearest player. Alternatively, you could also use your Minecraft username, but if you run a command from the console you will always be the nearest player. The other target selectors are \u201c@a\u201d for all players, \u201c@r\u201d for a random player, and \u201c@e\u201d will target all entities.What do the @s mean in Minecraft?
@s (Entity executing the command)The @s target selector is used to target the entity that is executing the command. This is often referred to as "yourself" in the Minecraft help.Minecraft 1.9 - Secret Glowing Text!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ylanite Koppens, Prashant Gautam, Mads Thomsen, Pixabay
