Itsyuumello2

Untitled

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