mojira.dev
MC-313844

Time check predicates treat very high clock times as negative numbers

The Bug:

Time check predicates treat very high clock times as negative numbers.

Steps to Reproduce:

  1. Set the time to 2,147,483,647 and move it forward by 100 ticks by using the commands provided below.

    /time set 2147483647
    /time add 100
  2. Check if the time is at least 0 by using the command provided below.

    /execute if predicate {type:"minecraft:time_check",clock:"minecraft:overworld",value:{min:0}}
  3. Observe if the test passes.

Observed Behavior:

Time check predicates treat very high clock times as negative numbers.

Expected Behavior:

Time check predicates would treat very high clock times as positive numbers.

Attachments

Comments 2

Can confirm in 26.4 Release Candidate 1.

Avoma

(Unassigned)

Unconfirmed

26.3, 26.4 Release Candidate 1

Retrieved