Some solutions with all values from 0 to 6 for 7X7X7
........0..............0..............1..............0..............0
.......3.0............1.1............0.1............0.3............0.0
......0.3.0..........1.6.1..........2.4.1..........2.2.0..........2.3.0
.....1.1.2.0........0.1.1.0........0.1.1.0........0.1.1.1........0.1.1.1
....1.5.4.1.1......1.1.5.1.2......0.2.5.1.1......1.1.5.4.1......1.1.5.4.1
...0.1.1.1.6.1....1.4.4.1.2.0....0.3.1.1.6.1....1.6.1.1.4.0....1.6.1.1.2.0
..0.2.1.0.1.1.0..1.0.1.1.0.3.0..0.0.2.0.1.1.0..0.1.1.0.1.1.1..0.1.1.0.2.0.0