Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {xp.%player's uuid%} is not set:
- set {xp.%player's uuid%} to 0
- if {kills::%player's uuid%} is not set:
- set {kills::%player's uuid%} to 0
- if {deaths::%player's uuid%} is not set:
- set {deaths::%player's uuid%} to 0
- if {xpc.%player's uuid%} is not set:
- set {xpc.%player's uuid%} to 200
- on death:
- victim is player
- set {kit.%victim's uuid%} to false
- set {_victim} to victim
- set {_uuid} to {_victim}'s uuid
- set {_attacker} to {lastdamager::%victim%}
- set {_auuid} to {_attacker}'s uuid
- send {_victim} title colored "&c&lDEATH" with subtitle colored "&7To &c%{lastdamager::%victim%}%" for 20 ticks with 0 tick fade in and 3 tick fade out
- add 1 to {TDeaths::%{_uuid}%}
- add 1 to {Tkills::%{_auuid}%}
- set {_rnd} to a random integer between 10 and 20
- add {_rnd} to {xp.%{_auuid}%}
- add 1 to {streak.%{lastdamager::%victim%}%}
- if {ksr.%{lastdamager::%victim%}%} is not set:
- set {ksr.%{lastdamager::%victim%}%} to 5
- send "&cYou got %{_rnd}% xp" to attacker
- set {streak.%victim%} to 0
- delete {ksr.%victim%}
- if {lastdamager::%victim%} is set:
- if projectile is set:
- set death message to "&c%{lastdamager::%victim%}% &7shot &c%victim%&7!"
- else:
- if attacker is not set:
- set death message to "&cunknown &7killed &c%victim%&7!"
- else:
- set death message to "&c%{lastdamager::%victim%}% &7killed &c%victim%&7!"
- give attacker 1 golden apple
- if {streak.%{lastdamager::%victim%}%} = {ksr.%{lastdamager::%victim%}%}:
- loop all players:
- play sound "entity.ender_dragon.growl" at loop-player for loop-player
- broadcast ""
- broadcast "&c%{lastdamager::%victim%}% &7is on a streak of &c%{ksr.%{lastdamager::%victim%}%}%"
- broadcast ""
- set {ksr.%{lastdamager::%victim%}%} to {streak.%{lastdamager::%victim%}%} + 5
- if attacker is not set:
- send "&c%victim% &7fell into the void!" to all players
- send {_victim} title colored "&c&lDEATH" with subtitle colored "&7To &cThe Void" for 20 ticks with 0 tick fade in and 3 tick fade out
- add 1 to {Deaths::%victim's uuid%}
- stop
- wait 5 ticks
- respawn victim
- teleport victim to {spawn}
- on respawn:
- wait 5 ticks
- clear player's inventory
- on damage:
- victim is player
- attacker is player
- set {lastdamager::%victim%} to attacker
- set {lastdamageat::%victim%} to 5
- on quit:
- if {combat.%player%} is true:
- kill player
- every second:
- loop all players:
- if {lastdamageat::%loop-player%} is 0:
- delete {lastdamager::%loop-player%}
- if {lastdamageat::%loop-player%} is set:
- remove 1 from {lastdamageat::%loop-player%}
- every 30 seconds:
- loop all players:
- set {_online} to number of all players
- wipe loop-player's sidebar
- set {diff.%loop-player's uuid%} to {xpc.%loop-player's uuid%} - {xp.%loop-player's uuid%}
- set name of sidebar of loop-player to "&6&lBiomeKits &7&o(%{_online}% / 15)"
- set score "&7" in sidebar of loop-player to 9
- set score "&c&lStats" in sidebar of loop-player to 8
- set score "&7&lLevel: &c%{level::%loop-player's uuid%}%" in sidebar of loop-player to 7
- set score "&7&lXp: &c%{xp.%loop-player's uuid%}%" in sidebar of loop-player to 6
- set score "&7&lXp Needed: &c%{diff.%loop-player's uuid%}%" in sidebar of loop-player to 5
- set score "&7&lKills: &c%{Tkills::%loop-player's uuid%}%" in sidebar of loop-player to 4
- set score "&7&lDeaths: &c%{TDeaths::%loop-player's uuid%}%" in sidebar of loop-player to 3
- set score "&7&1" in sidebar of loop-player to 2
- set score "&6&lBiomeKits.Minehut.gg" in sidebar of loop-player to 1
- if {xp.%loop-player's uuid%} >= {xpc.%loop-player's uuid%}:
- add 1 to {level::%loop-player's uuid%}
- send "&eYou leveled up!" to loop-player
- add 200 to {xpc.%loop-player's uuid%}
- on join:
- if {xp.%player's uuid%} is not set:
- set {xp.%player's uuid%} to 0
- if {kills::%player's uuid%} is not set:
- set {kills::%player's uuid%} to 0
- if {deaths::%player's uuid%} is not set:
- set {deaths::%player's uuid%} to 0
- if {xpc.%player's uuid%} is not set:
- set {xpc.%player's uuid%} to 200
- if {level::%player's uuid%} is not set:
- set {level::%player's uuid%} to 1
- on first join:
- set {kit.%player's uuid%} to false
- add 1 to {joins}
- broadcast "&c%player% &7is new to &6BiomeKits&7! &c(##%{joins}%)"
- on join:
- set join message to "&c%player% &7has joined"
- on quit:
- set quit message to "&c%player% &7has left"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement