Advertisement
john_trinca

Direchest

Oct 6th, 2022 (edited)
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | Gaming | 0 0
  1. while true do
  2.     local event, side = os.pullEvent("peripheral")
  3.     if peripheral.getType(side) == "pneumaticcraft:reinforced_chest" then
  4.         print("inizio lavorazione chest")
  5.         local chest = peripheral.wrap("left")
  6.         chest.inspect
  7.         --[[for slot, qty in pairs(chest.getAllStacks()) do
  8.             if chest.pushItem("right", slot) >= 1 then
  9.                 items = true
  10.             end
  11.         end]]--
  12.    else
  13.         print("tipo di chest sbagliata")
  14.     end
  15.     --devo mandare la redstone per pulire
  16. end
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement