Advertisement
Itsyuumello2

Untitled

Dec 27th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. on right click:
  2. player's tool is emerald named "&aShop &7(Right Click)"
  3. open chest with 5 row named "&aShop" to player
  4. set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
  5. set slot 11 of player's current inventory to bow named "&aKit & Parks"
  6. set slot 15 of player's current inventory to slimeball named "&aCostume"
  7. set slot 31 of player's current inventory to barrier named "&cClosed"
  8. on right click:
  9. player's tool is player's skull named "&aProfile &7(Right Click)"
  10. open chest with 5 row named "&aProfile" to player
  11. set slot 31 of player's current inventory to barrier named "&cClosed"
  12. on right click:
  13. player's tool is nether star named "&aGame Join &7(Right Click)"
  14. open chest with 5 row named "&aCheck" to player
  15. set slot 13 of player's current inventory to ender pearl named "&aJoin game!"
  16. set slot 31 of player's current inventory to barrier named "&cClosed"
  17. if {white::%player%} is set:
  18. send "&cすでにゲームに参加しています。"
  19. close player's inventory
  20.  
  21. on inventory click:
  22. if name of player's current inventory contain "&aShop":
  23. cancel event
  24. if name of player's current inventory contain "&aCheck":
  25. cancel event
  26. if name of player's current inventory contain "&aProfile":
  27. cancel event
  28. if name of player's current inventory contain "&aCostume":
  29. cancel event
  30. if name of player's current inventory contain "&aKit & Parks":
  31. cancel event
  32. if name of player's current inventory contain "&aKill Effect":
  33. cancel event
  34. if name of player's current inventory contain "&aDeath Sound":
  35. cancel event
  36. if name of player's current inventory contain "&aVictory Dance":
  37. cancel event
  38. if clicked item is leather armour:
  39. cancel event
  40. if name of clicked item is "&cClosed":
  41. close player's inventory
  42. if name of clicked item is "&aJoin game!":
  43. if {team} is false:
  44. set {red::*} to player
  45. set {white::%player%} to player
  46. add 1 to {redteam}
  47. add 1 to {gameplayer}
  48. set {team} to true
  49. command "/playsound block.note.hat master %player% ~ ~ ~ 2 2 1"
  50. broadcast "&7%player% &eがゲームに参加しました! &b%{gameplayer}%&e人"
  51. send "&c赤チームに参加しました!"
  52. close player's inventory
  53. stop
  54. if {team} is true:
  55. set {blue::%player%} to player
  56. set {white::%player%} to player
  57. add 1 to {blueteam}
  58. add 1 to {gameplayer}
  59. set {team} to false
  60. command "/playsound block.note.hat master %player% ~ ~ ~ 2 2 1"
  61. broadcast "&7%player% &eがゲームに参加しました! &b%{gameplayer}%&e人"
  62. send "&9青チームに参加しました!"
  63. close player's inventory
  64. stop
  65. if name of clicked item is "&cCancel":
  66. close player's inventory
  67. if name of clicked item is "&aCostume":
  68. open chest with 5 row named "&aCostume" to player
  69. set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
  70. set slot 11 of player's current inventory to slimeball named "&aKill Effect"
  71. set slot 13 of player's current inventory to jukebox named "&aDeath Sound"
  72. set slot 15 of player's current inventory to dragon egg named "&aVictory Dance"
  73. set slot 31 of player's current inventory to barrier named "&cClosed"
  74. if name of clicked item is "&aKit & Parks":
  75. open chest with 5 row named "&aKit & Parks" to player
  76. set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
  77. set slot 31 of player's current inventory to barrier named "&cClosed"
  78. if name of clicked item is "&aKill Effect":
  79. open chest with 5 row named "&aKill Effect" to player
  80. set slot 31 of player's current inventory to barrier named "&cClosed"
  81. set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
  82. set slot 10 of player's current inventory to barrier named "&aNone"
  83. set slot 11 of player's current inventory to glass named "&cLIGHTNING BOLT" with lore "&1" and "&7Price: &e800" and "&2" and "&cLOCKED" and "&3" and "&8Click to buy!"
  84. set slot 12 of player's current inventory to tnt named "&cEXPLOSION" with lore "&1" and "&7Price: &e800" and "&2" and "&cLOCKED" and "&3" and "&8Click to buy!"
  85. if {kf.lightningbolt.%player%} is set:
  86. set slot 11 of player's current inventory to glass named "&aLIGHTNING BOLT's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  87. if {kf.explosion.%player%} is set:
  88. set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  89. if name of clicked item is "&cLIGHTNING BOLT":
  90. if {cash.%player%} >= 800:
  91. set {kf.lightningbolt.%player%} to player
  92. set slot 11 of player's current inventory to glass named "&aLIGHTNING BOLT's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  93. remove 800 from {cash.%player%}
  94. send "&aYou purchased &6LIGHTNING BOLT"
  95. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  96. stop
  97. else:
  98. send "&cYou don't have enough cash!"
  99. execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
  100. if name of clicked item is "&aLIGHTNING BOLT's":
  101. set {kf.lightningbolts.%player%} to player
  102. delete {kf.explosions.%player%}
  103. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  104. send "&6LIGHTNING BOLT &ais set!"
  105.  
  106. if name of clicked item is "&cEXPLOSION":
  107. if {cash.%player%} >= 800:
  108. set {kf.explosion.%player%} to player
  109. set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  110. remove 800 from {cash.%player%}
  111. send "&aYou purchased &6EXPLOSION"
  112. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  113. stop
  114. else:
  115. send "&cYou don't have enough cash!"
  116. execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
  117. if name of clicked item is "&aEXPLOSION's":
  118. set {kf.explosions.%player%} to player
  119. delete {kf.lightningbolts.%player%}
  120. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  121. send "&6EXPLOSION &ais set!"
  122.  
  123. if name of clicked item is "&aNone":
  124. delete {kf.explosions.%player%}
  125. delete {kf.lightningbolts.%player%}
  126. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  127. send "&6None &ais set!"
  128.  
  129. on death of player:
  130. if {kf.lightningbolts.%player%} is set:
  131. strike lightning effect at the victim
  132. if {kf.explosions.%player%} is set:
  133. create a fake explosion at the victim
  134.  
  135. command /deletekf <player>:
  136. permission: skript.admin
  137. trigger:
  138. send "&a%arg-1% DELETE ALL EFFECTS"
  139. delete {kf.explosions.%arg-1%}
  140. delete {kf.lightningbolts.%arg-1%}
  141. delete {kf.explosion.%arg-1%}
  142. delete {kf.lightningbolt.%arg-1%}
  143.  
  144. command /jointeam <player> <text>:
  145. permission: skript.admin
  146. trigger:
  147. if {lobby} is true:
  148. if arg-2 is "red":
  149. set {red::*} to arg-1
  150. delete {blue::%arg-1%}
  151. send "&7%arg-1% &aを &c赤 &aチームに参加させました!" to player
  152. send "&c%player% &aにより &c&l赤 &aチームに強制的に参加しました!"
  153. if arg-2 is "blue":
  154. set {blue::*} to arg-1
  155. delete {red::%arg-1%}
  156. send "&7%arg-1% &aを &9青 &aチームに参加させました!" to player
  157. send "&c%player% &aにより &9&l青 &aチームに強制的に参加しました!"
  158. stop
  159. else:
  160. send "&cUsage: /jointeam <player> <red / blue>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement