mojira.dev
MC-123981

NBT CustomName seems to only accept integers

Command:

summon armor_stand ~ ~ ~ {CustomName:"MOJANG",CustomNameVisible:1b}

Result:

Error: Unable to summon entity

Command:

summon armor_stand ~ ~ ~ {CustomName:"999",CustomNameVisible:1b}

Result:

An Armor Stand named 999.

Tested on:

18w01a Server

Linked issues

Comments 3

CustomName is now a JSON text component. Raw numbers are valid JSON, hence no error from those.

Use:

CustomName:"\"MOJANG\""

You can use

/summon villager ~ ~ ~ {CustomName:"{\"text\":\"MOJANG\"}",CustomNameVisible:1b}

DrexHD

(Unassigned)

Unconfirmed

Minecraft 18w01a

Retrieved