Advertisement
Itsyuumello2

Untitled

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