Advertisement
Guest User

startup

a guest
Aug 10th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. chest = peripheral.wrap("back")
  2.  
  3. while true do
  4.  
  5.   local slot = chest.getStackInSlot(1)
  6.  
  7.   if slot ~= nil then
  8.     if slot.qty < 32 then
  9.       redstone.setOutput("top", false)
  10.     else
  11.       redstone.setOutput("top", true)
  12.     end
  13.   else
  14.     redstone.setOutput("top", false)
  15.   end
  16.   sleep(5)
  17.  
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement