execute if score @s giant_timer matches 1.. run return run tellraw @s ["",{"text":"You are immune to weak knees because you are ","color":"dark_aqua"},{"text":"GIANT","bold":true,"color":"dark_aqua"},{"text":"!","color":"dark_aqua"}]
execute if score @s invulnerable_timer matches 1.. run return run tellraw @s ["",{"text":"You are immune to weak knees because you are ","color":"dark_aqua"},{"text":"INVULNERABLE","bold":true,"color":"yellow"},{"text":"!","color":"dark_aqua"}]
attribute @s minecraft:safe_fall_distance base set 0
execute if entity @a[tag=weak_knees_temp] run tellraw @s ["",{"text":"Your knees have been weakened by","color":"dark_aqua"},{"text":" "},{"selector":"@n[tag=weak_knees_temp]"},{"text":"!","color":"dark_aqua"}]
$scoreboard players set @s weak_knees_timer $(duration)
execute at @s anchored eyes run playsound minecraft:block.anvil.place player @s ~ ~ ~ 1 0