Skip to content

grhw/python-image-to-minecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image >> Minecaft Schematic Coming SOON! (Probably)

Python Image >> Minecraft

Image to Minecraft generator, IN PYTHON!

files python files last commit

ran on pythons: console made with: tears, and pain really: buggy kind of: confusing a little: unoptimized

How to use

Setup

Getting the version

  1. Find a version in your .minecraft/versions folder. By default:

1.19.2 folder in versions folder

%appdata%/Roaming/.minecraft/versions

versions folder

  1. Find the .jar file in that folder.

1.19.2.jar

  1. If that doesn't exist, you might be picking a snapshot, try using a version like 1.19.2 instead of 1.19.2-pre
  2. Copy and Paste that file to the folder this script is in.
  3. Rename this JAR file to version.zip

Running the Script

  1. Make sure you have the modules already installed. pip install pillow pathlib are the only two you need.
  2. Create new folders: blocks/final/, and blocks/s/

blocks/final and blocks/s

  1. Run init.py and wait for it to finish. You should see the folder /final and /s in ./blocks

blocks/final and blocks/s

Don't forget to remove everything in blocks/final, blocks/s and ./__pycache__ when picking a new version.

pycache

  1. Now you can run main.py. The first prompt should ask you what the file name of your PNG/Image file is. Don't forget to include the file extension: like testimage.png

testimage.png

There's also an option that asks how many blocks to skip, For this one, it just skips x amount of pixels to reduce difficulty to build and file size. If you want full resolution (1 block for 1 pixel), you would enter 1, but if you wanted to reduce the file size in half (1 block for 2 pixels), that would be 2 After waiting for that script to finish, you should now see final.png in the folder.

This image is with 10 skipped blocks

final.png

About

Image to Minecraft generator, IN PYTHON!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages