#untwo:proj_sys/collision_check/
#xyzのいずれかが範囲外なら0を返す(当たったら1)
execute if block ~ ~ ~ #minecraft:fence_gates[open=true] run return fail

execute if block ~ ~ ~ #minecraft:fence_gates[facing=north] if score #&collsion.decimal.x untwo.temp.0 matches 0..9999 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 2500..7500 run return 1
execute if block ~ ~ ~ #minecraft:fence_gates[facing=south] if score #&collsion.decimal.x untwo.temp.0 matches 0..9999 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 2500..7500 run return 1
execute if block ~ ~ ~ #minecraft:fence_gates[facing=east] if score #&collsion.decimal.x untwo.temp.0 matches 2500..7500 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 0..9999 run return 1
execute if block ~ ~ ~ #minecraft:fence_gates[facing=west] if score #&collsion.decimal.x untwo.temp.0 matches 2500..7500 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 0..9999 run return 1
###

#何にもあたらなかったら0を返す

