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 3 mushroom stew
- 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 "&d&lSakuraKits &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 "&d&lSakuraKits.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
- command /kit [<text>]:
- trigger:
- if arg-1 is not set:
- wait 5 ticks
- open chest with 6 rows named "&c&lKits" to player
- format slot 12 of player with stone sword named "&7&lKit Fighter" with lore "&7Stone Sword" and "&734 Mushroom Stew" and "&7Chain Helmet" and "&7Iron Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Fishing Rod" to close then run [Execute player command "/kit fighter"]
- format slot 14 of player with bow named "&7&lKit Archer" with lore "&7Wooden Sword" and "&733 Mushroom Stew" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&71 Arrow" to close then run [Execute player command "/kit archer"]
- if player has permission "VIP":
- format slot 36 of player with wooden sword named "&a&lKit VIP" with lore "&7Stone Sword" and "&7Bow" and "&71 arrow" and "&716 Golden Apples" and "&7Chain Helmet" and "&7Iron Chestplate" and "&7Chain Leggings" and "&7Chain Boots" to close then run [Execute player command "/kit VIP"]
- if player has permission "VIP+":
- format slot 38 of player with golden sword named "&a&lKit VIP+" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit vip+"]
- if player has permission "MVP":
- format slot 40 of player with stone sword named "&b&lKit MVP" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit mvp"]
- if player has permission "MVP+":
- format slot 42 of player with iron sword named "&b&lKit MVP+" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit mvp+"]
- if player has permission "MVP++":
- format slot 44 of player with diamond sword named "&6&lKit MVP++" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit mvp++"]
- else:
- if arg-1 is "fighter":
- if {kit.%Player's uuid%} is false:
- set player's helmet to chain helmet
- set player's chestplate to iron chestplate
- set player's leggings to chain leggings
- set player's boots to chain boots
- give player a stone sword
- give player fishing rod of unbreaking 3
- give player 34 mushroom stew
- send "&7Kit Fighter Recived!"
- set {kit.%player's uuid%} to true
- else:
- send "&cYou already have a kit!"
- else:
- if arg-1 is "archer":
- if {kit.%Player's uuid%} is false:
- set player's helmet to chain helmet
- set player's chestplate to chain chestplate
- set player's leggings to chain leggings
- set player's boots to chain boots
- give player a wooden sword
- give player a bow of power 1 and punch 1 and infinity 1
- give player 1 arrow
- give player 33 mushroom stew
- send "&7Kit Archer Recived!"
- set {kit.%player's uuid%} to true
- else:
- send "&cYou already have a kit!"
- else:
- if {kit.%player's uuid%} is false:
- if arg-1 is "VIP":
- if {kit.%Player's uuid%} is false:
- if player has permission "VIP":
- set player's helmet to chain helmet
- set player's chestplate to iron chestplate of protection 1
- set player's leggings to chain leggings
- set player's boots to chain boots
- give player a stone sword
- give player bow of power 1 and punch 1 and infinity 1
- give player 1 arrow
- give player 16 golden apple
- give player 32 mushroom stew
- send "&7Kit VIP Recived!"
- set {kit.%player's uuid%} to true
- else:
- send "&cYou must be a vip!"
- on first join:
- set {kit.%player's uuid%} to false
- add 1 to {joins}
- broadcast "&c%player% &7is new to &cSakuraKits&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