Blue_Tec

COLOR

May 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. on rightclick:
  2. if player is holding 159:4 named "&c色彩設定":
  3. open chest with 2 rows named "&d色彩設定" to player
  4. format slot 0 of player with iron bars named "&8&l中学大将" with lore "&c未所持||&aクリックで購入" to close then run [execute player command "/buycolor 12d8nsa9s9ydjea91"]
  5. if {color.have::1::%uuid of player%} is true:
  6. format slot 0 of player with black carpet named "&8&l中学大将" with lore "&a所持||&aクリックで選択" to close then run [execute player command "/selectcolor 12d8nsa9s9ydjea91"]
  7. if {color.select::1::%uuid of player%} is true:
  8. format slot 0 of player with black carpet of protection 4 named "&8&l中学大将" with lore "&a選択済み" to be unstealable
  9. format slot 1 of player with iron bars named "&1&l悪友&e&l天使" with lore "&c未所持||&aクリックで購入" to close then run [execute player command "/buycolor 13885bba98sduasd"]
  10. if {color.have::2::%uuid of player%} is true:
  11. format slot 1 of player with yellow carpet named "&1&l悪友&e&l天使" with lore "&a所持||&aクリックで選択" to close then run [execute player command "/selectcolor 13885bba98sduasd"]
  12. if {color.select::2::%uuid of player%} is true:
  13. format slot 1 of player with yellow carpet of protection 4 named "&1&l悪友&e&l天使" with lore "&a選択済み" to be unstealable
  14. format slot 2 of player with iron bars named "&6&l天然主婦" with lore "&c未所持||&aクリックで購入" to close then run [execute player command "/buycolor n1u930sahsdsaa"]
  15. if {color.have::3::%uuid of player%} is true:
  16. format slot 2 of player with orange carpet named "&6&l天然主婦" with lore "&a所持||&aクリックで選択" to close then run [execute player command "/selectcolor n1u930sahsdsaa"]
  17. if {color.select::3::%uuid of player%} is true:
  18. format slot 2 of player with orange carpet of protection 4 named "&6&l天然主婦" with lore "&a選択済み" to be unstealable
  19.  
  20. command /buycolor [<text>]:
  21. trigger:
  22. if arg-1 is "12d8nsa9s9ydjea91":
  23. if {color.have::1::%uuid of player%} is true:
  24. message "&c既に所持しています。"
  25. stop
  26. else:
  27. set {color.have::1::%uuid of player%} to true
  28. message "&a購入しました。"
  29. stop
  30. if arg-1 is "13885bba98sduasd":
  31. if {color.have::2::%uuid of player%} is true:
  32. message "&c既に所持しています。"
  33. stop
  34. else:
  35. set {color.have::2::%uuid of player%} to true
  36. message "&a購入しました。"
  37. stop
  38. if arg-1 is "n1u930sahsdsaa":
  39. if {color.have::3::%uuid of player%} is true:
  40. message "&c既に所持しています。"
  41. stop
  42. else:
  43. set {color.have::3::%uuid of player%} to true
  44. message "&a購入しました。"
  45. stop
  46.  
  47. command /selectcolor [<text>]:
  48. trigger:
  49. if arg-1 is "12d8nsa9s9ydjea91":
  50. if {color.have::1::%uuid of player%} is true:
  51. message "&a選択しました。"
  52. set {color.select::*} to false
  53. set {color.select::1::%uuid of player%} to true
  54. else:
  55. message "&c所持していません。"
  56. if arg-1 is "13885bba98sduasd":
  57. if {color.have::2::%uuid of player%} is true:
  58. message "&a選択しました。"
  59. set {color.select::*} to false
  60. set {color.select::2::%uuid of player%} to true
  61. else:
  62. message "&c所持していません。"
  63. if arg-1 is "n1u930sahsdsaa":
  64. if {color.have::3::%uuid of player%} is true:
  65. message "&a選択しました。"
  66. set {color.select::*} to false
  67. set {color.select::3::%uuid of player%} to true
  68. else:
  69. message "&c所持していません。"
  70.  
  71. command /getcoloryet:
  72. trigger:
  73. give player 159:4 named "&c色彩設定"
  74. on join:
  75. if {firstjoin.color::%uuid of player%} is true:
  76. stop
  77. else:
  78. set {color.select::default::%uuid of player%} to true
  79. set {color.have::default::%uuid of player%} to true
  80.  
  81. on chat:
  82. cancel event
  83. if {color.select::default::%uuid of player%} is true:
  84. broadcast "&7%player%: &f%message%"
  85. if {color.select::1::%uuid of player%} is true:
  86. broadcast "&0&l[&8&l中学大将&0&l]&7%player%: &f%message%"
  87. if {color.select::2::%uuid of player%} is true:
  88. broadcast "&e&ka&f &5&l|&1&l悪友&e&l天使&d&l| &a&l&o%player%&b&l: &f%message% &e&ka"
  89. if {color.select::3::%uuid of player%} is true:
  90. broadcast "&a&l[&6&l天然主婦&a&l]&7%player%: &f%message%"
Add Comment
Please, Sign In to add comment