Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Action Bar, Health Finder, Defence Finder & Combat Timer
- #
- every 1 second:
- loop all players:
- # Max Health & Defence Finder
- set {_h::vitality::*} to line 1 of the lore of the loop-player's helmet split at "&a+"
- set {_h::vitality::*} to {_h::vitality::2} split at " &7Vitality"
- if {_h::vitality::1} is not set:
- set {_h::vitality::1} to 0
- set {_c::vitality::*} to line 1 of the lore of the loop-player's chestplate split at "&a+"
- set {_c::vitality::*} to {_c::vitality::2} split at " &7Vitality"
- if {_c::vitality::1} is not set:
- set {_c::vitality::1} to 0
- set {_l::vitality::*} to line 1 of the lore of the loop-player's leggings split at "&a+"
- set {_l::vitality::*} to {_l::vitality::2} split at " &7Vitality"
- if {_l::vitality::1} is not set:
- set {_l::vitality::1} to 0
- set {_b::vitality::*} to line 1 of the lore of the loop-player's boots split at "&a+"
- set {_b::vitality::*} to {_b::vitality::2} split at " &7Vitality"
- if {_b::vitality::1} is not set:
- set {_b::vitality::1} to 0
- set {_h::defence::*} to line 2 of the lore of the loop-player's helmet split at "&a+"
- set {_h::defence::*} to {_h::defence::2} split at " &7Defence"
- if {_h::defence::1} is not set:
- set {_h::defence::1} to 0
- set {_c::defence::*} to line 2 of the lore of the loop-player's chestplate split at "&a+"
- set {_c::defence::*} to {_c::defence::2} split at " &7Defence"
- if {_c::defence::1} is not set:
- set {_c::defence::1} to 0
- set {_l::defence::*} to line 2 of the lore of the loop-player's leggings split at "&a+"
- set {_l::defence::*} to {_l::defence::2} split at " &7Defence"
- if {_l::defence::1} is not set:
- set {_l::defence::1} to 0
- set {_b::defence::*} to line 2 of the lore of the loop-player's boots split at "&a+"
- set {_b::defence::*} to {_b::defence::2} split at " &7Defence"
- if {_b::defence::1} is not set:
- set {_b::defence::1} to 0
- set {_def} to 0
- add {_h::defence::1} to {_def}
- send "{_def} test%{_def}%test" to loop-player
- add {_c::defence::1} to {_def}
- add {_l::defence::1} to {_def}
- add {_b::defence::1} to {_def}
- set {defence::armor::%loop-player%} to {_def}
- set {vitality::armor::%loop-player%} to ({_h::vitality::1}+{_c::vitality::1}+{_l::vitality::1}+{_b::vitality::1})
- set {maxHealth::final::%loop-player%} to ({vitality::armor::%loop-player%}+{vitality::skill::%loop-player%}+{health::base::%loop-player%})
- send "" to loop-player
- send "{_def} test%{_def}%test" to loop-player
- send "{_h::defence::1} test%{_h::defence::1}%test" to loop-player
- send "{_h::vitality::1} test%{_h::vitality::1}%test" to loop-player
- send "" to loop-player
- send "{defence::armor::%loop-player%} %{defence::armor::%loop-player%}%" to loop-player
- send "{vitality::armor::%loop-player%} %{vitality::armor::%loop-player%}%" to loop-player
- send "{maxHealth::final::%loop-player%} %{maxHealth::final::%loop-player%}%" to loop-player
- send "" to loop-player
- # Combat Timer
- if {combat::timer::%loop-player%} is greater than 0:
- subtract 1 from {combat::timer::%loop-player%}
- if {combat::timer::%loop-player%} is equal to 0:
- set {combat::%loop-player%} to false
- # Action Bar
- send action bar "&c❤ %{health::final::%loop-player%}%&c/%{maxHealth::final::%loop-player%}% &a❖ %{defence::final::%loop-player%}%" to loop-player
- if {combat::%loop-player%} is equal to true:
- send action bar "&c❤ %{health::final::%loop-player%}%&c/%{maxHealth::final::%loop-player%}% &a❖ %{defence::final::%loop-player%}% &e⚔ %{health::enemy::%loop-player%}%&e/%{maxHealth::enemy::%loop-player%}%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement