Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sens = peripheral.wrap("left")
- terminal = peripheral.wrap("bottom")
- text = terminal.addText(10,10,"Test",0xFFFFFF)
- while true do
- data = sens.getPlayerData("expert700")
- yaw = data["yaw"]
- direction = "Herpaderpa"
- if yaw<225 and yaw>130 then
- direction = "North"
- elseif yaw>223 and yaw<311 then
- direction = "East"
- elseif yaw>309 then
- direction = "South"
- elseif yaw<46 then
- direction = "South"
- elseif yaw>44 and yaw<132 then
- direction = "West"
- else
- direction = "N/A"
- end
- sleep(0.05)
- text.setText(direction)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement