Looping into the third pixel-art dimension
This issue we’ll take our Minecraft pixel art into the third dimension, by building Pyramids with Python loops. We previously built some pixel art in Minecraft with two dimensions, so now we’re going to take a look at building 3D pixel art. Technically, everything in Minecraft is 3D, but our previous pixel art was ‘flat’; this time we’re adding another axis to build upwards/outwards. We’re then going to hack our pixel art into another player’s game.
We’re going to start by building a pyramid using while loops and for loops in Python. The idea is that the loops will save us typing lots of similar lines of code, which will make life easier for us to create our prefabricated designs. Spawning in our coded creations is so much faster than placing each individual block manually in Creative mode.
You’re reading a preview, subscribe to read more.
Start your free 30 days