#untwo:proj_sys/collision_check/
#xyzのいずれかが範囲外なら0を返す(当たったら1)
execute if score #&collsion.decimal.x untwo.temp.0 matches 3750..6250 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 3750..6250 run return 1
execute if block ~ ~ ~ #minecraft:fences[north=true] if score #&collsion.decimal.x untwo.temp.0 matches 3750..6250 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 0..3750 run return 1
execute if block ~ ~ ~ #minecraft:fences[south=true] if score #&collsion.decimal.x untwo.temp.0 matches 3750..6250 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 6250..9999 run return 1
execute if block ~ ~ ~ #minecraft:fences[east=true] if score #&collsion.decimal.x untwo.temp.0 matches 6250..9999 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 3750..6250 run return 1
execute if block ~ ~ ~ #minecraft:fences[west=true] if score #&collsion.decimal.x untwo.temp.0 matches 0..3750 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 3750..6250 run return 1
###

###

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

