Advertisement
SirBaconBitz

Untitled

Feb 14th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. sens = peripheral.wrap("left")
  2. terminal = peripheral.wrap("bottom")
  3. text = terminal.addText(10,10,"Test",0xFFFFFF)
  4. while true do
  5. data = sens.getPlayerData("expert700")
  6. yaw = data["yaw"]
  7. direction = "Herpaderpa"
  8. if yaw<225 and yaw>130 then
  9. direction = "North"
  10. elseif yaw>223 and yaw<311 then
  11. direction = "East"
  12. elseif yaw>309 then
  13. direction = "South"
  14. elseif yaw<46 then
  15. direction = "South"
  16. elseif yaw>44 and yaw<132 then
  17. direction = "West"
  18. else
  19. direction = "N/A"
  20. end
  21. sleep(0.05)
  22. text.setText(direction)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement