Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Kit PVP Skript
- #Af Notekri og Jakvi
- on rightclick:
- if player is holding an iron sword named "&9Zoomer":
- if {dash.%player%} is true:
- send "&cVent med at bruge denne ability" to player
- else:
- send "&eDASH" to player
- set {dash.%player%} to true
- push player upwards at speed 0.5
- wait 1 ticks
- push player in horizontal direction of player at speed 1.5
- loop 10 times:
- damage all entities in radius 2 around player by 2
- wait 2 ticks
- wait 8 seconds
- set {dash.%player%} to false
- if player is holding an iron hoe named "&5Switcher":
- if {switcher.%player%} is set:
- send "&cVent med at brug din ability" to player
- else:
- send "&dSwitch shot" to player
- make player shoot a snowball at velocity 2
- set {switcher.%player%} to true
- wait 8 seconds
- clear {switcher.%player%}
- if player is holding a chest named "&6Kits":
- cancel event
- open chest with 1 rows named "&4Kits" to player
- wait 2 ticks
- format slot 0 of player with diamond sword named "&7PvP" with lore "&fNormalt kit med iron armor og et diamant sværd!" to close then run [execute player command "/kit PvP"]
- #Switcher#
- send "%{kit.Switcher.%player%}%" to player
- if {kit.Switcher.%player%} is set:
- format slot 1 of player with snowball named "&5Switcher" with lore "&fI det her kit får en en stav der skydder en bold||&fsom bytter rund på dig og ham du skød!" to close then run [execute player command "/kit Switcher"]
- else:
- format slot 1 of player with red stained glass pane named "&5Switcher" with lore "&fI det her kit får en en stav der skydder en bold||&fsom bytter rund på dig og ham du skød!" to be unstealable
- #Zoomer#
- if {kit.Zoomer.%player%} is true:
- format slot 2 of player with sugar named "&cZoomer" with lore "&fDet her kit indholder et sværd, men hvis du højre klikker||&fmed det bliver du skudt fremad og skader folk i din vej!" to close then run [execute player command "/kit Zoomer"]
- else:
- format slot 2 of player with red stained glass pane named "&cZoomer" with lore "&fDet her kit indholder et sværd, men hvis du højre klikker||&fmed det bliver du skudt fremad og skader folk i din vej!" to be unstealable
- #Archer#
- if {kit.Archer.%player%} is true:
- format slot 3 of player with bow named "&4Archer" with lore "&fDu får en god bue, potions og armor!" to close then run [execute player command "/kit Archer"]
- else:
- format slot 3 of player with red stained glass pane named "&4Archer" with lore "&fDu får en god bue, potions og armor!" to be unstealable
- on rightclick on an entity:
- if player is holding an iron sword named "&9Zoomer":
- if {dash.%player%} is true:
- send "&cVent med at bruge denne ability" to player
- else:
- send "&eDASH" to player
- set {dash.%player%} to true
- push player upwards at speed 0.5
- wait 1 ticks
- push player in horizontal direction of player at speed 1.5
- loop 10 times:
- damage all entities in radius 2 around player by 2
- wait 2 ticks
- wait 8 seconds
- set {dash.%player%} to false
- if player is holding an iron hoe named "&5Switcher":
- if {switcher.%player%} is set:
- send "&cVent med at brug din ability" to player
- else:
- send "&dSwitch shot" to player
- make player shoot a snowball at velocity 2
- set {switcher.%player%} to true
- wait 8 seconds
- clear {switcher.%player%}
- on damage:
- if projectile is a snowball:
- if {switcher.%attacker%} is set:
- cancel event
- set {_pos} to position of attacker
- teleport attacker to victim
- teleport victim to {_pos}
- command /kits [<Text>] [<Text>]:
- trigger:
- open chest with 1 rows named "&4Kits" to player
- wait 2 ticks
- format slot 0 of player with diamond sword named "&7PvP" with lore "&fNormalt kit med iron armor og et diamant sværd!" to close then run [execute player command "/kit PvP"]
- #Switcher#
- send "%{kit.Switcher.%player%}%" to player
- if {kit.Switcher.%player%} is set:
- format slot 1 of player with snowball named "&5Switcher" with lore "&fI det her kit får en en stav der skydder en bold||&fsom bytter rund på dig og ham du skød!" to close then run [execute player command "/kit Switcher"]
- else:
- format slot 1 of player with red stained glass pane named "&5Switcher" with lore "&fI det her kit får en en stav der skydder en bold||&fsom bytter rund på dig og ham du skød!" to be unstealable
- #Zoomer#
- if {kit.Zoomer.%player%} is true:
- format slot 2 of player with sugar named "&cZoomer" with lore "&fDet her kit indholder et sværd, men hvis du højre klikker||&fmed det bliver du skudt fremad og skader folk i din vej!" to close then run [execute player command "/kit Zoomer"]
- else:
- format slot 2 of player with red stained glass pane named "&cZoomer" with lore "&fDet her kit indholder et sværd, men hvis du højre klikker||&fmed det bliver du skudt fremad og skader folk i din vej!" to be unstealable
- #Archer#
- if {kit.Archer.%player%} is true:
- format slot 3 of player with bow named "&4Archer" with lore "&fDu får en god bue, potions og armor!" to close then run [execute player command "/kit Archer"]
- else:
- format slot 3 of player with red stained glass pane named "&4Archer" with lore "&fDu får en god bue, potions og armor!" to be unstealable
- command /kit [<Text>]:
- trigger:
- if arg 1 is not set:
- make player execute command "/kits"
- if arg 1 is set:
- if arg 1 is "Switcher" or "Zoomer" or "PvP" or "Archer":
- if arg 1 is "PvP":
- clear player's inventory
- set player's helmet to iron helmet named "&7PvP Hjelm"
- set player's chestplate to iron chestplate named "&7PvP Brystplade"
- set player's leggings to iron leggings named "&7PvP Bukser"
- set player's boots to iron boots named "&7PvP Sko"
- set slot 0 of player to diamond sword named "&7PvP Sværd"
- set slot 1 of player to fishing rod named "&7PvP Fiskestang"
- send "&aKit PvP modtaget"
- if arg 1 is "Archer":
- clear player's inventory
- set player's helmet to chainmail helmet named "&4Archer Hjelm"
- set player's chestplate to chainmail chestplate named "&4Archer Brystplade"
- set player's leggings to chainmail leggings named "&4Archer Bukser"
- set player's boots to chainmail boots named "&4Archer Sko"
- set slot 0 of player to stone sword named "&4Archer Sværd"
- set slot 1 of player to bow of power 2, unbreaking 3 and infinity 1 named "&4Archer Bue"
- set slot 8 of player to arrow named "&4Archer Pil"
- if arg 1 is "Switcher":
- clear player's inventory
- set player's helmet to leather helmet named "&5Switcher Hjelm"
- set player's chestplate to iron chestplate named "&5Switcher Brystplade"
- set player's leggings to leather leggings named "&5Switcher Bukser"
- set player's boots to leather boots named "&5Switcher Sko"
- dye player's helmet purple
- dye player's leggings purple
- dye player's boots purple
- set slot 0 of player to stone sword of sharpness 1 named "&5Switcher Sværd"
- set slot 1 of player to iron hoe named "&5Switcher"
- on rightclick:
- if player is holding an anvil named "&6Kit Crate":
- remove 1 of player's held item from player's inventory
- open chest with 3 rows named "&6Kit Crate" to player
- wait 1 tick
- format slot 0 of player with green stained glass pane named "" to be unstealable
- format slot 1 of player with green stained glass pane named "" to be unstealable
- format slot 2 of player with green stained glass pane named "" to be unstealable
- format slot 3 of player with green stained glass pane named "" to be unstealable
- format slot 4 of player with green stained glass pane named "" to be unstealable
- format slot 5 of player with green stained glass pane named "" to be unstealable
- format slot 6 of player with green stained glass pane named "" to be unstealable
- format slot 7 of player with green stained glass pane named "" to be unstealable
- format slot 8 of player with green stained glass pane named "" to be unstealable
- format slot 9 of player with green stained glass pane named "" to be unstealable
- format slot 10 of player with green stained glass pane named "" to be unstealable
- format slot 11 of player with green stained glass pane named "" to be unstealable
- format slot 12 of player with green stained glass pane named "" to be unstealable
- format slot 14 of player with green stained glass pane named "" to be unstealable
- format slot 15 of player with green stained glass pane named "" to be unstealable
- format slot 16 of player with green stained glass pane named "" to be unstealable
- format slot 17 of player with green stained glass pane named "" to be unstealable
- format slot 18 of player with green stained glass pane named "" to be unstealable
- format slot 19 of player with green stained glass pane named "" to be unstealable
- format slot 20 of player with green stained glass pane named "" to be unstealable
- format slot 21 of player with green stained glass pane named "" to be unstealable
- format slot 22 of player with green stained glass pane named "" to be unstealable
- format slot 23 of player with green stained glass pane named "" to be unstealable
- format slot 24 of player with green stained glass pane named "" to be unstealable
- format slot 25 of player with green stained glass pane named "" to be unstealable
- format slot 26 of player with green stained glass pane named "" to be unstealable
- format slot 13 of player with air named "&aKit" to be unstealable
- wait 2 ticks
- format slot 13 of player with snowball named "&bSwitcher" to be unstealable
- wait 4 ticks
- format slot 13 of player with sugar named "&aZoomer" to be unstealable
- wait 6 ticks
- format slot 13 of player with bow named "&eArcher" to be unstealable
- wait 8 ticks
- set {_crate.%player%} to a random integer between 0 and 3
- #Switcher#
- if {_crate.%player%} is 1:
- send "Doo Doo" to player
- format slot 13 of player with snowball named "&bSwitcher" to be unstealable
- if {kit.Switcher.%player%} is true:
- add 125 to balance of player
- send "&cDu fik en duplicate og fået dine penge tilbage"
- else:
- send "&aKit Switcher modtaget, klik på kisten for at bruge den"
- set {kit.Switcher.%player%} to true
- #Kit Zoomer#
- if {_crate.%player%} is 2:
- format slot 13 of player with sugar named "&eZoomer" to be unstealable
- if {kit.Zoomer.%player%} is true:
- add 125 to balance of player
- send "&cDu fik en duplicate og du har fået dine penge tilbage"
- else:
- send "&aKit Zoomer modtaget, klik på kisten for at bruge den"
- set {kit.Zoomer.%player%} to true
- if {_crate.%player%} is 3:
- format slot 13 of player with bow named "&cArcher" to be unstealable
- if {kit.Archer.%player%} is true:
- add 125 to balance of player
- send "&cDu fik en duplicate og fået dine penge tilbage"
- else:
- send "&aKit Archer modtaget, klik på kisten for at bruge den"
- set {kit.Archer.%player%} to true
- on damage:
- if victim is a player:
- if damage is greater or equal to health of victim:
- cancel event
- send "&aDu dræbte lige %victim% og modtog 5 tokens" to attacker
- send "&cDu blev dræbt af %attacker%" to victim
- add 5 to balance of attacker
- set health of victim to 20
- clear inventory of victim
- set slot 0 of victim to chest named "&6Kits"
- set slot 4 of victim to nether star named "&aSidste Kit"
- set slot 8 of victim to anvil named "&6Kit Crates"
- on drop:
- cancel event
- on hunger level change:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement