akon1248

Untitled

Aug 31st, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. on inventory click:
  2. clicked slot is 40:
  3. cancel event
  4. on damage:
  5. if attacker is victim:
  6. cancel event
  7. on death:
  8. victim is a player
  9. set {_attacker} to attacker
  10. set {_victim} to victim
  11. if {_attacker} is set:
  12. add 1 to {deaths::%UUID of victim%}
  13. add 1 to {kills::%UUID of attacker%}
  14. set the death message to "&3%victim%&bは&3%attacker%&bに殺された"
  15. set {_killeffectpattern} to random integer between 1 and 6
  16. execute console command "/title %victim% title {""text"":""YOU DIED"",""color"":""red"",""bold"":""true""}"
  17. execute console command "/title %victim% subtitle {""text"":""You killed by %attacker%!"",""color"":""red""}"
  18. execute console command "/execute %attacker% ~ ~ ~ playsound minecraft:entity.experience_orb.pickup master @s"
  19. if {_killeffectpattern} is 1:
  20. 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%]}]}}}}"
  21. force victim to respawn
  22. if {_killeffectpattern} is 2:
  23. strike lightning effect at victim
  24. force victim to respawn
  25. if {_killeffectpattern} is 3:
  26. execute console command "/execute %victim% ~ ~ ~ summon tnt ~ ~ ~ {Tags:[""tnteffect""],Motion:[0.0d,0.4d,0.0d],Fuse:17s}"
  27. force victim to respawn
  28. if {_killeffectpattern} is 4:
  29. execute console command "/execute %victim% ~ ~ ~ particle flame ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
  30. force victim to respawn
  31. if {_killeffectpattern} is 5:
  32. execute console command "/execute %victim% ~ ~ ~ particle smoke ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
  33. force victim to respawn
  34. if {_killeffectpattern} is 6:
  35. execute console command "/execute %victim% ~ ~ ~ particle blockcrack ~ ~1.5 ~ 0.25 0.5 0.25 0 1000 force @a 152"
  36. force victim to respawn
  37. if {_attacker} is not set:
  38. add 1 to {deaths::%UUID of victim%}
  39. set the death message to "&3%victim%&bは死亡した"
  40. force victim to respawn
  41. execute console command "/title %victim% title {""text"":""YOU DIED"",""color"":""red"",""bold"":""true""}"
  42.  
  43. every tick:
  44. loop all players:
  45. if {deaths::%UUID of loop-player%} is not 0:
  46. set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
  47. if {deaths::%UUID of loop-player%} is 0:
  48. set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
  49. add 0 to {kills::%UUID of loop-player%}
  50. add 0 to {deaths::%UUID of loop-player%}
  51. if {kills::%UUID of loop-player%} is 0:
  52. set {wp::%UUID of loop-player%} to 0
  53. if {kills::%UUID of loop-player%} is not 0:
  54. set {wp::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
  55. set {wp::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{wp::%UUID of loop-player%}
  56. set {wp::%UUID of loop-player%} to {wp::%UUID of loop-player%}*100
  57. command /killstats [<offline player>] [<text>]:
  58. aliases: /ks
  59. usage: &c/killstats <player>
  60. trigger:
  61. if arg-2 is not set:
  62. if arg-1 is set:
  63. if {login.%UUID of arg-1%} is 1:
  64. send "&7================&9&lStats&7================"
  65. send "&3%arg-1%&b's stats"
  66. send "&bKills: &3%{kills::%UUID of arg-1%}%"
  67. send "&bDeaths: &3%{deaths::%UUID of arg-1%}%"
  68. send "&bK/D: &3%{kd::%UUID of arg-1%}%"
  69. send "&bWinning percentage: &3%{wp::%UUID of arg-1%}%%%"
  70. send "&7======================================"
  71. else:
  72. send "&7[&4Error&7] &cThat player's stats is not found."
  73. if arg-1 is not set:
  74. send "&7================&9&lStats&7================"
  75. send "&3%player%&b's stats"
  76. send "&bKills: &3%{kills::%UUID of player%}%"
  77. send "&bDeaths: &3%{deaths::%UUID of player%}%"
  78. send "&bK/D: &3%{kd::%UUID of player%}%"
  79. send "&bWinning percentage: &3%{wp::%UUID of player%}%%%"
  80. send "&7======================================"
  81. if arg-2 is set:
  82. send "&7[&4Error&7] &cThe format of command is incorrect."
  83. send "&cUsage: /playerstats <player>"
  84. every tick:
  85. execute console command "/replaceitem entity @a slot.weapon.offhand air"
  86. command /editkillstats [<text>] [<player>] [<text>] [<number>]:
  87. permission: lsw.command.eks
  88. permission message: &cYou don't have permission.
  89. aliases: /eks
  90. trigger:
  91. if arg-1 is not "add" or "set":
  92. send "&cUsage: /editkillstats <add|set> <player> <kills|deaths> <count>"
  93. stop
  94. if arg-1 is not set:
  95. send "&cUsage: /editkillstats <add|set> <player> <kills|deaths> <count>"
  96. stop
  97. if arg-3 is not "kills" or "deaths":
  98. send "&cUsage: /editkillstats <add|set> <player> <kills|deaths> <count>"
  99. stop
  100. if arg-1 is "add":
  101. if arg-3 is "kills":
  102. add arg-4 to {kills::%UUID of arg-2%}
  103. send "&3%arg-2%&bのキル数を&3%arg-2%&b増やしました"
  104. if arg-3 is "deaths":
  105. add arg-4 to {deaths::%UUID of arg-2%}
  106. send "&3%arg-2%&bのデス数を&3%arg-2%&b増やしました"
  107. if arg-1 is "set":
  108. if arg-3 is "kills":
  109. set {kills::%UUID of arg-2%} to arg-4
  110. send "&3%arg-2%&bのキル数を&3%arg-4%&bに設定しました"
  111. if arg-3 is "deaths":
  112. set {deaths::%UUID of arg-2%} to arg-4
  113. send "&3%arg-2%&bのデス数を&3%arg-4%&bに設定しました"
  114. every tick:
  115. execute console command "/scoreboard players tag @e[type=tnt,tag=tnteffect] add dummyexplosion {Fuse:1s}"
  116. execute console command "/execute @e[tag=dummyexplosion,type=tnt] ~ ~ ~ particle hugeexplosion ~ ~ ~ 0 0 0 0 1 force"
  117. execute console command "/execute @e[tag=dummyexplosion,type=tnt] ~ ~ ~ playsound entity.generic.explode master @a ~ ~ ~ 1 0.7"
  118. execute console command "/kill @e[tag=dummyexplosion,type=tnt]"
Advertisement
Add Comment
Please, Sign In to add comment