/execute from half slab rounds Y down not up
"/setblock ~ ~2 ~ dirt" places above your head, even when on a halfslab.
"/execute @p ~ ~ ~ /setblock ~ ~2 ~" also places above your head, except not when on a half slab. It places in your head.
This also can be seen if you:
/summon Fireball ~ ~2 ~
/execute @p ~ ~ ~ /summon Fireball ~ ~2 ~
{direction:[]}Video of setblock for evidence / unmistakable ability to recreate:
http://youtu.be/ekbPS_XoCV4
Environment
14w21b
Linked Issues
is duplicated by1
Created Issue:
/execute from half slab rounds Y down not up
"/setblock ~ ~2 ~ dirt" places above your head, even when on a halfslab.
"/execute @p ~ ~ ~ /setblock ~ ~2 ~" also places above your head, except not when on a half slab. It places in your head.
This also can be seen if you:
{direction:[]}
/summon Fireball ~ ~2 ~/execute @p ~ ~ ~ /summon Fireball ~ ~2 ~
{direction:[]}Video of setblock for evidence / unmistakable ability to recreate:
http://youtu.be/ekbPS_XoCV4Environment
14w21b
duplicates
duplicates
relates to
duplicates
is duplicated by
Not the same:
- it's not related to block commands
- it's not related to relative decimal coodinates
duplicates
This relates to/is a duplicate of MC-56253.
Coordinates in commands run by players
Nvm, it seems that I've misread the title. On second thought this seems different than MC-67515, since that issue doesn't involve partial blocks at all; rather it seems that entities are being summoned from the center of the command block (as opposed to the bottom, as with players). Using either
"/summon Creeper ~ ~2 ~ {NoAI:1}"
or an execute with it summons a NoAI Creeper exactly 2 blocks above the player's feet, so /summon seems to work differently.
Basically this is the opposite of MC-56253 (execute places the block 1 block higher than just using /setblock).


Confirmed.
Confirmed for 1.8.2 pre-1.
MC-76491has better information, so I would suggest that become the main post.Relinked to
MC-67515This isn't a dupe of
MC-67515, although it is related.This is not a duplicate of
MC-67515. That report is about command blocks executing from their center, this report is about relative coordinates being treated differently depending on whether they are in an execute command or not.Agreed, reopened.
Dupe of
MC-105820Indeed same cause.