#untwo:proj_sys/collision_check/
#xyzのいずれかが範囲外なら0を返す(当たったら1)
###
execute if block ~ ~ ~ #minecraft:walls[up=true] 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 2500..7500 run return 1
execute if block ~ ~ ~ #minecraft:walls[north=low] if score #&collsion.decimal.x untwo.temp.0 matches 3125..6875 if score #&collsion.decimal.y untwo.temp.0 matches 0..8750 if score #&collsion.decimal.z untwo.temp.0 matches 0..6875 run return 1
execute if block ~ ~ ~ #minecraft:walls[north=tall] if score #&collsion.decimal.x untwo.temp.0 matches 3125..6875 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 0..6875 run return 1
execute if block ~ ~ ~ #minecraft:walls[south=low] if score #&collsion.decimal.x untwo.temp.0 matches 3125..6875 if score #&collsion.decimal.y untwo.temp.0 matches 0..8750 if score #&collsion.decimal.z untwo.temp.0 matches 3125..9999 run return 1
execute if block ~ ~ ~ #minecraft:walls[south=tall] if score #&collsion.decimal.x untwo.temp.0 matches 3125..6875 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 3125..9999 run return 1
execute if block ~ ~ ~ #minecraft:walls[east=low] if score #&collsion.decimal.x untwo.temp.0 matches 3125..9999 if score #&collsion.decimal.y untwo.temp.0 matches 0..8750 if score #&collsion.decimal.z untwo.temp.0 matches 3125..6875 run return 1
execute if block ~ ~ ~ #minecraft:walls[east=tall] if score #&collsion.decimal.x untwo.temp.0 matches 3125..9999 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 3125..6875 run return 1
execute if block ~ ~ ~ #minecraft:walls[west=low] if score #&collsion.decimal.x untwo.temp.0 matches 0..6875 if score #&collsion.decimal.y untwo.temp.0 matches 0..8750 if score #&collsion.decimal.z untwo.temp.0 matches 3125..6875 run return 1
execute if block ~ ~ ~ #minecraft:walls[west=tall] if score #&collsion.decimal.x untwo.temp.0 matches 0..6875 if score #&collsion.decimal.y untwo.temp.0 matches 0..9999 if score #&collsion.decimal.z untwo.temp.0 matches 3125..6875 run return 1
###

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