Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SEPERATOR = "======================================="
- local SYMBOL = "§"
- local PATTERN = "&"
- function MAIN()
- clear()
- say(SEPERATOR)
- say("Welcome to the AdvancedLabeler!")
- say("Use the pattern '"..PATTERN.."C' to add color this computers's label.")
- say(SEPERATOR)
- say("Enter your new label/nametag:")
- local labelText = PATTERN.."f"..io.read() --// resets the default italic
- labelText = string.gsub(labelText,PATTERN,SYMBOL)
- say(SEPERATOR.."\n")
- shell.run("label set \""..labelText.."\"")
- say("Renamed turtle to \""..labelText.."\".\nEnd.\n")
- say(SEPERATOR)
- end
- function clear() shell.run("clear"); end
- function say(...) print(...); end
- MAIN()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement