Advertisement
Guest User

littlestar.lua

a guest
Mar 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local robot = require("robot")
  2.  
  3. -- Move into the cage
  4. robot.setLightColor(0xFF0000)
  5. for i = 1,2 do
  6.   robot.forward()
  7. end
  8. for i = 1,4 do
  9.   robot.down()
  10. end
  11. robot.turnAround()
  12.  
  13. -- Place the blocks
  14.  
  15. for i = 1,2 do
  16.   robot.up()
  17. end
  18.  
  19. -- Get outta there, quickly!
  20. for i = 1,2 do
  21.   robot.up()
  22. end
  23.  
  24. for i = 1,2 do
  25.   robot.forward()
  26. end
  27. robot.turnAround()
  28.  
  29. -- Done
  30. robot.setLightColor(0x00FF00)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement