Mojira Archive
MCPE-140444

query.time_of_day in custom blocks always returns 0

Steps to reproduce

  1. Create a world with Holiday Creator experimental features enabled, daylight cycle off, and test.mcpack applied. The pack contains a test block with a ticking component that checks whether query.time_of_day returns 0.0, and triggers an event that runs a command to report "daytime=0".
  2. /setblock ~~~ my_test:my_block
  3. Set the time of day to various times.

Expected results

The block reports "daytime=0" only at midnight.

Actual results

The block reports "daytime=0" regardless of the time of day.

Unresolved

[Mod] GoldenHelmet

2021-09-02, 11:51 PM

2023-06-14, 05:47 AM

3

1

Confirmed

612959

1.17.11 Hotfix, 1.20.0

-