A fun little project to generate Minecraft pixel art animations using the new block "chiseled bookshelf" and data packs. Check out the demo here.
pip install ffmpeg-python
pip install opencv-python
pip install numpy
- Make sure you have the latest version of python installed.
- Open a command Window by pressing ⊞ Win + r and then enter "cmd" and hit Enter. Install all of the required python packages by pasting each of the commands from above.
- Download the code and extract the files into a folder. Add the video you want to convert to that same folder.
- Open the "main.py" file and a window should pop up. Follow the instructions on screen and then wait until the program has finished. There should now be a new folder called "output".
- Copy the files from the output folder into your data packs "functions" folder. If you don't already have a data pack you can use the data pack template available with the download. If you do simply paste the files into "data/cb/functions".
- Create a Minecraft world with the "update_1_20" data pack enabled. (You need to do this before generating the world, it can't be done after)
- Add the generated data pack to your world and it should appear at the cords you specified.
To restart the animation you can run the command "/scoreboard player set .current frame 0"
The data packs generated currently only works on snapshot 22w46a or later with the "update_1_20" data pack enabled.