Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("querry")
- local chatBox = peripheral.find("chatBox")
- local chatBox1 = peripheral.find("chatBox")
- spieler = "DerMarten" ---- Playername !!!!
- local title = {
- { text = "Computercraft", color = "white"}
- }
- local message = {
- { text = "\nTurtle mit dem Label\n"},
- { text = os.getComputerLabel(), color = "aqua"},
- { text = "\nist Fertig mit ihrer Arbeit!"}
- }
- local titleJson = textutils.serializeJSON(title)
- local messageJson = textutils.serialiseJSON(message)
- local message1 = {
- {text = "Turtle mit dem Label "},
- {
- text = os.getComputerLabel(),
- underlined = true,
- color = "aqua",
- clickEvent = {
- action = "open_url",
- value = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
- }
- },
- {text = " ist Fertig mit ihrer Arbeit!", color = "white"}
- }
- local json1 = textutils.serialiseJSON(message1)
- successful, error = chatBox.sendFormattedToastToPlayer(messageJson, titleJson, spieler, "&b&lInfo", "()", "&b&l")
- os.sleep(1)
- successful1, error1 = chatBox1.sendFormattedMessageToPlayer(json1, spieler, "Computercraft", "[]", "&b")
Advertisement
Add Comment
Please, Sign In to add comment