Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {kills::%uuid of player%} is not set:
- set {kills::%uuid of player%} to 0
- set {deaths::%uuid of player%} to 0
- set {level::%uuid of player%} to 1
- set {tstreak::%uuid of player%} to 0
- set {nstreak::%uuid of player%} to 0
- set {uuid::%player%} to uuid of player
- set {sb.kills::%player%} to {kills::%uuid of player%}
- set {sb.deaths::%player%} to {deaths::%uuid of player%}
- on respawn:
- wait 3 ticks
- if {autoarmor.%player%} is true:
- if {level::%uuid of player%} is 1:
- set helmet of player to iron helmet
- set chestplate of player to iron chestplate
- set leggings of player to iron leggings
- set boots of player to iron boots
- set slot 0 of player to iron sword
- set slot 1 of player to fishing rod
- set slot 2 of player to bow
- set slot 3 of player to 16 steak
- set slot 8 of player to 32 arrow
- stop
- else if {level::%uuid of player%} is 2:
- set helmet of player to iron helmet of protection 1
- set chestplate of player to iron chestplate
- set leggings of player to iron leggings
- set boots of player to iron boots of protection 1
- set slot 0 of player to iron sword
- set slot 1 of player to fishing rod of unbreaking 1
- set slot 2 of player to bow
- set slot 3 of player to 32 steak
- set slot 8 of player to 48 arrow
- stop
- else if {level::%uuid of player%} is 3:
- set helmet of player to iron helmet of protection 1
- set chestplate of player to diamond chestplate
- set leggings of player to diamond leggings
- set boots of player to iron boots of protection 1
- set slot 0 of player to diamond sword
- set slot 1 of player to fishing rod of unbreaking 1
- set slot 2 of player to bow
- set slot 3 of player to 48 steak
- set slot 8 of player to 64 arrow
- stop
- else if {level::%uuid of player%} is 4:
- set helmet of player to diamond helmet
- set chestplate of player to diamond chestplate
- set leggings of player to diamond leggings
- set boots of player to diamond boots
- set slot 0 of player to diamond sword
- set slot 1 of player to fishing rod of unbreaking 1
- set slot 2 of player to bow of power 1
- set slot 3 of player to 64 steak
- set slot 8 of player to 64 arrow
- stop
- else if {level::%uuid of player%} is 5:
- set helmet of player to diamond helmet
- set chestplate of player to diamond chestplate
- set leggings of player to diamond leggings
- set boots of player to diamond boots
- set slot 0 of player to diamond sword of sharpness 1
- set slot 1 of player to fishing rod of unbreaking 1
- set slot 2 of player to bow of power 1
- set slot 3 of player to 64 steak
- set slot 8 of player to 64 arrow
- stop
- else:
- send "&8[&4&lKIT&8] &cDer skete en fejl med dit level, kontakt en staff."
- command /stats [<offline player>]:
- trigger:
- if arg-1 is not set:
- send "&8&m-------------------"
- send ""
- send "&2%player% &8»"
- send "&8 - &2Kills &8» &a%{kills::%uuid of player%}%"
- send "&8 - &2Deaths &8» &a%{deaths::%uuid of player%}%"
- send "&8 - &2Nuværrende Streak &8» &a%{nstreak::%uuid of player%}%"
- send "&8 - &2Top Streak &8» &a%{tstreak::%uuid of player%}%"
- send ""
- send "&8&m-------------------"
- stop
- send "&8&m-------------------"
- send ""
- send "&2%arg-1% &8»"
- send "&8 - &2Kills &8» &a%{kills::%{uuid::%arg-1%}%}%"
- send "&8 - &2Deaths &8» &a%{deaths::%{uuid::%arg-1%}%}%"
- send "&8 - &2Nuværrende Streak &8» &a%{nstreak::%{uuid::%arg-1%}%}%"
- send "&8 - &2Top Streak &8» &a%{tstreak::%{uuid::%arg-1%}%}%"
- send ""
- send "&8&m-------------------"
- on death of player:
- set {nstreak::%uuid of victim%} to 0
- add 1 to {nstreak::%uuid of attacker%}
- if {nstreak::%uuid of attacker%} is greater or equal to {tstreak::%uuid of attacker%}:
- set {tstreak::%uuid of attacker%} to {nstreak::%uuid of attacker%}
- on death:
- add 1 to {kills::%uuid of attacker%}
- add 1 to {deaths::%uuid of victim%}
- set {sb.kills::%attacker%} to {kills::%uuid of attacker%}
- set {sb.deaths::%victim%} to {deaths::%uuid of victim%}
- set {kills::<none>} to 0
- wait 3 ticks
- force respawn victim
- if {kills::%uuid of attacker%} is between 100 and 249:
- set {level::%uuid of attacker%} to 2
- execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &22"
- else if {kills::%uuid of attacker%} is between 250 and 599:
- set {level::%uuid of attacker%} to 3
- execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &23"
- else if {kills::%uuid of attacker%} is between 600 and 849:
- set {level::%uuid of attacker%} to 4
- execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &24"
- else if {kills::%uuid of attacker%} is greater or equal to 850:
- set {level::%uuid of attacker%} to 5
- execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &25"
- command /kit [<text>]:
- trigger:
- wait 3 ticks
- if arg-1 is not set:
- open chest with 3 rows named "&2&lKITS" to player
- if "%inventory name of player's current inventory%" is "&2&lKITS":
- wait 3 ticks
- loop integers from 0 to 26:
- format slot loop-number of player with light green stained glass pane named " " to be unstealable
- if {autoarmor.%player%} is true:
- format slot 4 of player with 323 named "&2&lINFO&8:" with lore "&2Auto Kit &8» &aJa||&7&oKlik for at ændre." to run [ make player execute command "kit config"]
- else:
- format slot 4 of player with 323 named "&2&lINFO&8:" with lore "&2Auto Kit &8» &4Nej||&7&oKlik for at ændre." to run [ make player execute command "kit config"]
- format slot 11 of player with stone sword named "&2&lKIT PVP" with lore "&aKlik for at tage kit &2PVP||&aLevel &8» &2%{level::%uuid of player%}%" to close then run [ make player execute command "kit pvp"]
- if player has permission "rank.vip":
- format slot 15 of player with iron sword named "&2&lKIT VIP" with lore "&aKlik for at tage kit &2VIP" to close then run [ make player execute command "kit vip"]
- else:
- format slot 15 of player with iron sword named "&4&lKIT VIP" with lore "&7&oKøb adgang via &c&o/buy&7&o!" to be unstealable
- if player has permission "rank.mvp":
- format slot 16 of player with diamond sword named "&2&lKIT MVP" with lore "&aKlik for at tage kit &2MVP" to close then run [ make player execute command "kit mvp"]
- else:
- format slot 16 of player with diamond sword named "&4&lKIT MVP" with lore "&7&oKøb adgang via &c&o/buy&7&o!" to be unstealable
- else if arg-1 is "config":
- open chest with 1 row named "&2&lKITS" to player
- if "%inventory name of player's current inventory%" is "&2&lKITS":
- wait 3 ticks
- if {autoarmor.%player%} is true:
- format slot 4 of player with 160:5 named "&2&lAKTIVERET!" with lore "&aKlik for at deaktivere." to close then run [ make player execute command "kit auto"]
- else:
- format slot 4 of player with 160:14 named "&2&lDEAKTIVERET!" with lore "&aKlik for at aktivere." to close then run [ make player execute command "kit auto"]
- else if arg-1 is "auto":
- if {autoarmor.%player%} is true:
- delete {autoarmor.%player%}
- execute player command "kit config"
- else:
- set {autoarmor.%player%} to true
- execute player command "kit config"
- else if arg-1 is "vip":
- if player has permission "rank.vip":
- set {_waited} to difference between {kits.vip.%uuid of player%} and now
- if {_waited} is less than 10 hours:
- set {_besked} to "%difference between 10 hours and {_waited}%"
- replace all "hours" with "timer" in {_besked}
- replace all "hour" with "time" in {_besked}
- replace all "minutes" with "minutter" in {_besked}
- replace all "minute" with "minut" in {_besked}
- replace all "and" with "og" in {_besked}
- replace all "seconds" with "sekunder" in {_besked}
- replace all "second" with "sekund" in {_besked}
- send "&8[&2&lKITS&8] &aDu kan først tage kit &2VIP&a om %{_besked}%"
- stop
- set {kits.vip.%uuid of player%} to now
- give player diamond sword of sharpness 2 and unbreaking 3
- give player fishing rod of unbreaking 3
- give player bow of power 2 and unbreaking 3
- give player 16 steak
- give player 32 arrow
- give player diamond helmet of protection 1 and unbreaking 3
- give player iron chestplate of protection 2 and unbreaking 3
- give player iron leggings of protection 2 and unbreaking 3
- give player diamond boots of protection 1 and unbreaking 3
- send "&8[&2&lKITS&8] &aDu tog kittet &2VIP"
- else if arg-1 is "mvp":
- if player has permission "rank.mvp":
- set {_waited} to difference between {kits.mvp.%uuid of player%} and now
- if {_waited} is less than 10 hours:
- set {_besked} to "%difference between 10 hours and {_waited}%"
- replace all "hours" with "timer" in {_besked}
- replace all "hour" with "time" in {_besked}
- replace all "minutes" with "minutter" in {_besked}
- replace all "minute" with "minut" in {_besked}
- replace all "and" with "og" in {_besked}
- replace all "seconds" with "sekunder" in {_besked}
- replace all "second" with "sekund" in {_besked}
- send "&8[&2&lKITS&8] &aDu kan først tage kit &2MVP&a om %{_besked}%"
- stop
- set {kits.mvp.%uuid of player%} to now
- give player diamond sword of sharpness 2 and fire aspect 1 and unbreaking 3
- give player fishing rod of unbreaking 3
- give player bow of power 2 and flame 1 and unbreaking 3
- give player 16 steak
- give player 32 arrow
- give player iron helmet of protection 3 and unbreaking 3
- give player diamond chestplate of protection 2 and unbreaking 3
- give player diamond leggings of protection 2 and unbreaking 3
- give player iron boots of protection 3 and unbreaking 3
- send "&8[&2&lKITS&8] &aDu tog kittet &2MVP"
- else if arg-1 is "pvp" or "spiller":
- set {_waited} to difference between {kits.pvp.%uuid of player%} and now
- if {_waited} is less than 10 seconds:
- set {_besked} to "%difference between 10 seconds and {_waited}%"
- replace all "hours" with "timer" in {_besked}
- replace all "hour" with "time" in {_besked}
- replace all "minutes" with "minutter" in {_besked}
- replace all "minute" with "minut" in {_besked}
- replace all "and" with "og" in {_besked}
- replace all "seconds" with "sekunder" in {_besked}
- replace all "second" with "sekund" in {_besked}
- send "&8[&2&lKITS&8] &aDu kan først tage kit &2PVP&a om %{_besked}%"
- stop
- if {level::%uuid of player%} is 1:
- set {kits.pvp.%uuid of player%} to now
- give player iron sword
- give player fishing rod
- give player bow
- give player 16 steak
- give player 32 arrow
- give player iron helmet
- give player iron chestplate
- give player iron leggings
- give player iron boots
- send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &21&a!"
- stop
- else if {level::%uuid of player%} is 2:
- set {kits.pvp.%uuid of player%} to now
- give player iron sword
- give player fishing rod of unbreaking 1
- give player bow
- give player 32 steak
- give player 48 arrow
- give player iron helmet of protection 1
- give player iron chestplate
- give player iron leggings
- give player iron boots of protection 1
- send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &22&a!"
- stop
- else if {level::%uuid of player%} is 3:
- set {kits.pvp.%uuid of player%} to now
- give player diamond sword
- give player fishing rod of unbreaking 1
- give player bow
- give player 48 steak
- give player 64 arrow
- give player iron helmet of protection 1
- give player diamond chestplate
- give player diamond leggings
- give player iron boots of protection 1
- send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &23&a!"
- stop
- else if {level::%uuid of player%} is 4:
- set {kits.pvp.%uuid of player%} to now
- give player diamond sword
- give player fishing rod of unbreaking 1
- give player bow of power 1
- give player 64 steak
- give player 64 arrow
- give player diamond helmet
- give player diamond chestplate
- give player diamond leggings
- give player diamond boots
- send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &24&a!"
- stop
- else if {level::%uuid of player%} is 5:
- set {kits.pvp.%uuid of player%} to now
- give player diamond sword of sharpness 1
- give player fishing rod of unbreaking 1
- give player bow of power 1
- give player 64 steak
- give player 64 arrow
- give player diamond helmet
- give player diamond chestplate
- give player diamond leggings
- give player diamond boots
- send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &25&a!"
- stop
- command /level:
- trigger:
- open chest with 2 rows named "&2&lLEVELS" to player
- if "%inventory name of player's current inventory%" is "&2&lLEVELS":
- wait 3 ticks
- loop integers from 0 to 16:
- format slot loop-number of player with light green stained glass pane named "&r" to be unstealable
- format slot 4 of player with 323 named "&2&lLEVEL&8:" with lore "&2Level 1&8: &aStarter Level||&2Level 2&8: &a100 Kills||&2Level 3&8: &a250 Kills||&2Level 4&8: &a600 Kills||&2Level 5&8: &a850 Kills" to be unstealable
- format slot 9 of player with wooden sword named "&2&lLEVEL 1" with lore "&aKit Indeholder&8:|| || &8- &aIron Sword|| &8- &aFishing Rod|| &8- &aBow|| &8- &a16x Steaks|| &8- &aIron Helmet|| &8- &aIron Chestplate|| &8- &aIron Leggings|| &8- &aIron Boots|| &8- &a32x Arrows" to be unstealable
- format slot 11 of player with stone sword named "&2&lLEVEL 2" with lore "&aKit Indeholder&8:|| || &8- &aIron Sword|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow|| &8- &a32x Steaks|| &8- &aIron Helmet &8[&2Protection I&8]|| &8- &aIron Chestplate|| &8- &aIron Leggings|| &8- &aIron Boots &8[&2Protection I&8]|| &8- &a48x Arrows" to be unstealable
- format slot 13 of player with golden sword named "&2&lLEVEL 3" with lore "&aKit Indeholder&8:|| || &8- &aIron Sword|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow|| &8- &a48x Steaks|| &8- &aIron Helmet &8[&2Protection I&8]|| &8- &aDiamond Chestplate|| &8- &aDiamond Leggings|| &8- &aIron Boots &8[&2Protection I&8]|| &8- &a64x Arrows" to be unstealable
- format slot 15 of player with iron sword named "&2&lLEVEL 4" with lore "&aKit Indeholder&8:|| || &8- &aDiamond Sword|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow &8[&2Power I&8]|| &8- &a64x Steaks|| &8- &aDiamond Helmet|| &8- &aDiamond Chestplate|| &8- &aDiamond Leggings|| &8- &aDiamond Boots|| &8- &a64x Arrows" to be unstealable
- format slot 17 of player with diamond sword named "&2&lLEVEL 5" with lore "&aKit Indeholder&8:|| || &8- &aDiamond Sword &8[&2Sharpness I&8]|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow &8[&2Power I&8]|| &8- &a64x Steaks|| &8- &aDiamond Helmet|| &8- &aDiamond Chestplate|| &8- &aDiamond Leggings|| &8- &aDiamond Boots|| &8- &a64x Arrows" to be unstealable
Add Comment
Please, Sign In to add comment