## Particles
particle minecraft:enchant ~ ~ ~ 0 0 0 1 2
$particle minecraft:end_rod ~ ~ ~ $(p_dist) $(p_dist) $(p_dist) 0.01 $(p_count)

## Flying
# Crouch
$effect give @a[distance=..$(range),scores={vb.tick_data.sneak=1..}] minecraft:levitation 1 $(power)
$execute at @a[distance=..$(range),scores={vb.tick_data.sneak=1..}] run particle minecraft:end_rod ~ ~ ~ 0.3 0 0.3 0 1
# Uncrouch
$execute as @a[distance=..$(range),scores={vb.tick_data.sneak=0}] if predicate {condition:"minecraft:entity_properties",entity:"this",predicate:{effects:{"minecraft:levitation":{duration:{max:20}}}}} run effect clear @s minecraft:levitation