mojira.dev
MC-121903

Command block minecarts do not save execution cooldown to NBT

The bug

Command block minecarts do not execute every tick but instead every 4 ticks. However, their cooldown is not saved to NBT. This means when a world with a command block minecart which is supposed to execute the next tick is closed, it will execute after 4 ticks again after the world is reopened.

How to reproduce

  1. Summon a command block minecart

    /summon command_block_minecart
  2. Inspect its NBT data

    /data get entity @e[type=command_block_minecart,limit=1,sort=nearest]

    → ❌ There is no tag tracking the execution cooldown

Related issues

Attachments

Comments

migrated
[media][media]
j_p_smith

Can confirm that timers using command block minecarts fall progressively out of sync with other timers with each successive relog.

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w16a.

Avoma

Can confirm in 1.17.1. Video attached.

Avoma

Can confirm in 1.18.2.

marcono1234

(Unassigned)

Confirmed

(Unassigned)

command_block_minecart, nbt

Minecraft 1.12.2, Minecraft 17w45b, 1.16.2, 1.16.4, 20w48a, ..., 21w16a, 1.17.1, 1.18.2, 1.20.6, 1.21 Pre-Release 1

Retrieved