# GPT-powered Minecraft Building ## What's that? Tell the _BlockCraft GPT_ to sketch something and if you are happy with it, it will convert the image to a 24x24 Python array, which you can paste into the Python script below to have the image built with blocks in Minecraft. ## Steps * Follow https://jeremypedersen.com/posts/2022-03-28-mcpi-macos/ to setup Minecraft (works with MacOS and Windows) * Activate gamemode "creative" ## Use BlockCraft to create Python array * Explore GPTs: **BlockCraft** (https://chat.openai.com/g/g-9CCngYDbo-blockcraft) * Suggest something to build in Minecraft as a 2-dimensional structure. * If you are happy with what was suggested by the GPT, it will provide you with an array of number which you can paste into the script below and have the image built with blocks in Minecraft. ## Use Python script to build icon in Minecraft Use this Python script to build what is shown in the image in Minecraft: https://gist.github.com/ice09/026b74da4973d05d3cb08431c929f8d9 ## Example: Sketch a house <img width=320 src="https://hackmd.io/_uploads/ry7rfUC9T.png"/> <br/> <br/> <img width=320 src="https://hackmd.io/_uploads/rkh7mURq6.png"/> <br/> <br/> <img width=320 src="https://hackmd.io/_uploads/ByBQz8RqT.png"/>