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

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 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
    • Fix Version/s: 20w46a
    • Labels:
    • Confirmation Status:
      Community Consensus
    • Category:
      Commands, Data Packs
    • Mojang Priority:
      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              BoyrexMacaraya Alireza Macaraya
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: