Skip to content

Template Setup

Zentheon edited this page Dec 9, 2023 · 1 revision

About

This page is split in two sections after the setup: Manual and scripted (linux only) template generation. If you're only intending to create a few textures, the manual method will work fine, so skip the first method if you want to do that. However, it's much more convenient to use the script!

Initial setup

Whether you want to create textures for vanilla or a mod, you'll need the base assets. Both are located in their .jar files, so you'll need a program that can open them for starters. 7z works on Windows, and most linux distros can open them by default.

If you're unsure where to access your vanilla Minecraft assets, an easy alternative is to use this site instead. Note that the entire asset index is included with it, which can be fairly large.

Extract the assets you want to work with into ./dev/templatizer/input within your sourcedir.

Scripted Method (Recommended)

With your reference images in the input folder, you can now run templatizer.sh inside of ./dev. This will go through all images present and create a copy in output with all images replaced with ready-to-use templates. Move these files to the proper location within your packdir and you're all set!

Note: Files generated this way will only fully load in inkscape. You'll need to add grids and other formatting in other programs yourself.

Manual Method (Unrecommended)

Inkscape:

Inside your sourcedir there will be a file labeled base.svg within ./dev. This file contains the very basic formatting used for the pack's vectors, and will only load properly in Inkscape. In your packdir, create the directory structure needed (if any) for the files you want to add, then copy base.svg to the corresponding filepaths, except as an .svg instead of .png.

Next, open each of the copied files in Inkscape and import the corresponding .png. Make sure to get the base resolution of the .png, multiply it by four and set at as the document size in Inkscape, and from there align the imported reference image with a corner and expand it to fill the document. You should end up with a pixel-aligned reference image!

Other programs:

It's recommended to start off by making a basic blank project file to copy from. The most important thing to add to this is a 1x1 pixel grid with secondary lines in a 4x4 grid.

Clone this wiki locally