NBT Tags for Ender Crystal in Minecraft (Java Edition 1.11/1.12)

This Minecraft tutorial explains the NBT tags (formerly called data tags) that you can use for an ender crystal in Minecraft Java Edition (PC/Mac) 1.11 and 1.12.

TIP: If you are not running Minecraft Java Edition (PC/Mac) 1.11/1.12, find NBT tags for ender crystal in another version of Minecraft:

Background

In Minecraft Java Edition 1.11 and 1.12, the entity value for an ender crystal is ender_crystal. The ender_crystal entity has a unique set of data tags that can be used in Minecraft commands such as: /summon, /entitydata, /give, /fill, /setblock, /testfor.

ender crystal

What are NBT tags (formerly called Data Tags)?

NBT tags allow you to set certain properties of an entity (such as ender_crystal). The NBT tag is always surrounded in {} such as {ShowBottom:0b}. If there is more than one NBT tag used in a game command, the NBT tags are separated by a comma such as {ShowBottom:0b, BeamTarget:{X:12,Y:32,Z:256}}.

List of NBT Tags

Here is a list of the NBT tags that you can use for ender_crystal in Minecraft Java Edition (PC/Mac) 1.11 and 1.12:

NBT Tag Value (Description)
ShowBottom

0b (The bedrock slate below the ender crystal will be hidden)
1b (The bedrock slate below the ender crystal will be visible)

Example
{ShowBottom:1b}

BeamTarget

The coordinate that the ender crystal beam will point to

Syntax
BeamTarget:{X:<value>,Y:<value>,Z:<value>}

Example
{BeamTarget:{X:12,Y:32,Z:256}}

UUIDLeast

A number that specifies the right half of the UUID for the ender crystal (use UUIDLeast and UUIDMost to target/find a particular ender crystal in the game)

Example
{UUIDLeast:-6645587150281567948L}

UUIDMost

A number that specifies the left half of the UUID for the ender crystal (use UUIDLeast and UUIDMost to target/find a particular ender crystal in the game)

Example
{UUIDMost:4420078606457655279L}

id

ender_crystal (The entity value used to represent an ender crystal in the EntityTag or Passengers tag)

Example
{id:ender_crystal}

Passengers

The mob that is riding on the ender crystal. Use the entity value for the passenger mob

Example of skeleton as passenger
Passengers:[{id:skeleton}]

NBT Tag Examples

To summon an ender crystal that has a beam pointing at coordinates (12,32,256):

/summon ender_crystal ~ ~2 ~ {BeamTarget:{X:12,Y:32,Z:256}}

To summon an ender crystal with the bedrock slate below the ender crystal hidden:

/summon ender_crystal ~ ~2 ~ {ShowBottom:0b}

Target Selectors

Before we finish discussing data tags, let's quickly explore how to use the @e target selector. The @e target selector allows you to target entities in your commands. If you use the type=ender_crystal value, you can target ender crystals:

@e[type=ender_crystal]

You can also add a radius value to target ender crystals within a certain radius of blocks (for example, r=5 lets you target ender crystals within a 5 block radius of where the command is run):

@e[type=ender_crystal,r=5]

Target Selector Examples

To hide the bedrock slate bottom on all ender crystals within a 5 block radius:

/entitydata @e[type=ender_crystal,r=5] {ShowBottom:0b}

To test for all ender crystals within a 50 block radius:

/testfor @e[type=ender_crystal,r=50]

To summon a lightning bolt at all ender crystals:

/execute @e[type=ender_crystal] ~ ~ ~ /summon lightning_bolt

To kill all ender crystals:

/kill @e[type=ender_crystal]

Next, learn how to use the game commands in Minecraft.

Command Examples

Here are some game command examples for an ender crystal in Minecraft:

Command Generators

If you need help, you can use these tools to automatically generate commands for you: