SHOW:
|
|
- or go back to the newest paste.
| 1 | local chat = peripheral.wrap('right')
| |
| 2 | - | print(textutils.serialise(peripheral.getMethods('right')))
|
| 2 | + | |
| 3 | chat.setDistance(-99999999999999999999999999999999999999999999999999999999999999999999999999999) | |
| 4 | - | chat.setDistance(99999999) |
| 4 | + | chat.setName('§4§lCrazyMadMan')
|
| 5 | - | chat.setName('csmit195')
|
| 5 | + | |
| 6 | - | chat.say('If you can see this message, please tell me.') |
| 6 | + | while true do |
| 7 | event, _, player, message = os.pullEvent("chat_message") -- Now you got the event, which player, and which message.
| |
| 8 | if message == "hi" then | |
| 9 | chat.say('§6§lHi there!')
| |
| 10 | end | |
| 11 | print(player..': '..message) | |
| 12 | end |