Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-198535

"time_check" predicate condition requires both "min" and "max" value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w46a
    • 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a
    • Community Consensus
    • Commands, Data Packs
    • Low

      The bug

      Similar to entity_scores in MC-183917, the time_check predicate condition requires either a specific value or a min and max value range. If either min or max were missing when checking for a value range, the predicate would fail to load:

      {
        "condition": "minecraft:time_check",
        "value": {
          "min": 1000
        }
      }
      

      How to reproduce

      1. Install the data pack below in a world for easier reproduction
      2. Type the following command in chat:
        /execute if predicate 
        

        The time_check:1000_time predicate does not load

            Unassigned Unassigned
            jirauser283547 user-a4a49 (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: