SHARE
TWEET

getItem.lua

a guest Nov 16th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. chatbox = peripheral.wrap("right")
  2. interface = peripheral.wrap("left")
  3.  
  4. interface.setOutputSide("west")
  5. interface.setInputSide("west")
  6.  
  7. while true do
  8.   event, player, table = os.pullEvent("command")
  9.   for key, value in pairs(table) do
  10.     if (value == "get") then
  11.       chatbox.say("test")
  12.       inv = interface.getPlayerInv(player)
  13.       for i=0,26 do
  14.         inv.push(i, 1)    
  15.       end
  16.     end
  17.   end
  18. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top