Advertisement
Guest User

startup

a guest
Dec 3rd, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. pim = peripheral.wrap("front")
  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)
  19.     else
  20.       pim.pullIntoSlot("down", i, 1, i)
  21.       glow.setColor(0x00FF00)
  22.     end
  23.    
  24.   end
  25.  
  26.   rs.setBundledOutput("bottom", 0)
  27.  
  28.   sleep(2)
  29.  
  30.  
  31.  
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement