Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local manager = peripheral.find("inventoryManager")
- if not manager then
- error("No Inventory Manager peripheral found!")
- end
- local SLOT = 35 -- Always pull from slot 35
- while true do
- local removed = manager.removeItemFromPlayer("up", { fromSlot = SLOT })
- if removed and removed > 0 then
- print(string.format("Moved %d items from slot %d to chest above", removed, SLOT))
- sleep(0.5)
- else
- -- Nothing to move, try again later
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement