Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --dumper program for Youtube
- --my video was recorded in v1.18 and it seems the removeItemFromPlayer function changed in 1.20.1
- --this is my quick fix
- --original video https://www.youtube.com/watch?v=vegXpliPFhA
- --by toastonrye
- local im = peripheral.find("inventoryManager")
- local cb = peripheral.find("chatBox")
- if im == nil then error("the inventory manager not found") end
- if cb == nil then error("chatBox not found") end
- print("Running dumper")
- while true do
- local e, player, msg = os.pullEvent("chat")
- if msg == "dump" and player == "toastonrye" then
- print("Dumping slots 9 through 26")
- myInv = im.getItems()
- for k,v in pairs(myInv) do
- if k>=9 and k<=26 then
- im.removeItemFromPlayer("up", {fromSlot=k})
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment