execute store result entity @s[tag=spin] Rotation[0] float 1 run random value -180..180
tag @s remove spin

execute if block ^ ^ ^.5 #survivalplus:nobounce as @s at @s run tp @s ^ ^ ^.5 ~ ~4
particle minecraft:dragon_breath ~ ~ ~ .1 .1 .1 .02 3 force

execute unless block ^ ^ ^.5 #survivalplus:nobounce run summon minecraft:area_effect_cloud ~ ~ ~ {Radius:5,Duration:200,Particle:{type:"minecraft:dragon_breath"},potion_contents:{custom_effects:[{show_icon:1b,id:"minecraft:instant_damage"}]},ReapplicationDelay:20,WaitTime:20s}
execute unless block ^ ^ ^.5 #survivalplus:nobounce as @n[type=minecraft:area_effect_cloud] run data modify entity @s Owner set from entity @n[type=minecraft:ender_dragon] UUID
execute unless block ^ ^ ^.5 #survivalplus:nobounce run kill @s