Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Kits
- 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 5 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 "&cSakuraKits &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 "&cKits" to player
- format slot 10 of player with diamond sword named "&7Kit Fighter" with lore "&7Stone Sword" and "&7Fishing Rod” and " &76 Golden Apples" and "&7Chain Helmet" and "&7Iron Chestplate” and "&7Chain Leggings” and “&7Chain Boots” to close then run [Execute player command "/kit fighter"]
- format slot 12 of player with bow named "&7Kit Archer" with lore "&7Wooden Sword" and "&72 Golden Apples" 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 16 of player with bow named "&7Kit 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 {level::%player's uuid%} >= 5:
- format slot 14 of player with iron sword named "&7Kit Warrior" with lore "&7Iron Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" to close then run [Execute player command "/kit warrior"]
- if {level::%player's uuid%} >= 10:
- format slot 28 of player with stone sword named "&7Kit Spammer" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow pow1, inf" and "&7A arrow" to close then run [Execute player command "/kit spammer"]
- 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 6 golden apple
- 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 punch 1 and infinity 1
- give player 4 golden apple
- give player 1 arrow
- send "&7Kit Archer Recived!"
- set {kit.%player's uuid%} to true
- else:
- send "&cYou already have a kit!"
- else:
- if arg-1 is "warrior":
- if {kit.%Player's uuid%} is false:
- if {level::%player's uuid%} >= 5:
- 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 iron sword
- give player 8 golden apple
- send "&7Kit Warrior Recived!"
- set {kit.%player's uuid%} to true
- else:
- send "&cYou must be at least level 5!"
- else:
- send "&cYou already have a kit!"
- else:
- 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 of unbreaking 3
- give player a fishing rod of unbreaking 3
- give player bow of punch 1 and infinity 1
- give player 8 golden apple
- give player 1 arrow
- send "&7Kit VIP Recived!"
- set {kit.%player's uuid%} to true
- else:
- send "&cYou must be a vip!"
- else:
- send "&cYou already have a kit!"
- else:
- if arg-1 is "spammer":
- if {kit.%Player's uuid%} is false:
- if {level::%player's uuid%} >= 10:
- 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 stone sword
- give player a bow of punch 1 and infinity 1
- give player a arrow
- give player 8 golden apple
- send "&7Kit Spammer Recived!"
- set {kit.%player's uuid%} to true
- else:
- send "&cYou must be at least level 10!"
- else:
- send "&cYou already have a kit!"
- 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