Itsyuumello2

Untitled

Dec 13th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.19 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 11 of player's current inventory to red wool named "&cJoin Red Team"
  16. set slot 15 of player's current inventory to blue wool named "&9Join Blue Team"
  17. set slot 31 of player's current inventory to barrier named "&cClosed"
  18. if {red::*} is set:
  19. send "&cすでにゲームに参加しています。"
  20. wait 1 tick
  21. close player's inventory
  22. if {blue::*} is set:
  23. send "&cすでにゲームに参加しています。"
  24. wait 1 tick
  25. close player's inventory
  26.  
  27. on quit:
  28. if {white::*} is set:
  29. remove player from {white::%player%}
  30. remove 1 from {_pnum}
  31. broadcast "&7%player% quit game %{_pnum}%"
  32.  
  33. on inventory click:
  34. if name of player's current inventory contain "&aShop":
  35. cancel event
  36. if name of player's current inventory contain "&aCheck":
  37. cancel event
  38. if name of player's current inventory contain "&aProfile":
  39. cancel event
  40. if name of player's current inventory contain "&aCostume":
  41. cancel event
  42. if name of player's current inventory contain "&aKit & Parks":
  43. cancel event
  44. if name of player's current inventory contain "&aKill Effect":
  45. cancel event
  46. if name of player's current inventory contain "&aDeath Sound":
  47. cancel event
  48. if name of player's current inventory contain "&aVictory Dance":
  49. cancel event
  50. if name of clicked item is "&cClosed":
  51. close player's inventory
  52. if name of clicked item is "&cJoin Red Team":
  53. add player to {red::*}
  54. add 1 to {redteam}
  55. add 1 to {gameplayer}
  56. command "/playsound block.note.hat master player ~ ~ ~ 2 2 1"
  57. broadcast "&7%player% &eは &f&kaaa &eチームに参加しました!"
  58. close player's inventory
  59. if name of clicked item is "&9Join Blue Team":
  60. add player to {blue::*}
  61. add 1 to {blueteam}
  62. add 1 to {gameplayer}
  63. command "/playsound block.note.hat master player ~ ~ ~ 2 2 1"
  64. broadcast "&7%player% &eは &f&kaaa &eチームに参加しました!"
  65. close player's inventory
  66. if name of clicked item is "&cCancel":
  67. close player's inventory
  68. if name of clicked item is "&aCostume":
  69. open chest with 5 row named "&aCostume" to player
  70. 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"
  71. set slot 11 of player's current inventory to slimeball named "&aKill Effect"
  72. set slot 13 of player's current inventory to jukebox named "&aDeath Sound"
  73. set slot 15 of player's current inventory to dragon egg named "&aVictory Dance"
  74. set slot 31 of player's current inventory to barrier named "&cClosed"
  75. if name of clicked item is "&aKit & Parks":
  76. open chest with 5 row named "&aKit & Parks" to player
  77. 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"
  78. set slot 31 of player's current inventory to barrier named "&cClosed"
  79. if name of clicked item is "&aKill Effect":
  80. open chest with 5 row named "&aKill Effect" to player
  81. set slot 31 of player's current inventory to barrier named "&cClosed"
  82. 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"
  83. set slot 10 of player's current inventory to barrier named "&aNone"
  84. 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!"
  85. 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!"
  86. if {kf.lightningbolt.%player%} is set:
  87. 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!"
  88. if {kf.explosion.%player%} is set:
  89. set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  90. if name of clicked item is "&cLIGHTNING BOLT":
  91. if {cash.%player%} >= 800:
  92. set {kf.lightningbolt.%player%} to player
  93. 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!"
  94. remove 800 from {cash.%player%}
  95. send "&aYou purchased &6LIGHTNING BOLT"
  96. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  97. stop
  98. else:
  99. send "&cYou don't have enough cash!"
  100. execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
  101. if name of clicked item is "&aLIGHTNING BOLT's":
  102. set {kf.lightningbolts.%player%} to player
  103. delete {kf.explosions.%player%}
  104. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  105. send "&6LIGHTNING BOLT &ais set!"
  106.  
  107. if name of clicked item is "&cEXPLOSION":
  108. if {cash.%player%} >= 800:
  109. set {kf.explosion.%player%} to player
  110. set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  111. remove 800 from {cash.%player%}
  112. send "&aYou purchased &6EXPLOSION"
  113. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  114. stop
  115. else:
  116. send "&cYou don't have enough cash!"
  117. execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
  118. if name of clicked item is "&aEXPLOSION's":
  119. set {kf.explosions.%player%} to player
  120. delete {kf.lightningbolts.%player%}
  121. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  122. send "&6EXPLOSION &ais set!"
  123.  
  124. if name of clicked item is "&aNone":
  125. delete {kf.explosions.%player%}
  126. delete {kf.lightningbolts.%player%}
  127. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  128. send "&6None &ais set!"
  129.  
  130. on death of player:
  131. if {kf.lightningbolts.%player%} is set:
  132. strike lightning effect at the victim
  133. if {kf.explosions.%player%} is set:
  134. create a fake explosion at the victim
  135. set death message to "&7%victim% &ewas killed by &7%attacker%"
  136. force respawn player
  137.  
  138. command /deletekf <player>:
  139. permission: skript.admin
  140. trigger:
  141. send "&a%arg-1% DELETE ALL EFFECTS"
  142. delete {kf.explosions.%arg-1%}
  143. delete {kf.lightningbolts.%arg-1%}
  144. delete {kf.explosion.%arg-1%}
  145. delete {kf.lightningbolt.%arg-1%}
Add Comment
Please, Sign In to add comment