mojira.dev
MC-266201

Custom name for entities not working

 

/summon armor_stand ~ ~ ~ {CustomName:'{"text":"Test","color":"dark_blue","bold":"true","italic":"true"}',CustomNameVisible:1b}

 

This is the code used.

In Minecraft Version 1.20.2:

[media]

In Minecraft Version 23w43b, 23w43a, 23w42a:

[media]

Attachments

Comments 4

The following command works:

/summon armor_stand ~ ~ ~ {CustomName:'{"text":"Tizio","color":"dark_blue","bold":true,"italic":true}',CustomNameVisible:1b}

Resolving as Invalid.

But it doesn't work... Do you want a video showing it doesn't work?

It works in 1.20.2
Not in the latest 3 snapshot

It's a problem of only my game?

Now I have to open a new ticket?

Invalid values for formatting are no longer accepted "true" is not a valid value, true is.

As @unknown said, you should use true instead of "true" in the command. This was changed in 23w40a, and documented in the changelogs as part of a change to chat serialization.

Alessandro Spillare

(Unassigned)

Unconfirmed

(Unassigned)

23w43b

Retrieved