Itsyuumello2

Untitled

Dec 13th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.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.  
  13. on inventory click:
  14. if name of player's current inventory contain "&aShop":
  15. cancel event
  16. if name of player's current inventory contain "&aProfile":
  17. cancel event
  18. if name of player's current inventory contain "&aCostume":
  19. cancel event
  20. if name of player's current inventory contain "&aKit & Parks":
  21. cancel event
  22. if name of player's current inventory contain "&aKill Effect":
  23. cancel event
  24. if name of player's current inventory contain "&aDeath Sound":
  25. cancel event
  26. if name of player's current inventory contain "&aVictory Dance":
  27. cancel event
  28. if name of clicked item is "&cClosed":
  29. close player's inventory
  30. if name of clicked item is "&aCostume":
  31. open chest with 5 row named "&aCostume" to player
  32. 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"
  33. set slot 11 of player's current inventory to slimeball named "&aKill Effect"
  34. set slot 13 of player's current inventory to jukebox named "&aDeath Sound"
  35. set slot 15 of player's current inventory to dragon egg named "&aVictory Dance"
  36. set slot 31 of player's current inventory to barrier named "&cClosed"
  37. if name of clicked item is "&aKit & Parks":
  38. open chest with 5 row named "&aKit & Parks" to player
  39. 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"
  40. set slot 31 of player's current inventory to barrier named "&cClosed"
  41. if name of clicked item is "&aKill Effect":
  42. open chest with 5 row named "&aKill Effect" to player
  43. set slot 31 of player's current inventory to barrier named "&cClosed"
  44. 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"
  45. set slot 10 of player's current inventory to barrier named "&aNone"
  46. 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!"
  47. 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!"
  48. if {kf.lightningbolt.%player%} is set:
  49. 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!"
  50. if {kf.explosion.%player%} is set:
  51. set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  52. if name of clicked item is "&cLIGHTNING BOLT":
  53. if {cash.%player%} >= 800:
  54. set {kf.lightningbolt.%player%} to player
  55. 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!"
  56. remove 800 from {cash.%player%}
  57. send "&aYou purchased &6LIGHTNING BOLT"
  58. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  59. stop
  60. else:
  61. send "&cYou don't have enough cash!"
  62. execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
  63. if name of clicked item is "&aLIGHTNING BOLT's":
  64. set {kf.lightningbolts.%player%} to player
  65. delete {kf.explosions.%player%}
  66. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  67. send "&6LIGHTNING BOLT &ais set!"
  68.  
  69. if name of clicked item is "&cEXPLOSION":
  70. if {cash.%player%} >= 800:
  71. set {kf.explosion.%player%} to player
  72. set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
  73. remove 800 from {cash.%player%}
  74. send "&aYou purchased &6EXPLOSION"
  75. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  76. stop
  77. else:
  78. send "&cYou don't have enough cash!"
  79. execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
  80. if name of clicked item is "&aEXPLOSION's":
  81. set {kf.explosions.%player%} to player
  82. delete {kf.lightningbolts.%player%}
  83. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  84. send "&6EXPLOSION &ais set!"
  85.  
  86. if name of clicked item is "&aNone":
  87. delete {kf.explosions.%player%}
  88. delete {kf.lightningbolts.%player%}
  89. execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  90. send "&6None &ais set!"
  91.  
  92. on death of player:
  93. if {kf.lightningbolts.%player%} is set:
  94. strike lightning effect at the victim
  95. if {kf.explosions.%player%} is set:
  96. create a fake explosion at the victim
  97. set death message to "&7%victim% &ewas killed by &7%attacker%"
  98. force respawn player
  99.  
  100. command /deletekf <player>:
  101. permission: skript.admin
  102. trigger:
  103. send "&a%arg-1% DELETE ALL EFFECTS"
  104. delete {kf.explosions.%arg-1%}
  105. delete {kf.lightningbolts.%arg-1%}
  106. delete {kf.explosion.%arg-1%}
  107. delete {kf.lightningbolt.%arg-1%}
Advertisement
Add Comment
Please, Sign In to add comment