Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on inventory click:
- clicked slot is 40:
- cancel event
- on damage:
- if attacker is victim:
- cancel event
- on death:
- victim is a player
- set {_attacker} to attacker
- set {_victim} to victim
- if {_attacker} is set:
- add 1 to {deaths::%UUID of victim%}
- add 1 to {kills::%UUID of attacker%}
- set the death message to "&3%victim%&bは&3%attacker%&bに殺された"
- set {_killeffectpattern} to random integer between 1 and 6
- execute console command "/title %victim% title {""text"":""YOU DIED"",""color"":""red"",""bold"":""true""}"
- execute console command "/title %victim% subtitle {""text"":""You killed by %attacker%!"",""color"":""red""}"
- execute console command "/execute %attacker% ~ ~ ~ playsound minecraft:entity.experience_orb.pickup master @s"
- if {_killeffectpattern} is 1:
- 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%]}]}}}}"
- force victim to respawn
- if {_killeffectpattern} is 2:
- strike lightning effect at victim
- force victim to respawn
- if {_killeffectpattern} is 3:
- execute console command "/execute %victim% ~ ~ ~ summon tnt ~ ~ ~ {Tags:[""tnteffect""],Motion:[0.0d,0.4d,0.0d],Fuse:17s}"
- force victim to respawn
- if {_killeffectpattern} is 4:
- execute console command "/execute %victim% ~ ~ ~ particle flame ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
- force victim to respawn
- if {_killeffectpattern} is 5:
- execute console command "/execute %victim% ~ ~ ~ particle smoke ~ ~1.5 ~ 0.3 0.3 0.3 0.1 1000 force"
- force victim to respawn
- if {_killeffectpattern} is 6:
- execute console command "/execute %victim% ~ ~ ~ particle blockcrack ~ ~1.5 ~ 0.25 0.5 0.25 0 1000 force @a 152"
- force victim to respawn
- if {_attacker} is not set:
- add 1 to {deaths::%UUID of victim%}
- set the death message to "&3%victim%&bは死亡した"
- force victim to respawn
- execute console command "/title %victim% title {""text"":""YOU DIED"",""color"":""red"",""bold"":""true""}"
- every tick:
- loop all players:
- if {deaths::%UUID of loop-player%} is not 0:
- set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
- if {deaths::%UUID of loop-player%} is 0:
- set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
- add 0 to {kills::%UUID of loop-player%}
- add 0 to {deaths::%UUID of loop-player%}
- if {kills::%UUID of loop-player%} is 0:
- set {wp::%UUID of loop-player%} to 0
- if {kills::%UUID of loop-player%} is not 0:
- set {wp::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
- set {wp::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{wp::%UUID of loop-player%}
- set {wp::%UUID of loop-player%} to {wp::%UUID of loop-player%}*100
- command /killstats [<offline player>] [<text>]:
- aliases: /ks
- usage: &c/killstats <player>
- trigger:
- if arg-2 is not set:
- if arg-1 is set:
- if {login.%UUID of arg-1%} is 1:
- send "&7================&9&lStats&7================"
- send "&3%arg-1%&b's stats"
- send "&bKills: &3%{kills::%UUID of arg-1%}%"
- send "&bDeaths: &3%{deaths::%UUID of arg-1%}%"
- send "&bK/D: &3%{kd::%UUID of arg-1%}%"
- send "&bWinning percentage: &3%{wp::%UUID of arg-1%}%%%"
- send "&7======================================"
- else:
- send "&7[&4Error&7] &cThat player's stats is not found."
- if arg-1 is not set:
- send "&7================&9&lStats&7================"
- send "&3%player%&b's stats"
- send "&bKills: &3%{kills::%UUID of player%}%"
- send "&bDeaths: &3%{deaths::%UUID of player%}%"
- send "&bK/D: &3%{kd::%UUID of player%}%"
- send "&bWinning percentage: &3%{wp::%UUID of player%}%%%"
- send "&7======================================"
- if arg-2 is set:
- send "&7[&4Error&7] &cThe format of command is incorrect."
- send "&cUsage: /playerstats <player>"
- every tick:
- execute console command "/replaceitem entity @a slot.weapon.offhand air"
- command /editkillstats [<text>] [<player>] [<text>] [<number>]:
- permission: lsw.command.eks
- permission message: &cYou don't have permission.
- aliases: /eks
- trigger:
- if arg-1 is not "add" or "set":
- send "&cUsage: /editkillstats <add|set> <player> <kills|deaths> <count>"
- stop
- if arg-1 is not set:
- send "&cUsage: /editkillstats <add|set> <player> <kills|deaths> <count>"
- stop
- if arg-3 is not "kills" or "deaths":
- send "&cUsage: /editkillstats <add|set> <player> <kills|deaths> <count>"
- stop
- if arg-1 is "add":
- if arg-3 is "kills":
- add arg-4 to {kills::%UUID of arg-2%}
- send "&3%arg-2%&bのキル数を&3%arg-2%&b増やしました"
- if arg-3 is "deaths":
- add arg-4 to {deaths::%UUID of arg-2%}
- send "&3%arg-2%&bのデス数を&3%arg-2%&b増やしました"
- if arg-1 is "set":
- if arg-3 is "kills":
- set {kills::%UUID of arg-2%} to arg-4
- send "&3%arg-2%&bのキル数を&3%arg-4%&bに設定しました"
- if arg-3 is "deaths":
- set {deaths::%UUID of arg-2%} to arg-4
- send "&3%arg-2%&bのデス数を&3%arg-4%&bに設定しました"
- every tick:
- execute console command "/scoreboard players tag @e[type=tnt,tag=tnteffect] add dummyexplosion {Fuse:1s}"
- execute console command "/execute @e[tag=dummyexplosion,type=tnt] ~ ~ ~ particle hugeexplosion ~ ~ ~ 0 0 0 0 1 force"
- execute console command "/execute @e[tag=dummyexplosion,type=tnt] ~ ~ ~ playsound entity.generic.explode master @a ~ ~ ~ 1 0.7"
- execute console command "/kill @e[tag=dummyexplosion,type=tnt]"
Advertisement
Add Comment
Please, Sign In to add comment