akon1248

Untitled

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