Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- player hasn't played before
- set {ecc.color::%uuid of player%} to "f"
- set {ecc.deco::%uuid of player%} to "f"
- function eccdeco(p: text , d: text , e: text):
- play sound "entity.player.levelup" with volume 2 and pitch 2 at location of ({_p} parsed as player) for ({_p} parsed as player)
- set {ecc.deco::%{_p}%} to {_d}
- if {_d} is "k":
- send "§7Your chat decoration has set to §%{ecc.color::%{_p}%}%§kT§r§%{ecc.color::%{_p}%}%%{_e}%§%{ecc.color::%{_p}%}%§kT" to ({_p} parsed as player)
- if {_d} is not "k":
- send "§7Your chat decoration has set to §%{ecc.color::%{_p}%}%§%{ecc.deco::%{_p}%}%%{_e}%" to ({_p} parsed as player)
- function ecccolor(p: player , s: text , c: text):
- play sound "entity.arrow.hit_player" with volume 2 and pitch 2 at location of {_p} for {_p}
- set {ecc.color::%{_p}%} to "%{_c}%"
- open chest with 1 row named "§%{ecc.color::%{_p}%}%§lDecoration Select" to {_p}
- wait 1 tick
- format slot 0 of {_p} with milk_bucket named "§%{ecc.color::%{_p}%}%None" with lore "§%{ecc.color::%{_p}%}%Set your chat decoration to §%{ecc.color::%{_p}%}%None" to run [eccdeco("%{_p}%" , "%{ecc.color::%{_p}%}%" , "None")]
- format slot 1 of {_p} with eye_of_ender named "§%{ecc.color::%{_p}%}%§kT§r§%{ecc.color::%{_p}%}%Magical§kT" with lore "§%{ecc.color::%{_p}%}%Set your chat decoration to §kT§%{ecc.color::%{_p}%}%Magical§kT" to run [eccdeco("%{_p}%" , "k" , "Magical")]
- format slot 2 of {_p} with coal named "§%{ecc.color::%{_p}%}%§lBold" with lore "§%{ecc.color::%{_p}%}%Set your chat decoration to §%{ecc.color::%{_p}%}%§lBold" to run [eccdeco("%{_p}%" , "l" , "Bold")]
- format slot 3 of {_p} with nether_star named "§%{ecc.color::%{_p}%}%§mStrikethrough" with lore "§%{ecc.color::%{_p}%}%Set your chat decoration to §%{ecc.color::%{_p}%}%§mStrikethough" to run [eccdeco("%{_p}%" , "m" , "Strikethough")]
- format slot 4 of {_p} with feather named "§%{ecc.color::%{_p}%}%§nUnderline" with lore "§%{ecc.color::%{_p}%}%Set your chat decoration to §%{ecc.color::%{_p}%}%§nUnderline" to run [eccdeco("%{_p}%" , "n" , "Underline")]
- format slot 5 of {_p} with blaze_rod named "§%{ecc.color::%{_p}%}%§oItalic" with lore "§%{ecc.color::%{_p}%}%Set your chat decoration to §%{ecc.color::%{_p}%}%§oItalic" to run [eccdeco("%{_p}%" , "o" , "Italic")]
- on chat:
- if {ecc.deco::%player%} is not set:
- cancel event
- if {ecc.deco::%player%} is "k":
- set chat message to "§%{ecc.color::%player%}%§%{ecc.deco::%player%}%Ω§%{ecc.color::%player%}%%message%§%{ecc.color::%player%}%§%{ecc.deco::%player%}%Ω"
- if {ecc.deco::%player%} is not "k":
- set chat message to "§%{ecc.color::%player%}%§%{ecc.deco::%player%}%%message%"
- command /editchatcolor:
- aliases: /ecc
- trigger:
- open chest with 3 rows named "&0[&1E&2d&3i&4t&5C&6h&7a&8t&9C&ao&bl&co&dr&0]" to player
- wait 1 tick
- format slot 0 of player with lapis named "&1&lDark-Blue" to run [ecccolor(player , "§1§lDark-Blue" , "1")]
- format slot 1 of player with green dye named "&2&lDark-Green" to run [ecccolor(player , "§2§lDark-Green" , "2")]
- format slot 2 of player with cyan dye named "&3&lCyan" to run [ecccolor(player , "§3§lCyan" , "3")]
- format slot 3 of player with red dye named "&4&lDark-Red" to run [ecccolor(player , "§4§lDark-Red" , "4")]
- format slot 4 of player with purple dye named "&5&lPurple" to run [ecccolor(player , "§5§lPurple" , "5")]
- format slot 5 of player with orange dye named "&6&lGold" to run [ecccolor(player , "§6§lGold" , "6")]
- format slot 6 of player with light gray dye named "&7&lGray" to run [ecccolor(player , "§7§lGray" , "7")]
- format slot 7 of player with gray dye named "&8&lDark-Gray" to run [ecccolor(player , "§8§lDark-Gray" , "8")]
- format slot 8 of player with blue dye named "&9&lBlue" to run [ecccolor(player , "§9§lBlue" , "9")]
- format slot 9 of player with light green dye named "&a&lGreen" to run [ecccolor(player , "§a§lGreen" , "a")]
- format slot 10 of player with light blue dye named "&b&lLight-Blue" to run [ecccolor(player , "§b§lLight-Blue" , "b")]
- format slot 11 of player with beetroot named "&c&lRed" to run [ecccolor(player , "§c§lRed" , "c")]
- format slot 12 of player with pink dye named "&d&lPink" to run [ecccolor(player , "§d§lPink" , "d")]
- format slot 13 of player with yellow dye named "&e&lYellow" to run [ecccolor(player , "§e§lYellow" , "e")]
- format slot 14 of player with white dye named "&f&lWhite" to run [ecccolor(player , "§f§lWhite" , "f")]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement