pirga

робот строитель (16 слотов)

Aug 4th, 2019 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local robot = require("robot")
  2. local active_slot = 1
  3.  
  4. local function Text()
  5. os.execute("cls")
  6. print("Строитель 1.3.3.7")
  7. end
  8.  
  9. Text()
  10.  
  11. while true do
  12. robot.suckDown()
  13. robot.place()
  14. robot.select(active_slot)
  15. robot.place()
  16. if robot.count(active_slot) == 0 then
  17. active_slot = active_slot + 1
  18. end
  19. if robot.select(active_slot) == 16 then
  20. active_slot = 1
  21. end
  22. end
Add Comment
Please, Sign In to add comment