Games : Teleport entities relatively to the center of a block

I just wanted to teleport an entity relatively, but the entity is not exactly in the middle of a block.


For example the coordinates are 0.3, 63.0, 0.76 and I teleport the entity relatively using ~1 ~0 ~1. The resulting coordinated will be 1.3, 63.0, 1.76 but I want the entity to be in the center of the block. So it has to be 1.5, 63.0, 1.5 instead.


Is it possible to achieve this? Thank you!


0 comments:

Post a Comment