Minecraft Hit Block
This week we ran s small python program in Minecraft Pi Edition to change the block under our feet to ice
We start off by importing the libraries we need, in this case its the MCPI library built for our version of minecraft
We then create a connection to the game and get our position
We then get the computer to work out the block beneath our feet and change it to ice
We also set up a for loop so when we hit any other block with our sword, it cages to ice
Have a look at the full code below