Mojira Archive
MC-198535

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

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

Fixed

user-a4a49

2020-08-21, 06:51 AM

2020-11-15, 03:36 PM

2020-11-15, 03:34 PM

1

2

Community Consensus

Low

Commands, Data Packs

max, min, time_check

1.16.2 - 20w45a1.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