Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chatBox = peripheral.find("chatBox")
- local message = {
- {
- text = "Click here for FREE netherite",
- clickEvent = {
- action = "open_url",
- value = "https://www.youtube.com/watch?v=fcZXfoB2f70"
- }
- }
- }
- local json = textutils.serialiseJSON(message)
- chatBox.sendFormattedMessage(json)
Advertisement
Advertisement