execute if block ~ ~ ~ minecraft:purpur_block align xyz positioned ~ ~-100 ~ unless entity @e[tag=floater,distance=..0.5] run function q:floatcubestart
execute if score @s float_create matches 1.. if entity @a[distance=..12] positioned ^ ^ ^0.5 run function q:floatcubeloop