Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bridge = peripheral.find("rsBridge")
- local box = peripheral.find("chatBox")
- local manager = peripheral.find("inventoryManager")
- while true do
- event, username, message = os.pullEvent("chat")
- if username == "esgamo"
- then
- itemname = message
- end
- itemname = string.format(" \[%s\]",itemname)
- print(itemname)
- bridge.exportItem({displayName=itemname},"top")
- bridge.exportItem({displayName=" \[Iron Ingot\]"})
- manager.addItemToPlayer("left",1000)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement