Advertisement
nekonekoUranium

Untitled

Feb 16th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. on join:
  2. player hasn't played before
  3. set {ecc.color::%uuid of player%} to "f"
  4. set {ecc.deco::%uuid of player%} to "f"
  5.  
  6. function eccdeco(p: text , d: text , e: text):
  7. play sound "entity.player.levelup" with volume 2 and pitch 2 at location of ({_p} parsed as player) for ({_p} parsed as player)
  8. set {ecc.deco::%{_p}%} to {_d}
  9. if {_d} is "k":
  10. 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)
  11. if {_d} is not "k":
  12. send "§7Your chat decoration has set to §%{ecc.color::%{_p}%}%§%{ecc.deco::%{_p}%}%%{_e}%" to ({_p} parsed as player)
  13.  
  14. function ecccolor(p: player , s: text , c: text):
  15. play sound "entity.arrow.hit_player" with volume 2 and pitch 2 at location of {_p} for {_p}
  16. set {ecc.color::%{_p}%} to "%{_c}%"
  17. open chest with 1 row named "§%{ecc.color::%{_p}%}%§lDecoration Select" to {_p}
  18. wait 1 tick
  19. 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")]
  20. 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")]
  21. 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")]
  22. 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")]
  23. 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")]
  24. 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")]
  25.  
  26. on chat:
  27. if {ecc.deco::%player%} is not set:
  28. cancel event
  29. if {ecc.deco::%player%} is "k":
  30. set chat message to "§%{ecc.color::%player%}%§%{ecc.deco::%player%}%Ω§%{ecc.color::%player%}%%message%§%{ecc.color::%player%}%§%{ecc.deco::%player%}%Ω"
  31. if {ecc.deco::%player%} is not "k":
  32. set chat message to "§%{ecc.color::%player%}%§%{ecc.deco::%player%}%%message%"
  33.  
  34. command /editchatcolor:
  35. aliases: /ecc
  36. trigger:
  37. open chest with 3 rows named "&0[&1E&2d&3i&4t&5C&6h&7a&8t&9C&ao&bl&co&dr&0]" to player
  38. wait 1 tick
  39. format slot 0 of player with lapis named "&1&lDark-Blue" to run [ecccolor(player , "§1§lDark-Blue" , "1")]
  40. format slot 1 of player with green dye named "&2&lDark-Green" to run [ecccolor(player , "§2§lDark-Green" , "2")]
  41. format slot 2 of player with cyan dye named "&3&lCyan" to run [ecccolor(player , "§3§lCyan" , "3")]
  42. format slot 3 of player with red dye named "&4&lDark-Red" to run [ecccolor(player , "§4§lDark-Red" , "4")]
  43. format slot 4 of player with purple dye named "&5&lPurple" to run [ecccolor(player , "§5§lPurple" , "5")]
  44. format slot 5 of player with orange dye named "&6&lGold" to run [ecccolor(player , "§6§lGold" , "6")]
  45. format slot 6 of player with light gray dye named "&7&lGray" to run [ecccolor(player , "§7§lGray" , "7")]
  46. format slot 7 of player with gray dye named "&8&lDark-Gray" to run [ecccolor(player , "§8§lDark-Gray" , "8")]
  47. format slot 8 of player with blue dye named "&9&lBlue" to run [ecccolor(player , "§9§lBlue" , "9")]
  48. format slot 9 of player with light green dye named "&a&lGreen" to run [ecccolor(player , "§a§lGreen" , "a")]
  49. format slot 10 of player with light blue dye named "&b&lLight-Blue" to run [ecccolor(player , "§b§lLight-Blue" , "b")]
  50. format slot 11 of player with beetroot named "&c&lRed" to run [ecccolor(player , "§c§lRed" , "c")]
  51. format slot 12 of player with pink dye named "&d&lPink" to run [ecccolor(player , "§d§lPink" , "d")]
  52. format slot 13 of player with yellow dye named "&e&lYellow" to run [ecccolor(player , "§e§lYellow" , "e")]
  53. 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