#untwo:proj_sys/collision_check/
#xyzのいずれかが範囲外なら0を返す(当たったら1)

###
execute if score #&collsion.decimal.x untwo.temp.0 matches 2500..7500 if score #&collsion.decimal.y untwo.temp.0 matches 2500..6250 if score #&collsion.decimal.z untwo.temp.0 matches 2500..7500 run return 1
execute if score #&collsion.decimal.x untwo.temp.0 matches 0..9999 if score #&collsion.decimal.y untwo.temp.0 matches 6250..9999 if score #&collsion.decimal.z untwo.temp.0 matches 0..3000 run return 1
execute if score #&collsion.decimal.x untwo.temp.0 matches 0..9999 if score #&collsion.decimal.y untwo.temp.0 matches 6250..9999 if score #&collsion.decimal.z untwo.temp.0 matches 7001..10000 run return 1
execute if score #&collsion.decimal.x untwo.temp.0 matches 0..3000 if score #&collsion.decimal.y untwo.temp.0 matches 6250..9999 if score #&collsion.decimal.z untwo.temp.0 matches 0..9999 run return 1
execute if score #&collsion.decimal.x untwo.temp.0 matches 7001..10000 if score #&collsion.decimal.y untwo.temp.0 matches 6250..9999 if score #&collsion.decimal.z untwo.temp.0 matches 0..9999 run return 1
execute if score #&collsion.decimal.x untwo.temp.0 matches 0..9999 if score #&collsion.decimal.y untwo.temp.0 matches 5063..8062 if score #&collsion.decimal.z untwo.temp.0 matches 0..9999 run return 1

execute if block ~ ~ ~ #untwo:collision/pass_through/redstone/hopper[facing=down] if score #&collsion.decimal.x untwo.temp.0 matches 3500..6500 if score #&collsion.decimal.y untwo.temp.0 matches 0..3000 if score #&collsion.decimal.z untwo.temp.0 matches 3500..6500 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/redstone/hopper[facing=north] if score #&collsion.decimal.x untwo.temp.0 matches 3500..6500 if score #&collsion.decimal.y untwo.temp.0 matches 2250..5250 if score #&collsion.decimal.z untwo.temp.0 matches 0..3000 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/redstone/hopper[facing=south] if score #&collsion.decimal.x untwo.temp.0 matches 3500..6500 if score #&collsion.decimal.y untwo.temp.0 matches 2250..5250 if score #&collsion.decimal.z untwo.temp.0 matches 7001..10000 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/redstone/hopper[facing=east] if score #&collsion.decimal.x untwo.temp.0 matches 7001..10000 if score #&collsion.decimal.y untwo.temp.0 matches 2250..5250 if score #&collsion.decimal.z untwo.temp.0 matches 3500..6500 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/redstone/hopper[facing=west] if score #&collsion.decimal.x untwo.temp.0 matches 0..3000 if score #&collsion.decimal.y untwo.temp.0 matches 2250..5250 if score #&collsion.decimal.z untwo.temp.0 matches 3500..6500 run return 1



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

