Advertisement
Faited

Magic Item Inventory

Sep 10th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local bridge = peripheral.find("rsBridge")
  2.  
  3. local box = peripheral.find("chatBox")
  4.  
  5. local manager = peripheral.find("inventoryManager")
  6.  
  7. while true do
  8.  
  9.     event, username, message = os.pullEvent("chat")
  10.  
  11.     if username == "esgamo"
  12.     then
  13.         itemname = message
  14.     end
  15.    
  16.     itemname = string.format("   \[%s\]",itemname)
  17.     print(itemname)
  18.    
  19.     bridge.exportItem({displayName=itemname},"top")
  20.     bridge.exportItem({displayName="   \[Iron Ingot\]"})
  21.    
  22.     manager.addItemToPlayer("left",1000)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement