SHOW:
|
|
- or go back to the newest paste.
| 1 | pim = peripheral.wrap("front")
| |
| 2 | - | glow = peripheral.wrap("glowstone_illuminator_17")
|
| 2 | + | --glow = peripheral.wrap("glowstone_illuminator_17")
|
| 3 | ||
| 4 | while true do | |
| 5 | ||
| 6 | while pim.getInvName() == "EmptyInventory" do | |
| 7 | sleep(1) | |
| 8 | end | |
| 9 | ||
| 10 | rs.setBundledOutput("bottom", colours.white)
| |
| 11 | ||
| 12 | sleep(0.5) | |
| 13 | ||
| 14 | for i = 36, 39 do | |
| 15 | ||
| 16 | if pim.getStackInSlot(i) then | |
| 17 | pim.pushIntoSlot("down", i, 1, i)
| |
| 18 | - | glow.setColor(0xFF0000) |
| 18 | + | if glow then |
| 19 | glow.setColor(0xFF0000) | |
| 20 | end | |
| 21 | - | glow.setColor(0x00FF00) |
| 21 | + | |
| 22 | pim.pullIntoSlot("down", i, 1, i)
| |
| 23 | if glow then | |
| 24 | glow.setColor(0x00FF00) | |
| 25 | end | |
| 26 | end | |
| 27 | ||
| 28 | end | |
| 29 | ||
| 30 | rs.setBundledOutput("bottom", 0)
| |
| 31 | ||
| 32 | sleep(2) | |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | end |