Some solutions with all values from 0 to 6 for 6X6X6
.......1............1............1............1............0............1
......2.3..........2.3..........3.2..........1.3..........4.0..........2.3
.....0.1.1........0.1.1........1.1.0........0.2.1........0.0.4........0.1.1
....0.5.0.0......0.4.0.0......0.0.5.0......0.5.0.0......0.5.0.0......0.5.0.0
...4.0.0.6.0....0.5.0.6.0....0.6.0.0.4....0.0.0.6.0....1.2.0.6.0....4.0.0.6.0
..0.0.0.0.0.0..0.0.0.0.0.0..0.0.0.0.0.0..0.0.4.0.0.0..1.3.1.0.0.0..0.0.4.0.0.0