Guest User

Tail

a guest
Aug 24th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. peripheral.find("modem", rednet.open)
  2. print(os.getComputerID())
  3.  
  4. local top = peripheral.wrap("top")
  5. local bottom = peripheral.wrap("bottom")
  6. local left = peripheral.wrap("left")
  7. local right = peripheral.wrap("right")
  8.  
  9. while true do
  10. local id1, LTri = rednet.receive()
  11. local id2, RTri = rednet.receive()
  12.  
  13. local pitch = LTri - RTri
  14.  
  15. -- Flip top and left
  16. top.setAngle(-pitch)
  17. bottom.setAngle(pitch)
  18.  
  19. left.setAngle(-pitch)
  20. right.setAngle(pitch)
  21. end
  22.  
Advertisement
Add Comment
Please, Sign In to add comment