execute store result score @s jjc_hp run data get entity @s AbsorptionAmount 100
execute at @s[scores={jjc_hp=3001..}] on passengers run data modify entity @s[tag=jjc_wildfire_shield1] transformation.scale set value [1f,1.75f,0.25f]
execute at @s[scores={jjc_hp=2001..}] on passengers run data modify entity @s[tag=jjc_wildfire_shield2] transformation.scale set value [1f,1.75f,0.25f]
execute at @s[scores={jjc_hp=1001..}] on passengers run data modify entity @s[tag=jjc_wildfire_shield3] transformation.scale set value [1f,1.75f,0.25f]
execute at @s[scores={jjc_hp=1..}] on passengers run data modify entity @s[tag=jjc_wildfire_shield4] transformation.scale set value [1f,1.75f,0.25f]

execute at @s[scores={jjc_hp=..3000}] on passengers run data modify entity @s[tag=jjc_wildfire_shield1] transformation.scale[] set value 0f
execute at @s[scores={jjc_hp=..2000}] on passengers run data modify entity @s[tag=jjc_wildfire_shield2] transformation.scale[] set value 0f
execute at @s[scores={jjc_hp=..1000}] on passengers run data modify entity @s[tag=jjc_wildfire_shield3] transformation.scale[] set value 0f
execute at @s[scores={jjc_hp=..0}] on passengers run data modify entity @s[tag=jjc_wildfire_shield4] transformation.scale[] set value 0f

effect give @s[scores={jjc_ominous=1..,jjc_hp=1..}] resistance infinite 0 true
effect give @s[scores={jjc_ominous=3..,jjc_hp=1..}] resistance infinite 1 true
effect give @s[scores={jjc_ominous=5..,jjc_hp=1..}] resistance infinite 2 true
effect clear @s[scores={jjc_hp=..0}] resistance

particle block{block_state:"gold_block"} ~ ~1.5 ~ 0.3 0.5 0.3 0 5 normal