SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local sides = require "sides" |
| 1 | + | local sides = require "sides" |
| 2 | - | local robot = require "robot" |
| 2 | + | local robot = require "robot" |
| 3 | - | local component = require "component" |
| 3 | + | local component = require "component" |
| 4 | - | local inv = component.inventory_controller |
| 4 | + | local active_slot = 1 |
| 5 | - | local Minimum = 0.2 |
| 5 | + | size=robot.inventorySize() |
| 6 | - | local active_slot = 1 |
| 6 | + | local function Text() |
| 7 | - | |
| 7 | + | os.execute("cls")
|
| 8 | - | local function Text() |
| 8 | + | print("РОБОТ РАБОТАЕТ!! Создатель - GooodGame")
|
| 9 | - | os.execute("cls") |
| 9 | + | print("Доработал-atomzerg")
|
| 10 | - | print("РОБОТ РАБОТАЕТ!! Создатель - GooodGame") |
| 10 | + | end |
| 11 | - | print("Доработал-atomzerg") |
| 11 | + | |
| 12 | Text() | |
| 13 | - | |
| 13 | + | |
| 14 | - | Text() |
| 14 | + | |
| 15 | - | |
| 15 | + | |
| 16 | - | |
| 16 | + | while true do |
| 17 | - | |
| 17 | + | robot.select(active_slot) |
| 18 | - | while true do |
| 18 | + | if robot.count(active_slot) == 0 then |
| 19 | - | robot.select(active_slot) |
| 19 | + | active_slot = active_slot + 1 end |
| 20 | - | if robot.count(active_slot) == 0 then |
| 20 | + | if robot.select(active_slot) ==size then |
| 21 | - | active_slot = active_slot + 1 end |
| 21 | + | active_slot = 1 end |
| 22 | - | if robot.select(active_slot) ==64 then |
| 22 | + | if robot.place() == false then active_slot = active_slot + 1 end |
| 23 | - | active_slot = 1 end |
| 23 | + | if active_slot == size then active_slot = 1 end |
| 24 | - | if robot.place() == false then active_slot = active_slot + 1 end |
| 24 | + | robot.place() |
| 25 | - | if active_slot == 64 then active_slot = 1 end |
| 25 | + |