mojira.dev
MCPE-232717

Block commands accept fractional coordinates for blocks

The bug

Commands that take block coordinates like /setblock suggest integer block coordinates, but allow fractional block coordinates. The value is simply rounded down. This does not match Java Edition. Note that allowing fractional relative coordinates is correct.

Other commands that require integers, like the count of /give, correctly produce a syntax error when given a decimal number.

How to reproduce

  1. /setblock -.35 17.12312312 -9.01 stone

Expected result

Syntax error

Observed result

Command places stone at -1 17 -10

Comments 0

No comments.

tryashtar

(Unassigned)

1526770

Confirmed

Windows

26.0.23/24 Preview

Retrieved