Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-140444

query.time_of_day in custom blocks always returns 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.11 Hotfix, 1.20.0
    • None
    • Confirmed
    • Windows
    • 612959

      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.

            GoldenHelmet [Mod] GoldenHelmet
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: