Hardware Reference
In-Depth Information
You can download the complete code for the wooden horse from the Adventures in
Minecraft companion website at www.wiley.com/go/adventuresinminecraft.
You'll find shapes useful now, because you're going to create an alien spaceship! Later,
you'll be using them again to create obstacles.
Alien Invasion
Aliens are about to invade Minecraft. A spaceship will come down from the sky directly
above your player, who is in mortal danger—these aliens are not friendly and they
won't give up until they have completed their mission.
In the next program, you will use MinecraftShape and the programming techniques
you used in the block friend program to create an alien spaceship (see Figure  8-5)
which will hover above the surface of the world, chasing your player, trying to get
above him. And when it succeeds, it is going to beam him onboard.
FIGURE.8-5 Create an alien spaceship to spice up your Minecraft game!
You create the alien spaceship using MinecraftShape , just like in the wooden horse
program with each block in the shape having its own relative position and block type.
Figure 8-6 shows the positions of the shape's blocks from the side and from above.
 
Search WWH ::




Custom Search