Advertisement
hdgamer14

Slot Tester

Mar 18th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. --HDGamer14
  2. --Slot tester
  3. --Uses Inventory Upgrade!
  4.  
  5. local slot = 0
  6. m = peripheral.wrap("right")
  7.  
  8. while true do
  9.   if m.drop(slot,1) == true then
  10.     print(slot)
  11.     while true do
  12.         if redstone.getInput("left") == true then
  13.             break
  14.         else
  15.             sleep(0.1)
  16.         end
  17.         sleep(0.1)
  18.     end
  19.   end
  20.  
  21.   if math.fmod(slot,50) == 0 then
  22.     print("Curently on: "..slot)
  23.   end
  24.   slot = slot + 1
  25.   sleep(0.1)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement