Command block minecarts lose their name after re-log
The bug
Minecarts with command block don't output their default or customized name after re-log.
Reproduction steps
- Rename a command block minecart item
/give @s command_block_minecart{display:{Name:"\"test\""}} - Place it on a powered activator rail
- Enter a command, e.g.
/say message
It prints "[test] message" in chat - Reopen the world
It prints "[@] message" in chat
Code analysis
Code analysis by Marcono1234 can be found in this comment.
Linked Issues
is duplicated by3
relates to3
- Unresolved
karstvgl
- 19
- 10
- Confirmed
Low
- Platform
- Entities Minecart
- command_block_minecart
13w39a - 1.20.4
13w39a 13w39b 1.7.4 14w05b 14w06b 14w07a 14w08a 1.7.5 14w20b 14w21a 14w21b 1.8 1.8.1-pre3 1.9-pre2 16w42a 1.11.2 1.12.1 1.12.2 18w02a 18w22c 1.13-pre6 1.13 18w31a 1.13.1 1.14.4 1.15-pre1 20w21a 1.16.1 20w29a 1.16.2-pre3 1.16.2 1.16.3-rc1 1.16.3 1.16.4 20w46a 20w51a 21w03a 1.16.5 21w05b 21w06a 21w07a 21w18a 1.17 1.17.1 21w40a 1.18.1 1.18.2 22w18a 1.19 22w24a 23w41a 1.20.3-rc1 1.20.4
Created Issue:
Renamed Minecarts With Command Blocks dont show their name in chat
If you rename a Minecart with Command Block it doesnt output the name.
Because I still cant make screenshots in a gui screen. It was very difficult to make this picture.Environment
13w39a, java 7, Launcher version 1.2.5
- Unresolved
- Open
- Unconfirmed
- Creative
- Commandblock MinecartCommandBlock Rename
- 13w39a
RenamedMinecarts With Command Blocks dont show theirnamein chatRenamed Command Block Minecarts Lose Their Name When Placed
relates to
If you rename a Minecart with Command Block it doesnt output the name.
Because I still cant make screenshots in a gui screen. It was very difficult to make this picture.
relates to
Renamed Command Block MinecartsLose Their Name When PlacedRenamed Command Block Minecarts Don't Use Their Name When Placed
If you rename a Minecart with Command Block it doesnt output the name.
Because I still cant make screenshots in a gui screen. It was very difficult to make this picture.If you rename a Minecart with Command Block it doesn't output the name.
Because I still can't make screenshots in a gui screen. It was very difficult to make this picture.
Code analysis by Marcono1234 can be found in this comment.
13w39a, java 7, Launcher version 1.2.5
RenamedCommandBlockMinecartsDon'tUseTheirNameWhenPlacedRenamed command block minecarts don't use their name when placed
If you rename a Minecart with Command Block it doesn't output the name.
Because I still can't make screenshots in a gui screen. It was very difficult to make this picture.
Code analysis by Marcono1234 can be found in this comment.
The bug
A renamed minecart with command block doesn't output its name after re-log.
Code analysis
Code analysis by Marcono1234 can be found in this comment.
Renamed command block minecarts don't use their namewhen placedRenamed command block minecarts don't use their name after re-log
The bug
A renamed minecart with command block doesn't outputitsname after re-log.Code analysis
Code analysis by Marcono1234 can be found in this comment.
The bug
Minecarts with command block doesn't output their default or customized name after re-log.
Code analysis
Code analysis by Marcono1234 can be found in this comment.
Renamed command block minecartsdon't use their name after re-logCommand block minecarts lose their name after re-log
is duplicated by
The bug
Minecarts with command block do
esn't output their default or customized name after re-log.Code analysis
Code analysis by Marcono1234 can be found in this comment.
relates to
The bug
Minecarts with command block don't output their default or customized name after re-log.
Code analysisCode analysis by Marcono1234 can be found in this comment.
The bug
Minecarts with command block don't output their default or customized name after re-log.
Reproduction steps
- Rename a command block minecart item
/give @s command_block_minecart{display:{Name:"\"test\""}}- Place it on a powered activator rail
- Enter a command, e.g.
/say message
It prints "[test] message" in chat
- Reopen the world
It prints "[@] message" in chat
Code analysis
Code analysis by Marcono1234 can be found in this comment.
relates to
Looking at the code, doesn't the CustomName nbt work?
relates to
Confirmed for 14w21b
Maybe relates somehow to: MC-32701
Blah please stop linking issue reports that aren't duplicates
First read the discription before commenting please


Confirmed.
Still a concern in 1.7.4/5 and 1.8
Maybe the renaming is associated with the minecart but not with the command block...
Confirmed for 14w21b
Maybe relates somehow to:
MC-56132Confirmed for
MC-54777is a duplicate of this report.Please link to this comment in the description
The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.
The reason why this happens is that objects of the net.minecraft.entity.EntityMinecartCommandBlock.EntityMinecartCommandBlock class have a net.minecraft.command.server.CommandBlockLogic object to be able to run commands. All entities have the CustomName tag however this class has a CustomName tag as well that is used for the name of the command block that is displayed when a command is executed. When a command_block_minecart item is placed on a rail, only its CustomName that all entities use is set, however not its CustomName used for commands. Once the entity is saved, the CustomName used for commands overrides the CustomName that all entities use. As the first one (that is used for commands) was never set to the custom name, it saves the default name "@".
This has been fixed partly. It now outputs its name, but defaults back to @ after re-login.
seems fixedNo, this issue still occurs in 20w21a
Affects 1.16.1
Affects 1.16.1 and 20w29a
In 1.16.2 Pre-3
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a. Video attached.
Affects 21w18a
Affects 1.17
Can confirm in 1.17.1.
Affects 21w40a
Can confirm in 1.18.1.
Can confirm in 1.18.2 and 22w18a.
Can confirm in 1.19 and 22w24a.
Cannot reproduce in 1.21.2 Pre-Release 3
Tested with experimental minecart improvements datapack enabled.