- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Staff Pick: Simple Sign Color


By ozzzzz
Created: 2015/01/03 10:48:21 UTC-08:00 (9 years and 355 days ago)
Edited: 2015/01/07 21:51:40 UTC-08:00 (9 years and 350 days ago)
Likes: 2

Staff pick as of: 2015/01/05 15:00:03 UTC-08:00 (9 years and 353 days ago)
Denizen Version: 0.9.6-SNAPSHOT
Script Version: 1.0
Description:

Adds colored text to signs by looking for, and replacing color codes. Regex credit goes to Morphan1/mcmonkey.


Download script | View raw script
1
2
3
4
5
6
7
8
9
900

Sign Color:
  type: world
  debug: false
  events:
    on player changes sign:
    - ^determine <context.new.replace[regex:&([0-9a-fA-Flk-oK-OrR])].with[<&r.before[r]>$1]>







View History