akon1248

Untitled

Aug 31st, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. variables:
  2. {doublejumpcooltime.%player%} = 0
  3. command /superfeather:
  4. permission: sk.command.superfeather
  5. permission message: &cYou don't have permission.
  6. trigger:
  7. execute console command "/give %player% feather 1 0 {display:{Name:""§bすごい羽""}}"
  8. every tick:
  9. loop all players:
  10. if loop-player is holding feather named "&bすごい羽":
  11. if {doublejumpcooltime.%loop-player%} is greater than or equal to 1:
  12. send action bar from "&bDoubleJumpが使用可能になるまであと%{doublejumpcooltime.%loop-player%}%秒" to loop-player
  13. if {doublejumpcooltime.%loop-player%} is smaller than or equal to 0:
  14. set loop-player's flight mode to true
  15. else:
  16. if loop-player's gamemode is survival or adventure:
  17. set loop-player's flight mode to false
  18. else:
  19. if loop-player's gamemode is survival or adventure:
  20. set loop-player's flight mode to false
  21. on damage:
  22. if damage was caused by fall:
  23. if victim is holding feather named "&bすごい羽":
  24. cancel event
  25. every second:
  26. loop all players:
  27. remove 1 from {doublejumpcooltime.%loop-player%}
  28. if {doublejumpcooltime.%loop-player%} is 0:
  29. send action bar from "&b&lDoubleJumpが使えるようになりました!" to loop-player
  30. on flight toggle:
  31. if player's gamemode is adventure or survival:
  32. if player is holding feather named "&bすごい羽":
  33. if {doublejumpcooltime.%player%} is smaller than or equal to 0:
  34. set {doublejumpcooltime.%player%} to 5
  35. push player upwards at speed 1.2
  36. push the player forward at speed 0.8
  37. on death:
  38. victim is a player
  39. set {_attacker} to attacker
  40. set {_victim} to victim
  41. if {_attacker} is set:
  42. if attacker is a player:
  43. execute console command "/give %attacker% emerald_ore 1 0 {display:{Name:""100YEN"",Lore:[""この鯖の通貨""]},HideFlags:1}"
  44. send "&b100YEN&7をGET!" to attacker
  45. send "&a+100EXP" to attacker
  46. execute console command "/execute %attacker% ~ ~ ~ playsound minecraft:entity.experience_orb.pickup master @s"
  47. execute console command "/scoreboard players add %attacker% killcount 1"
  48. execute console command "/xp 100 %attacker%"
  49. set {_weapon} to display name of attacker's held item
  50. set {_killeffectpattern} to random integer between 1 and 6
  51. if {_killeffectpattern} is 1:
  52. execute console command "/execute %victim% ~ ~ ~ summon fireworks_rocket ~ ~2 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Colors:[I;%random integer between 1 and 16777215%]}]}}}}"
  53. force victim to respawn
  54. if {_killeffectpattern} is 2:
  55. strike lightning effect at victim
  56. force victim to respawn
  57. if {_killeffectpattern} is 3:
  58. execute console command "/execute %victim% ~ ~ ~ particle flame ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
  59. force victim to respawn
  60. if {_killeffectpattern} is 4:
  61. execute console command "/execute %victim% ~ ~ ~ particle smoke ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
  62. force victim to respawn
  63. if {_killeffectpattern} is 5:
  64. execute console command "/execute %victim% ~ ~ ~ particle witchMagic ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
  65. force victim to respawn
  66. if {_killeffectpattern} is 6:
  67. execute console command "/execute %victim% ~ ~ ~ particle blockcrack ~ ~1.5 ~ 0.25 0.5 0.25 0 1000 force @a 152"
  68. force victim to respawn
  69. if {_weapon} is set:
  70. set the death message to "&b%victim%&7は&b%attacker%&7の&r%{_weapon}%&7で殺された"
  71. if {_weapon} is not set:
  72. set the death message to "&b%victim%&7は&b%attacker%&7に殺された"
  73. if attacker is not a player:
  74. force victim to respawn
  75. set the death message to "&b%victim%&7は&b%attacker%&7に殺された"
  76. if {_attacker} is not set:
  77. force victim to respawn
  78. set the death message to "&b%victim%&7は死亡した"
Advertisement
Add Comment
Please, Sign In to add comment