mojira.dev
MC-313188

/schedule command can schedule functions for negative times now

The bug

As of 26.4-snapshot-8, /schedule accepts a negative time argument.

How to reproduce

  1. /schedule function a -1t

Expected result

Syntax error: The tick count must not be less than 0: found -1

Observed result

Command parses (but will probably fail unless you have a minecraft:a function)

Comments 2

TimeArgument.time() changed in snapshot 8 to use Bounds.any() and used to use min 0 -

/schedule still uses no-argument form and is only rejecting time == 0 so negative values now pass

tryashtar

bl4ckscor3

Confirmed

26.4 Snapshot 8

Retrieved