Advertisement
Guest User

start.lua

a guest
Mar 14th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local sides = require "sides"
  2. local robot = require "robot"
  3. local component = require "component"
  4. local inv = component.inventory_controller
  5. local Minimum = 0.2
  6. local active_slot = 1
  7.  
  8. local function Text()
  9.     os.execute("cls")
  10.     print("РОБОТ РАБОТАЕТ!! Создатель - GooodGame")
  11.     print("Доработал-atomzerg")
  12. end
  13.  
  14. Text()
  15.  
  16.  
  17.  
  18. while true do
  19. robot.select(active_slot)
  20. if robot.count(active_slot) == 0 then
  21.     active_slot = active_slot + 1 end
  22.   if robot.select(active_slot) ==64 then
  23.    active_slot = 1 end
  24. if robot.place() == false then active_slot = active_slot + 1 end
  25. if active_slot == 64 then active_slot = 1 end
  26. robot.place()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement