/execute does not center absolute horizontal integer coordinates on block
The bug
In general 0.5 is added for absolute horizontal integer coordinates, for example /tp 4 4 4 = /tp 4.5 4.0 4.5. However, the /execute command does not appear to do this.
How to reproduce
- Use the following command
/execute @s 4 20 4 summon armor_stand ~ ~ ~ {NoGravity:1b}→ The armor stand is summoned at 4.0, 20.0, 4.0 instead of 4.5, 20.0, 4.5
Created Issue:
Absolute Coordinates in /execute Execute in the Wrong Location
There seems to be a problem with the /execute command and absolute coordinates. For example, when running:
"particle flame 0 57 -38 .1 .1 .1 .005 3"
it summons particles in the middle of the given block, as normal. But running:
"execute @p 0 57 -38 particle flame ~ ~ ~ .1 .1 .1 .005 3"
will summon particles in the corner of the given block. I'm not sure which one is suppose to be correct, but I hope this inconsistency can be resolved. Thanks!
Environment
Windows 10 Pro 1607, Build 14393.1198, 64-bit, Intel Core i5-2430M CPU @ 2.4GHz, 6 GB RAM, NVIDIA GeForce GT 525M
Windows 10 Pro 1607, Build 14393.1198, 64-bit, Intel Core i5-2430M CPU @ 2.4GHz, 6 GB RAM, NVIDIA GeForce GT 525M
Absolute Coordinates in /execute Execute in the Wrong Location/execute does not center integer coordinates on block
There seems to be a problem with the /execute command and absolute coordinates. For example, when running:
"particle flame 0 57 -38 .1 .1 .1 .005 3"
it summons particles in the middle of the given block, as normal. But running:
"execute @p 0 57 -38 particle flame ~ ~ ~ .1 .1 .1 .005 3"
will summon particles in the corner of the given block. I'm not sure which one is suppose to be correct, but I hope this inconsistency can be resolved. Thanks!
The bug
In general 0.5 is added for absolute horizontal integer coordinates, for example /tp 4 4 4 = /tp 4.5 4.0 4.5. However, the /execute command does not appear to do this.
How to reproduce
- Use the following command
/execute @s 4 20 4 summon armor_stand ~ ~ ~ {NoGravity:1b}→ The armor stand is summoned at 4.0, 20.0, 4.0 instead of 4.5, 20.0, 4.5
/execute does not center absolute horizontal integer coordinates on block


@Will S. I made the report a little bit more generic and replaced the reproduction steps. I hope you are fine with that.
Perfect, thanks!
Fixed in some 1.13 snapshot.