Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /giveitem:
- trigger:
- give glowing diamond sword named "&fDiamond Sword" with lore "&7Damage: &c30", "", "&f---&b&lEnchants&f---", "&cSharpness 5", "&cVampire 5" and "&f--------------" to player
- on damage:
- set {_damage} to 0
- if attacker is player:
- set {_item} to attacker's weapon
- set {_split::*} to lore of {_item} split at "||"
- set {_burn} to 0
- loop {_split::*}:
- if loop-value contains "Damage":
- set {_splitLine::*} to loop-value split at " "
- add uncolored {_splitLine::2} parsed as number to {_damage}
- if loop-value contains "Vampire":
- set {_splitLine::*} to loop-value split at " "
- set {_vamp} to uncolored {_splitLine::2} parsed as integer
- if loop-value contains "Sharpness":
- set {_splitLine::*} to loop-value split at " "
- set {_n} to uncolored {_splitLine::2} parsed as integer
- add {_n} * 5 to {_damage}
- if loop-value contains "Power":
- set {_splitLine::*} to loop-value split at " "
- set {_n} to uncolored {_splitLine::2} parsed as integer
- add {_n} * 5 to {_damage}
- add {_vamp}/10*{_damage} to {%attacker%.health}
- if {%attacker%.health} is greater than {%attacker%.maxHealth}:
- set {%attacker%.health} to {%attacker%.maxHealth}
- if victim is not a player:
- if {%victim%.health} is greater than 0:
- remove {_damage} from {%victim%.health}
- if {%victim%.health} is greater than 0:
- set name of victim to "&7Health: &c%{%victim%.health}%"
- heal the victim
- if {%victim%.health} is less than 0:
- kill the victim
- set {%victim%.health} to 1
- on death:
- if victim is a ravager:
- drop 2 firework stars named "&7Ravager Scale" with lore "&8Crafting Ingredient" at the victim's location
- command /boss:
- trigger:
- spawn a ravager 5 meters above the player
- set {%last spawned ravager%.health} to 1000
- set name of last spawned ravager to "&7Health: &c%{%last spawned ravager%.health}%"
- on join:
- set {%player%.health} to 100
- set {%player%.maxHealth} to 100
- every 2 seconds in "Void":
- make console execute command "/title @a times 10000 10000 10000"
- loop all players:
- set {_health} to 0
- set {_item} to loop-player's helmet
- set {_split::*} to lore of {_item} split at "||"
- loop {_split::*}:
- if loop-value-2 contains "Health":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number to {_health}
- if loop-value-2 contains "Absorption":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number * 15 to {_health}
- if chestplate of loop-player is not air:
- set {_item} to loop-player's chestplate
- set {_split::*} to lore of {_item} split at "||"
- loop {_split::*}:
- if loop-value-2 contains "Health":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number to {_health}
- if loop-value-2 contains "Absorption":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number * 15 to {_health}
- if helmet of loop-player is not air:
- set {_item} to loop-player's leggings
- set {_split::*} to lore of {_item} split at "||"
- loop {_split::*}:
- if loop-value-2 contains "Health":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number to {_health}
- if loop-value-2 contains "Absorption":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number * 15 to {_health}
- if boots of loop-player is not air:
- set {_item} to loop-player's boots
- set {_split::*} to lore of {_item} split at "||"
- loop {_split::*}:
- if loop-value-2 contains "Health":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number to {_health}
- if loop-value-2 contains "Absorption":
- set {_splitLine::*} to loop-value-2 split at " "
- add uncolored {_splitLine::2} parsed as number * 15 to {_health}
- set {%loop-player%.maxHealth} to 100 + {_health}
- if {%loop-player%.health} is less than {%loop-player%.maxHealth}:
- add 10 to {%loop-player%.health}
- if {%loop-player%.health} is greater than {%loop-player%.maxHealth}:
- set {%loop-player%.health} to {%loop-player%.maxHealth}
- make console execute command "/title %loop-player% actionbar ""&c%{%loop-player%.health}% / %{%loop-player%.maxHealth}%"""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement