# 中间大石头
scoreboard players set #box_x0 mrcd_system 250
scoreboard players set #box_x1 mrcd_system 750
scoreboard players set #box_y0 mrcd_system 250
scoreboard players set #box_y1 mrcd_system 1000
scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 875
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_z0 mrcd_system 250
scoreboard players set #box_z1 mrcd_system 750
scoreboard players set #box_y0 mrcd_system 250
scoreboard players set #box_y1 mrcd_system 1000
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 250
scoreboard players set #box_x1 mrcd_system 750
scoreboard players set #box_y0 mrcd_system 0
scoreboard players set #box_y1 mrcd_system 750
scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 875
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_z0 mrcd_system 250
scoreboard players set #box_z1 mrcd_system 750
scoreboard players set #box_y0 mrcd_system 0
scoreboard players set #box_y1 mrcd_system 750
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function mrcd:private/complex_cube/main

# 两侧爪爪
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 438
scoreboard players set #box_y1 mrcd_system 813
scoreboard players set #box_z0 mrcd_system 313
scoreboard players set #box_z1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 438
scoreboard players set #box_y1 mrcd_system 813
scoreboard players set #box_z0 mrcd_system 313
scoreboard players set #box_z1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 0
scoreboard players set #box_y1 mrcd_system 438
scoreboard players set #box_z0 mrcd_system 375
scoreboard players set #box_z1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 0
scoreboard players set #box_y1 mrcd_system 438
scoreboard players set #box_z0 mrcd_system 375
scoreboard players set #box_z1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=north] run function mrcd:private/complex_cube/main

scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 438
scoreboard players set #box_y1 mrcd_system 813
scoreboard players set #box_x0 mrcd_system 313
scoreboard players set #box_x1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 438
scoreboard players set #box_y1 mrcd_system 813
scoreboard players set #box_x0 mrcd_system 313
scoreboard players set #box_x1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 0
scoreboard players set #box_y1 mrcd_system 438
scoreboard players set #box_x0 mrcd_system 375
scoreboard players set #box_x1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 0
scoreboard players set #box_y1 mrcd_system 438
scoreboard players set #box_x0 mrcd_system 375
scoreboard players set #box_x1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=floor,facing=west] run function mrcd:private/complex_cube/main


scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 188
scoreboard players set #box_y1 mrcd_system 563
scoreboard players set #box_z0 mrcd_system 313
scoreboard players set #box_z1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 188
scoreboard players set #box_y1 mrcd_system 563
scoreboard players set #box_z0 mrcd_system 313
scoreboard players set #box_z1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 563
scoreboard players set #box_y1 mrcd_system 1000
scoreboard players set #box_z0 mrcd_system 375
scoreboard players set #box_z1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 563
scoreboard players set #box_y1 mrcd_system 1000
scoreboard players set #box_z0 mrcd_system 375
scoreboard players set #box_z1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=south] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=north] run function mrcd:private/complex_cube/main

scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 188
scoreboard players set #box_y1 mrcd_system 563
scoreboard players set #box_x0 mrcd_system 313
scoreboard players set #box_x1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 188
scoreboard players set #box_y1 mrcd_system 563
scoreboard players set #box_x0 mrcd_system 313
scoreboard players set #box_x1 mrcd_system 688
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 563
scoreboard players set #box_y1 mrcd_system 1000
scoreboard players set #box_x0 mrcd_system 375
scoreboard players set #box_x1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 563
scoreboard players set #box_y1 mrcd_system 1000
scoreboard players set #box_x0 mrcd_system 375
scoreboard players set #box_x1 mrcd_system 625
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=east] run function mrcd:private/complex_cube/main
execute if block ~ ~ ~ minecraft:grindstone[face=ceiling,facing=west] run function mrcd:private/complex_cube/main



# 粘墙上的
## 大块石头
scoreboard players set #box_x0 mrcd_system 250
scoreboard players set #box_x1 mrcd_system 750
scoreboard players set #box_y0 mrcd_system 125
scoreboard players set #box_y1 mrcd_system 875
scoreboard players set #box_z0 mrcd_system 0
scoreboard players set #box_z1 mrcd_system 750
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 250
scoreboard players set #box_x1 mrcd_system 750
scoreboard players set #box_y0 mrcd_system 125
scoreboard players set #box_y1 mrcd_system 875
scoreboard players set #box_z0 mrcd_system 250
scoreboard players set #box_z1 mrcd_system 1000
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 0
scoreboard players set #box_x1 mrcd_system 750
scoreboard players set #box_y0 mrcd_system 125
scoreboard players set #box_y1 mrcd_system 875
scoreboard players set #box_z0 mrcd_system 250
scoreboard players set #box_z1 mrcd_system 750
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 250
scoreboard players set #box_x1 mrcd_system 1000
scoreboard players set #box_y0 mrcd_system 125
scoreboard players set #box_y1 mrcd_system 875
scoreboard players set #box_z0 mrcd_system 250
scoreboard players set #box_z1 mrcd_system 750
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function mrcd:private/complex_cube/main
## 两侧爪爪
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_z0 mrcd_system 188
scoreboard players set #box_z1 mrcd_system 563
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_z0 mrcd_system 563
scoreboard players set #box_z1 mrcd_system 1000
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_z0 mrcd_system 188
scoreboard players set #box_z1 mrcd_system 563
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_z0 mrcd_system 563
scoreboard players set #box_z1 mrcd_system 1000
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=north] run function mrcd:private/complex_cube/main

scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_z0 mrcd_system 438
scoreboard players set #box_z1 mrcd_system 813
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 125
scoreboard players set #box_x1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_z0 mrcd_system 0
scoreboard players set #box_z1 mrcd_system 438
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_z0 mrcd_system 438
scoreboard players set #box_z1 mrcd_system 813
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function mrcd:private/complex_cube/main
scoreboard players set #box_x0 mrcd_system 750
scoreboard players set #box_x1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_z0 mrcd_system 0
scoreboard players set #box_z1 mrcd_system 438
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=south] run function mrcd:private/complex_cube/main

scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_x0 mrcd_system 438
scoreboard players set #box_x1 mrcd_system 813
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_x0 mrcd_system 0
scoreboard players set #box_x1 mrcd_system 438
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_x0 mrcd_system 438
scoreboard players set #box_x1 mrcd_system 813
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_x0 mrcd_system 0
scoreboard players set #box_x1 mrcd_system 438
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=east] run function mrcd:private/complex_cube/main

scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_x0 mrcd_system 188
scoreboard players set #box_x1 mrcd_system 563
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 125
scoreboard players set #box_z1 mrcd_system 250
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_x0 mrcd_system 563
scoreboard players set #box_x1 mrcd_system 1000
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 313
scoreboard players set #box_y1 mrcd_system 688
scoreboard players set #box_x0 mrcd_system 188
scoreboard players set #box_x1 mrcd_system 563
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function mrcd:private/complex_cube/main
scoreboard players set #box_z0 mrcd_system 750
scoreboard players set #box_z1 mrcd_system 875
scoreboard players set #box_y0 mrcd_system 375
scoreboard players set #box_y1 mrcd_system 625
scoreboard players set #box_x0 mrcd_system 563
scoreboard players set #box_x1 mrcd_system 1000
execute if block ~ ~ ~ minecraft:grindstone[face=wall,facing=west] run function mrcd:private/complex_cube/main

execute if entity @e[tag=mrcd_touch_mark] run tag @s add mrcd_touch_edge
execute if entity @e[tag=mrcd_touch_mark] run tag @s add mrcd_touch_edge_complex
tag @s add mrcd_detected