every 1 tick:
loop all players:
set %player_strength% to loop-player's {strength::%loop-player%}
if %player_strength% is 5:
set loop-player's attack damage attribute to 6
else if %player_strength% is 4:
set loop-player's attack damage attribute to 5
else if %player_strength% is 3:
set loop-player's attack damage attribute to 4
else if %player_strength% is 2:
set loop-player's attack damage attribute to 3
else if %player_strength% is 1:
set loop-player's attack damage attribute to 2
else if %player_strength% is 0:
set loop-player's attack damage attribute to 1
else if %player_strength% is -1:
set loop-player's attack damage attribute to 0
else if %player_strength% is -2:
set loop-player's attack damage attribute to -1
else if %player_strength% is -3:
set loop-player's attack damage attribute to -2
else if %player_strength% is -4:
set loop-player's attack damage attribute to -3
else if %player_strength% is -5:
execute console command "/tempban %loop-player% 12h &cYou have been set down to -5 attack damage and have been banned! You will be unbanned in 12 hours."
set {strength.eliminated::%loop-player%} to true
wait 12 hours
set {strength.eliminated::%loop-player%} to false
set %loop-player%'s {strength::%loop-player%} to 0
loop all players:
set %player_strength% to loop-player's {strength::%loop-player%}
if %player_strength% is 5:
set loop-player's attack damage attribute to 6
else if %player_strength% is 4:
set loop-player's attack damage attribute to 5
else if %player_strength% is 3:
set loop-player's attack damage attribute to 4
else if %player_strength% is 2:
set loop-player's attack damage attribute to 3
else if %player_strength% is 1:
set loop-player's attack damage attribute to 2
else if %player_strength% is 0:
set loop-player's attack damage attribute to 1
else if %player_strength% is -1:
set loop-player's attack damage attribute to 0
else if %player_strength% is -2:
set loop-player's attack damage attribute to -1
else if %player_strength% is -3:
set loop-player's attack damage attribute to -2
else if %player_strength% is -4:
set loop-player's attack damage attribute to -3
else if %player_strength% is -5:
execute console command "/tempban %loop-player% 12h &cYou have been set down to -5 attack damage and have been banned! You will be unbanned in 12 hours."
set {strength.eliminated::%loop-player%} to true
wait 12 hours
set {strength.eliminated::%loop-player%} to false
set %loop-player%'s {strength::%loop-player%} to 0