scoreboard players set @s distanceBlock 0
tag @s remove blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^1 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 1
execute as @s at @s positioned ~~~ unless block ^^1.5^1 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^2 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 2
execute as @s at @s positioned ~~~ unless block ^^1.5^2 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^3 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 3
execute as @s at @s positioned ~~~ unless block ^^1.5^3 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^4 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 4
execute as @s at @s positioned ~~~ unless block ^^1.5^4 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^5 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 5
execute as @s at @s positioned ~~~ unless block ^^1.5^5 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^6 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 6
execute as @s at @s positioned ~~~ unless block ^^1.5^6 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^7 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 7
execute as @s at @s positioned ~~~ unless block ^^1.5^7 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^8 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 8
execute as @s at @s positioned ~~~ unless block ^^1.5^8 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^9 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 9
execute as @s at @s positioned ~~~ unless block ^^1.5^9 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^10 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 10
execute as @s at @s positioned ~~~ unless block ^^1.5^10 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^11 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 11
execute as @s at @s positioned ~~~ unless block ^^1.5^11 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^12 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 12
execute as @s at @s positioned ~~~ unless block ^^1.5^12 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^13 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 13
execute as @s at @s positioned ~~~ unless block ^^1.5^13 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^14 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 14
execute as @s at @s positioned ~~~ unless block ^^1.5^14 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^15 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 15
execute as @s at @s positioned ~~~ unless block ^^1.5^15 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^16 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 16
execute as @s at @s positioned ~~~ unless block ^^1.5^16 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^17 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 17
execute as @s at @s positioned ~~~ unless block ^^1.5^17 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^18 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 18
execute as @s at @s positioned ~~~ unless block ^^1.5^18 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^19 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 19
execute as @s at @s positioned ~~~ unless block ^^1.5^19 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^20 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 20
execute as @s at @s positioned ~~~ unless block ^^1.5^20 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^21 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 21
execute as @s at @s positioned ~~~ unless block ^^1.5^21 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^22 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 22
execute as @s at @s positioned ~~~ unless block ^^1.5^22 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^23 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 23
execute as @s at @s positioned ~~~ unless block ^^1.5^23 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^24 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 24
execute as @s at @s positioned ~~~ unless block ^^1.5^24 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^25 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 25
execute as @s at @s positioned ~~~ unless block ^^1.5^25 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^26 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 26
execute as @s at @s positioned ~~~ unless block ^^1.5^26 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^27 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 27
execute as @s at @s positioned ~~~ unless block ^^1.5^27 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^28 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 28
execute as @s at @s positioned ~~~ unless block ^^1.5^28 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^29 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 29
execute as @s at @s positioned ~~~ unless block ^^1.5^29 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^30 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 30
execute as @s at @s positioned ~~~ unless block ^^1.5^30 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^31 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 31
execute as @s at @s positioned ~~~ unless block ^^1.5^31 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^32 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 32
execute as @s at @s positioned ~~~ unless block ^^1.5^32 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^33 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 33
execute as @s at @s positioned ~~~ unless block ^^1.5^33 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^34 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 34
execute as @s at @s positioned ~~~ unless block ^^1.5^34 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^35 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 35
execute as @s at @s positioned ~~~ unless block ^^1.5^35 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^36 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 36
execute as @s at @s positioned ~~~ unless block ^^1.5^36 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^37 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 37
execute as @s at @s positioned ~~~ unless block ^^1.5^37 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^38 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 38
execute as @s at @s positioned ~~~ unless block ^^1.5^38 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^39 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 39
execute as @s at @s positioned ~~~ unless block ^^1.5^39 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^40 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 40
execute as @s at @s positioned ~~~ unless block ^^1.5^40 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^41 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 41
execute as @s at @s positioned ~~~ unless block ^^1.5^41 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^42 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 42
execute as @s at @s positioned ~~~ unless block ^^1.5^42 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^43 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 43
execute as @s at @s positioned ~~~ unless block ^^1.5^43 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^44 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 44
execute as @s at @s positioned ~~~ unless block ^^1.5^44 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^45 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 45
execute as @s at @s positioned ~~~ unless block ^^1.5^45 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^46 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 46
execute as @s at @s positioned ~~~ unless block ^^1.5^46 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^47 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 47
execute as @s at @s positioned ~~~ unless block ^^1.5^47 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^48 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 48
execute as @s at @s positioned ~~~ unless block ^^1.5^48 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^49 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 49
execute as @s at @s positioned ~~~ unless block ^^1.5^49 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^50 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 50
execute as @s at @s positioned ~~~ unless block ^^1.5^50 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^51 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 51
execute as @s at @s positioned ~~~ unless block ^^1.5^51 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^52 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 52
execute as @s at @s positioned ~~~ unless block ^^1.5^52 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^53 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 53
execute as @s at @s positioned ~~~ unless block ^^1.5^53 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^54 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 54
execute as @s at @s positioned ~~~ unless block ^^1.5^54 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^55 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 55
execute as @s at @s positioned ~~~ unless block ^^1.5^55 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^56 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 56
execute as @s at @s positioned ~~~ unless block ^^1.5^56 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^57 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 57
execute as @s at @s positioned ~~~ unless block ^^1.5^57 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^58 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 58
execute as @s at @s positioned ~~~ unless block ^^1.5^58 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^59 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 59
execute as @s at @s positioned ~~~ unless block ^^1.5^59 air run tag @s add blockFilter
execute as @s at @s positioned ~~~ if block ^^1.5^60 air run scoreboard players set @s[tag=!blockFilter] distanceBlock 60
execute as @s at @s positioned ~~~ unless block ^^1.5^60 air run tag @s add blockFilter
scriptevent convert:block_distance