Advertisement
Guest User

witherBar2

a guest
Dec 19th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. chest = peripheral.wrap("front")
  2.  
  3. while true do
  4.  
  5.   local count = chest.getStackInSlot(1)
  6.  
  7.   print(count["qty"])
  8.   local number = count["qty"]
  9.   rs.setAnalogOutput("right",number/4)
  10.  
  11.   os.sleep(10)
  12.  
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement