execute as @e run data modify entity @s FallDistance set value 0.0f
effect clear @a[tag=!keepeffect]
execute as @a unless entity @s[nbt={SelectedItem:{id:"minecraft:filled_map"}}] run effect give @s minecraft:mining_fatigue 30 127 true
function q:lastblockcast
effect give @a minecraft:saturation 30 127 true
effect give @a minecraft:instant_health 1 127 true
effect give @a minecraft:resistance 30 127 true
function q:sliders
function q:userblocks
function q:floatcube
execute as @a[tag=!ridingup] at @s if block ~ ~-1 ~ minecraft:air if block ~1 ~-1 ~ minecraft:air if block ~-1 ~-1 ~ minecraft:air if block ~ ~-1 ~1 minecraft:air if block ~ ~-1 ~-1 minecraft:air if block ~1 ~-1 ~1 minecraft:air if block ~-1 ~-1 ~1 minecraft:air if block ~1 ~-1 ~-1 minecraft:air if block ~-1 ~-1 ~-1 minecraft:air run effect give @s minecraft:jump_boost 1 255 true

execute if entity @a[x=1000,y=100,z=-1000,distance=..300] run function q:bonus_1_loop

#keep on while testing just to make sure you get em all
execute as @e[type=minecraft:item_frame] run data merge entity @s {Invulnerable:1b}

execute positioned 0 100 0 as @a[distance=..300] at @s as @e[type=minecraft:item_frame,distance=..6,limit=1,sort=nearest] at @s run playsound minecraft:block.beacon.ambient neutral @p ~ ~ ~
execute positioned 0 100 0 as @a[distance=300..] at @s as @e[type=minecraft:item_frame,distance=..8,limit=1,sort=nearest] at @s run playsound minecraft:block.beacon.ambient neutral @p ~ ~ ~
#execute as @a at @s unless entity @e[type=minecraft:item_frame,distance=..4] run stopsound @s neutral