TechManDylan

gpt inv remover

Jan 22nd, 2025 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. -- Ensure you have the Player Interface connected and configured
  2. local playerInterface = peripheral.find("playerInterface")
  3.  
  4. if not playerInterface then
  5.     error("Player Interface not found!")
  6. end
  7.  
  8. -- Attempt to remove items from specific slots
  9. for slot = 1, 36 do -- Assuming the player inventory has 36 slots
  10.     local success = playerInterface.retrieveFromSlot(slot, 64) -- Try removing 64 items
  11.     if success then
  12.         print("Successfully retrieved items from slot " .. slot)
  13.     else
  14.         print("Failed to retrieve items from slot " .. slot)
  15.     end
  16. end
  17.  
Add Comment
Please, Sign In to add comment