Hardware Reference
In-Depth Information
Figure 7-2:
he starter grid.
he maze occupies a ground space measured in blocks from MAZE_X to MAZE_X+(SIZE*2) ,
and from MAZE_Z to MAZE_Z+(SIZE*2) . he number of blocks is twice the number of cells
( SIZE ) because each cell has a wall on its right and below it. he middle of the maze in the
Minecraft world is MAZE_X+SIZE , MAZE_Z+SIZE .
You need to clear 10 blocks further in each direction. he following code clears everything as
high as 150 above the ground level of the maze to stop the risk of any remaining mountain
blocks falling from the sky into the maze and lays the loor:
mc.setBlocks(MAZE_X-10, GROUND, MAZE_Z-10, ;
MAZE_X+(SIZE*2)+10, GROUND+150, MAZE_Z+(SIZE*2)+10, 0)
 
Search WWH ::




Custom Search