Advertisement
Ubidibity

blood_stone

Nov 15th, 2023 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | Gaming | 0 0
  1. local chest = peripheral.wrap("left")
  2.  chest.condenseItems()
  3.  
  4. for i=1,27 do
  5.   local slot = chest.getStackInSlot(i)
  6.   print(slot.name.." is in slot "..i)
  7.   if slot.name=="stone" then
  8.     while chest.getStackInSlot(i)~=nil do
  9. --    local slot = chest.getStackInSlot(i)
  10. -- just don't mess with inventory when it's running
  11. --     print(slot.name.." is in slot "..i)
  12. --     if slot.name=="stone" then
  13.       print("pushing stone from "..i)
  14.       chest.pushItem("down",i,1)
  15.       sleep(5)
  16.     end
  17. --    sleep(10)
  18.   end
  19. end
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement