mojira.dev
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

Linked issues

Attachments

Comments 2

The bug should be assigned to the Data Packs category.

Fixed in 20w46a due to the fix of MC-183917.

user-a4a49

(Unassigned)

Community Consensus

Low

Commands, Data Packs

max, min, time_check

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

Retrieved