After coding the Solar System in Minecraft I had the idea of creating the Death Star which would be able to 'fire' at the planets and destroy them. I ended up coding an animation of the Death Star destroying Alderaan right up to Luke flying down the trench and successfully bombing the exhaust port with a block of TNT.
If you want to try it out yourself, all the code in at https://github.com/martinohanlon/minecraft-starwars. To download the code and run it on your raspberry pi, follow these instructions.
Run Minecraft: Pi Edition and open a world.
Open LX Terminal, and run the following commands to download the program and run the program
cd ~ git clone https://github.com/martinohanlon/minecraft-starwars cd minecraft-starwars python minecraft-starwars.py
The code relies heavily on the minecraftstuff module which is included in the mcpi directory of the repository, so if you copy the program anywhere else be sure to copy the mcpi directory too.
This comment has been removed by the author.
ReplyDeleteThe player starts at a position in the on the ground underneath an x wing. Any tips on how to we navigate to where the action is? Thanks!
ReplyDelete