mojira.dev
MC-64188

execute with relative coordinates commands are forced to the center of the X and Z axis of the block the target is in, not the target itself

Note: this is not a duplicate of MC-63419 as the particle command alone can be moved anywhere on the X and Z coordinates.

Bug:
Any command (summon, particle) using execute with relative coordinates activates to the center of the block the target is located within.

Screenshot shows a Creeper locked in the middle of 2 blocks, I used this command

/execute @e[type=Creeper] ~ ~3 ~ /summon Creeper ~ ~ ~

Result:
The new Creeper summoned appears in the exact center of the block, instead of dropping overtop the original Creeper. Summon and particle alone without execute allow for decimal coordinates.

This is also evident by putting this command on a clock

/execute @p ~ ~ ~ /particle heart ~ ~ ~ 0 0 0 0

The particle is always in the center of the closest block to the player instead of the player (which should be that case using execute).

Another example is to move to the corner of a block, fly up and issue this command:

/execute @p ~ ~ ~ summon Item ~ ~-2 ~

The Item will always summon to the center of the X and Z axis instead of the player's location.

Linked issues

Attachments

Comments

bananenbroek4

For some mapmakers, the fix of this 'bug' will break their whole map with no fix being available.

qmagnet

How so? Execute @p should be consistent with exact location. It really messed up summoning mobs and particles. FallingSand is the only issue that is giving issues, but there's a bug reported for that MC-68601

bananenbroek4

Well, in the project I'm working on, everybody who's playing will get FallingSand summoned above them, but since this bug got fixed, the FallingSand will not snap on to the nearest block grid, and will break when it hits a block that's mostly air. But, with the summoning, is it possible to do something like "execute @a ~ ~ ~ execute @p[r=0] ~ ~ ~" and make it snap on to the block grid?

qmagnet

michael

Confirmed

Minecraft 14w30c, Minecraft 14w32a

Minecraft 14w32b

Retrieved