execute as @e[tag=floater] at @s if block ~ ~100 ~ minecraft:air run playsound minecraft:block.beacon.deactivate block @p ~ ~100 ~ 20
execute as @e[tag=floater] at @s if block ~ ~100 ~ minecraft:air run kill @s


execute as @e[tag=floater] at @s align xyz positioned ~-2.95 ~96 ~-2.95 run effect give @a[dx=5.9,dy=7,dz=5.9] minecraft:jump_boost 2 1 false
execute as @e[tag=floater] at @s align xyz positioned ~-2.95 ~96 ~-2.95 run effect give @a[dx=5.9,dy=7,dz=5.9] minecraft:slow_falling 2 2 false

execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~-3.5 ~ ~-3.5 0 1.2 0 0 5 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~3.5 ~ ~-3.5 0 1.2 0 0 5 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~-3.5 ~ ~3.5 0 1.2 0 0 5 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~3.5 ~ ~3.5 0 1.2 0 0 5 force

execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~ ~ ~3.5 1.2 1.2 0 0 15 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~ ~ ~-3.5 1.2 1.2 0 0 15 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~3.5 ~ ~ 0 1.2 1.2 0 15 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~-3.5 ~ ~ 0 1.2 1.2 0 15 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~ ~3.5 ~ 1.2 0 1.2 0 15 force
execute as @e[tag=floater] at @s align xyz positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~ ~-3.5 ~ 1.2 0 1.2 0 15 force

#execute as @e[tag=floater] at @s positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~-3.5 ~-3.5 ~ 0 0 1.2 0 10 force
#execute as @e[tag=floater] at @s positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~3.5 ~-3.5 ~ 0 0 1.2 0 10 force
#execute as @e[tag=floater] at @s positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~-3.5 ~3.5 ~ 0 0 1.2 0 10 force
#execute as @e[tag=floater] at @s positioned ~0.5 ~100 ~0.5 run particle minecraft:portal ~3.5 ~3.5 ~ 0 0 1.2 0 10 force

execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^ ^ ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^-0.5 ^ ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^0.5 ^ ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^ ^-0.5 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^ ^0.5 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^-0.5 ^-0.5 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^-0.5 ^0.5 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^0.5 ^-0.5 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^0.5 ^0.5 ^0.5 run function q:floatcubeloop

execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^-1 ^ ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^1 ^ ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^ ^-1 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^ ^1 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^-1 ^-1 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^-1 ^1 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^1 ^-1 ^0.5 run function q:floatcubeloop
execute as @a if score @s float_create matches 1.. at @s positioned ~ ~1.6 ~ positioned ^1 ^1 ^0.5 run function q:floatcubeloop


