mojira.dev
MCPE-156080

'/loot' position is always floored

The bug

When setting the position in the /loot command, the resulting location is always in the lowermost corner of the block; i.e. the coordinates get floored down. This has some useful applications, but it ruins the intended use case of /loot (spawning loot at a specific location).

Steps to reproduce:

  • Summon loot through /loot, and set the coordinates to the center of a block. The "entities/panda_sneeze" loot table always drops one slime ball. Here's an example that would spawn loot at the center of (0, -60, 0).

    /loot spawn 0.5 -60.0 0.5 loot "entities/panda_sneeze"

→❌ The slime ball spawns in the lowest corner, rather than in the center.

Linked issues

Attachments

Comments 4

As of preview 1.19.40.21 the /execute align command exists. For those who look up to this bug as intended behavior, /execute align fulfills this role and should be used in practice instead.

Still an issue in 1.21.23.1

Occurs in 1.21.40.22 Preview

Occurs in 1.21.51.1

Sprunkles

(Unassigned)

787549

Confirmed

Windows

1.19.60.25 Preview, 1.19.50.20 Preview, 1.18.31, 1.19.0, 1.19.30.20 Preview, ..., 1.20.15 Hotfix, 1.20.40.21 Preview, 1.20.50.24 Preview, 1.21.23 Hotfix, 1.21.30

Retrieved