#untwo:proj_sys/collision_check/
#xyzのいずれかが範囲外なら0を返す(当たったら1)
###
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=0, facing=north] if score #&collsion.decimal.x untwo.temp.0 matches 3750..6250 if score #&collsion.decimal.y untwo.temp.0 matches 4375..7500 if score #&collsion.decimal.z untwo.temp.0 matches 625..3125 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=0, facing=south] if score #&collsion.decimal.x untwo.temp.0 matches 3750..6250 if score #&collsion.decimal.y untwo.temp.0 matches 4375..7500 if score #&collsion.decimal.z untwo.temp.0 matches 6875..9375 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=0, facing=east] if score #&collsion.decimal.x untwo.temp.0 matches 3125..6875 if score #&collsion.decimal.y untwo.temp.0 matches 3125..7500 if score #&collsion.decimal.z untwo.temp.0 matches 5625..9375 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=0, facing=west] if score #&collsion.decimal.x untwo.temp.0 matches 2500..7500 if score #&collsion.decimal.y untwo.temp.0 matches 1875..7500 if score #&collsion.decimal.z untwo.temp.0 matches 4375..9375 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=1, facing=north] if score #&collsion.decimal.x untwo.temp.0 matches 3125..6875 if score #&collsion.decimal.y untwo.temp.0 matches 3125..7500 if score #&collsion.decimal.z untwo.temp.0 matches 625..4375 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=1, facing=south] if score #&collsion.decimal.x untwo.temp.0 matches 3750..6250 if score #&collsion.decimal.y untwo.temp.0 matches 4375..7500 if score #&collsion.decimal.z untwo.temp.0 matches 625..3125 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=1, facing=east] if score #&collsion.decimal.x untwo.temp.0 matches 3125..6875 if score #&collsion.decimal.y untwo.temp.0 matches 3125..7500 if score #&collsion.decimal.z untwo.temp.0 matches 625..4375 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=1, facing=west] if score #&collsion.decimal.x untwo.temp.0 matches 2500..7500 if score #&collsion.decimal.y untwo.temp.0 matches 1875..7500 if score #&collsion.decimal.z untwo.temp.0 matches 625..5625 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=2, facing=north] if score #&collsion.decimal.x untwo.temp.0 matches 2500..7500 if score #&collsion.decimal.y untwo.temp.0 matches 1875..7500 if score #&collsion.decimal.z untwo.temp.0 matches 625..5625 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=2, facing=south] if score #&collsion.decimal.x untwo.temp.0 matches 625..3125 if score #&collsion.decimal.y untwo.temp.0 matches 4375..7500 if score #&collsion.decimal.z untwo.temp.0 matches 3750..6250 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=2, facing=east] if score #&collsion.decimal.x untwo.temp.0 matches 625..4375 if score #&collsion.decimal.y untwo.temp.0 matches 3125..7500 if score #&collsion.decimal.z untwo.temp.0 matches 3125..6875 run return 1
execute if block ~ ~ ~ #untwo:collision/pass_through/natural/cocoa[age=2, facing=west] if score #&collsion.decimal.x untwo.temp.0 matches 625..5625 if score #&collsion.decimal.y untwo.temp.0 matches 1875..7500 if score #&collsion.decimal.z untwo.temp.0 matches 2500..7500 run return 1

###

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