Holograms with Command Blocks Tutorial
From Zedwiki
Hello, In this tutorial we will talk about holograms! Holograms are floating text like the example picture that can be seen below!
Commands
In this tutorial we will be using just one command.
- Command:summon
- Spawns a specified entity. If provided, will spawn with custom data.
The Tutorial
These are essentially an armorstand that is invisible, not affected by gravity, base plate removed and of course named.
To make the armorstand invisible we will have to use datatags!
{CustomName:""} will spawn it with a custom name. To name it simply add text between the ""
{Invulnerable:1b} will protect the armorstand from being broken by players in survival
{NoGravity:1b} will make the armorstand not be affected by gravity therefore allowing them to float
{Invisible:1b} will make the armorstand invisible
{CustomNameVisible:1b} will make your set custom name visible
All these tags will be used in the creation of your hologram! These tags together will look like {CustomName:"",Invulnerable:1b,NoGravity:1b,Invisible:1b,CustomNameVisible:1b}!
Now to summoning them! You will be using the /summon command!
The command would be
/summon ArmorStand ~ ~ ~ {CustomName:"",Invulnerable:1b,NoGravity:1b,Invisible:1b,CustomNameVisible:1b}
~ ~ ~ means the block the players bottom half is on!
Hope this tutorial helped you!