mojira.dev
MC-313274

Integer Y coordinates in commands are moved up by half a block

The Bug:

Integer Y coordinates in commands are moved up by half a block.

Commands such as /tp and /summon move integer (whole-number) X and Z coordinates to the center of the block, but keep an integer Y coordinate as it is typed, so entities stand on top of the block below. However, integer Y coordinates are now also moved up by half a block, so players and entities end up half a block above the height that was typed.

Steps to Reproduce:

  1. Summon an armor stand without gravity by using the command provided below.

    /summon minecraft:armor_stand ~ 100 ~ {NoGravity:1b}
  2. Read the armor stand's Y coordinate by using the command provided below.

    /data get entity @n[type=minecraft:armor_stand] Pos[1]
  3. Observe if the Y coordinate is 100.5 instead of 100.

Observed Behavior:

Y coordinates are moved up by half a block.

Expected Behavior:

Y coordinates would not be moved up by half a block.

Attachments

Comments 1

Avoma

(Unassigned)

Confirmed

26.4 Snapshot 10

Retrieved