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

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 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
    • 20w46a
    • Community Consensus
    • Commands, Data Packs
    • Low

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                CHK: