Advertisement
miyasoku

Untitled

Sep 8th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. on rightclick holding a nether star:
  2. open chest with 6 rows named "&dServer Menu" to player
  3. set slot 10 of player's current inventory to blaze powder named "&cKillEffect &dSelect"
  4.  
  5. on inventory click:
  6. inventory name of player's current inventory is "&dServer Menu"
  7. if clicked slot is 10:
  8. open chest with 3 rows named "&cKillEffect &dSelect" to player
  9. if {killeffect.%player%} is not set:
  10. set slot 0 of player's current inventory to redstone dust named "&4&lBlood KillEffect"
  11. set slot 1 of player's current inventory to glass block named "&eThunder KillEffect"
  12. set slot 26 of player's current inventory to glowing stone named "&cKillEffect Delete" with lore "&aSelected"
  13. else if {killeffect.%player%} is "blood":
  14. set slot 0 of player's current inventory to glowing redstone dust named "&4&lBlood KillEffect" with lore "&aSelected"
  15. set slot 1 of player's current inventory to glass block named "&eThunder KillEffect"
  16. set slot 26 of player's current inventory to stone named "&cKillEffect Delete"
  17. else if {killeffect.%player%} is "thunder":
  18. set slot 0 of player's current inventory to redstone dust named "&4&lBlood KillEffect"
  19. set slot 1 of player's current inventory to glowing glass block named "&eThunder KillEffect" with lore "&aSelected"
  20. set slot 26 of player's current inventory to stone named "&cKillEffect Delete"
  21.  
  22. on inventory click:
  23. inventory name of player's current inventory is "&cKillEffect &dSelect"
  24. if clicked slot is 0:
  25. cancel event
  26. set {killeffect.%player%} to "blood"
  27. play sound "BLOCK_DISPENSER_FAIL" to player with volume 1 and pitch 1
  28. send "{@kill} &4&lBlood&eを選択しました" to player
  29. open chest with 3 rows named "&cKillEffect &dSelect" to player
  30. set slot 0 of player's current inventory to glowing redstone dust named "&4&lBlood KillEffect" with lore "&aSelected"
  31. set slot 1 of player's current inventory to glass block named "&eThunder KillEffect"
  32. set slot 26 of player's current inventory to stone named "&cKillEffect Delete"
  33. if clicked slot is 1:
  34. cancel event
  35. set {killeffect.%player%} to "thunder"
  36. play sound "BLOCK_DISPENSER_FAIL" to player with volume 1 and pitch 1
  37. send "{@kill} &e&lThunder&eを選択しました" to player
  38. open chest with 3 rows named "&cKillEffect &dSelect" to player
  39. set slot 0 of player's current inventory to redstone dust named "&4&lBlood KillEffect"
  40. set slot 1 of player's current inventory to glowing glass block named "&eThunder KillEffect" with lore "&aSelected"
  41. set slot 26 of player's current inventory to stone named "&cKillEffect Delete"
  42. if clicked slot is 26:
  43. cancel event
  44. delete {killeffect.%player%}
  45. play sound "BLOCK_DISPENSER_FAIL" to player with volume 1 and pitch 1
  46. send "{@kill} &c&lKillEffect&eをリセットしました" to player
  47. open chest with 3 rows named "&cKillEffect &dSelect" to player
  48. set slot 0 of player's current inventory to redstone dust named "&4&lBlood KillEffect"
  49. set slot 1 of player's current inventory to glass block named "&eThunder KillEffect"
  50. set slot 26 of player's current inventory to glowing stone named "&cKillEffect Delete" with lore "&aSelected"
  51.  
  52. on death of player:
  53. if {killeffect.%attacker%} is "blood":
  54. show 30 BLOCK_CRACK particles at location of victim with data of block of redstone offset by 0, 0, 0
  55. loop all players in radius 5 around location of victim:
  56. command "execute %loop-player% ~ ~ ~/playsound minecraft:BLOCK.METAL.BREAK master %loop-player%"
  57. else if {killeffect.%attacker%} is "thunder":
  58. create lightning effect at the victim
  59.  
  60. on death of player:
  61. if {game} is "true":
  62. execute console command "execute %attacker% ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement