execute if block ~ ~ ~ #mrcd:rod_like[facing=up] run function mrcd:private/types/rod/up_down
execute if block ~ ~ ~ #mrcd:rod_like[facing=down] run function mrcd:private/types/rod/up_down

execute if block ~ ~ ~ #mrcd:rod_like[facing=east] run function mrcd:private/types/rod/east_west
execute if block ~ ~ ~ #mrcd:rod_like[facing=west] run function mrcd:private/types/rod/east_west

execute if block ~ ~ ~ #mrcd:rod_like[facing=north] run function mrcd:private/types/rod/north_south
execute if block ~ ~ ~ #mrcd:rod_like[facing=south] run function mrcd:private/types/rod/north_south

function mrcd:private/cube/main
tag @s add mrcd_detected
