mojira.dev
MC-32701

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

  1. Rename a command block minecart item

    /give @s command_block_minecart{display:{Name:"\"test\""}}
  2. Place it on a powered activator rail

  3. Enter a command, e.g.

    /say message

    ✔ It prints "[test] message" in chat

  4. Reopen the world
    ❌ It prints "[@] message" in chat

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 25

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-56132

Confirmed for

  • 1.9-pre2

MC-54777 is a duplicate of this report.

15 more comments

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.

karstvgl

(Unassigned)

Confirmed

Platform

Low

Entities, Minecart

command_block_minecart

Minecraft 13w39a, Minecraft 13w39b, Minecraft 1.7.4, Minecraft 14w05b, Minecraft 14w06b, ..., 1.19, 22w24a, 23w41a, 1.20.3 Release Candidate 1, 1.20.4

Retrieved