Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local d = peripheral.find("player_detector")
- while true do
- local p = d.getPlayer("PLAYER_NAME")
- term.clear()
- term.setCursorPos(1, 1)
- if p then
- print("X:", p.x)
- print("Y:", p.y)
- print("Z:", p.z)
- print("Dimension:", p.dimension)
- print("Yaw:", p.yaw)
- print("Pitch:", p.pitch)
- else
- print("Not detected")
- end
- sleep(0.25)
- end
Advertisement
Add Comment
Please, Sign In to add comment