Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Activate these once, in this order:
- scoreboard objectives add Coordinate dummy
- scoreboard objectives add X dummy
- scoreboard objectives add Z dummy
- stats entity @a set AffectedBlocks @p Coordinate
- scoreboard players set @a Coordinate 0
- Put the following on a Clock, in this order:
- execute @a ~ ~ ~ fill ~ 0 ~ ~ 0 1 stone 0
- execute @a ~ ~ ~ fill ~ 0 ~ ~ 0 1 bedrock 0
- execute @a ~ ~ ~ scoreboard players operation @p Z = @p Coordinate
- execute @p ~ ~ ~ fill ~ 0 ~ 1 0 ~ stone 0
- execute @p ~ ~ ~ fill ~ 0 ~ 1 0 ~ bedrock 0
- execute @a ~ ~ ~ scoreboard players operation @p X = @p Coordinate
- If you want to have a display objective for the coordinates, add these commands:
- Once: scoreboard objectives add Coords dummy
- Clock:
- scoreboard players operation X Coords = @p X
- scoreboard players operation Z Coords = @p Z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement