mojira.dev
MC-306728

Time argument assumes days are 24000 ticks

The bug

The new timeline feature can be used to change the duration of a day. When this is done, the d suffix for time arguments in commands still assume a day is 24000 ticks long.

How to reproduce

  1. Create a world with the attached data pack. It makes the day-night cycle 100 times faster.

  2. Run /gamerule advance_time false

  3. Run /time add 0.5d

Expected result

The sun should move halfway around the sky, adding 120 ticks

Observed result

The sun doesn’t move, since 12000 ticks were added, which is 50 days, not 0.5 days

Attachments

Comments 2

tryashtar

(Unassigned)

Confirmed

(Unassigned)

1.21.11, 26.1 Snapshot 11

Retrieved