Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inv = component.proxy(component.list("transposer")())
- local com = component.proxy(component.list("computer")())
- local red = component.proxy(component.list("redstone")())
- local sides = 0
- local side = 0
- com.beep(1000,1)
- for sides=0,5 do
- if inv.getInventoryName(sides) == "minecraft:chest" then
- side = sides
- break
- end
- end
- com.beep(2000,1)
- while true do
- countSlotsTake = 0
- for i=1,inv.getInventorySize(side) do
- if inv.getSlotStackSize(side,i) > 0 then
- countSlotsTake = countSlotsTake + 1
- end
- end
- if countSlotsTake == inv.getInventorySize(side) then
- com.beep(500,1)
- red.setOutput(2,15)
- else
- red.setOutput(2,0)
- com.beep(20,1)
- end
- end
Add Comment
Please, Sign In to add comment