tag @s add nitroglycerin_random
execute if predicate kiwi2:chance_random_10 as @e[type=#enemy_mobs_only,nbt={HurtTime:10s},limit=1,sort=nearest] at @s run function kiwi3:relics/nitroglycerin/nitroglycerin_coat_fx
tag @s remove nitroglycerin_random
advancement revoke @s only kiwi3:nitroglycerin_hurt_entity