Hello I am a new scripter I started around a month ago and I need help with a effectsmp script this skript is supposed to give the player strength 1 on first kill, speed 1 on next and so on (both are supposed to max out at 3)
Heres the skript I have!
on death of player:
if attacker is a player:
broadcast "%victim% died to %attacker%"
execute console command "effect clear %victim%"
unless score %victim% hasStrength matches 1 if score %attacker% hasStrength matches 1:
broadcast "%attacker% has potion of strength!"
execute console command "effect clear %attacker% minecraft:strength"
execute console command "effect give %attacker% minecraft:speed 999999 2 true"
if else:
broadcast "%attacker% does not have potion of strength!"
execute console command "effect give %attacker% minecraft:strength 999999 2 true"
execute console command "scoreboard players set %attacker% hasStrength 1"
Heres the skript I have!
on death of player:
if attacker is a player:
broadcast "%victim% died to %attacker%"
execute console command "effect clear %victim%"
unless score %victim% hasStrength matches 1 if score %attacker% hasStrength matches 1:
broadcast "%attacker% has potion of strength!"
execute console command "effect clear %attacker% minecraft:strength"
execute console command "effect give %attacker% minecraft:speed 999999 2 true"
if else:
broadcast "%attacker% does not have potion of strength!"
execute console command "effect give %attacker% minecraft:strength 999999 2 true"
execute console command "scoreboard players set %attacker% hasStrength 1"