Skip to content
Zentheon edited this page Dec 9, 2023 · 2 revisions

Welcome!

This wiki serves as the contribution guide to this resourcepack. (Work in progress)

If you're interested in improving the pack in some way then first of all thanks for getting this far! Second, there is some setup to do before actually getting to the interesting part...

Set Up a Dev Environment

-Which sounds fancy, but really all this entails is getting the sources set up in a way that allows for easy testing within the game.

Copy sources

First, navigate to your desired host folder (eg. ~/Documents/Projects)

Manual download First, get a copy of the sources using the Download Zip button. Next, unzip it inside your chosen host directory. The result will be a new folder named minecraft-[branch]. You can name this whatever you like.

Git

Simply open a terminal or shell prompt and run:

 git clone https://github.com/dracula/minecraft/ -b [branch] "dracula-mc"

Make sure to set [branch] with the branch you want to clone, as well as (optionally) the directory name at the end.

Note: This directory will be referred to as the "sourcedir" for the rest of the wiki.

Configure active resources

This part outlines creating a copy of the sources in the resourcepacks folder of your Minecraft instance to do the actual development in. first, navigate into your previously cloned sourcedir and copy the src directory. Next, open up Minecraft and go to options->resourcepacks->open resource pack folder. Paste the src directory in the newly opened tab and name it whatever you like.

This newly created folder will be referred to as the "packdir" from here on.

To allow Minecraft to actually see the resourcepack, go into your packdir and open pack.mcmeta in a text editor. You should see this:

{
"pack": {
  "pack_format": FORMAT,
  "description": "A clean, dark UI overhaul for Minecraft.§d For GUI Scale SCALE"
  }
}

Change the FORMAT string to the format code corresponding to your Minecraft version The line should look something like this:

"pack_format": 22,

(Matching the format code isn't required, just skip the warning screen if it isn't)

Generate

First of all, Inkscape is required from this point forward for the purposes of this guide. You can use another program for actually editing images, but all commands involving vector manipulation will use Inkscape, and for formatting reasons it's recommended to use it.

Once you've got Inkscape installed, open a terminal in your packdir and run one of the following:

Bash (linux):

shopt -s globstar
**/*.svg -d 96 --export-type=png

PowerShell (windows):

Get-ChildItem "./" -recurse | Where-Object {$_.name -match ".svg"} | ForEach-Object { inkscape "$_" -d 96 --export-type=png }

Both above options will generate images with a dpi of 96, or in other words, 1:1 with scale 4. If you want to use a different scale, make sure to edit the -d 96 switch with a different dpi listed below. Keep in mind: it's best to work with the highest scale available to your screen resolution, and switch to lower ones for testing if needed.

DPI Range:

  1. 48
  2. 72
  3. 96
  4. 120
  5. 144
  6. 168
  7. 192

Setup complete!

If you've followed the steps without issue up until now, then congrats, you're good to go! Check out the different wiki pages to see other tutorials and style guidelines (wip). Also, you can always re-run the commands from the previous step to regenerate images within the packdir as you work. They're location-independent, so you can entirely ignore Inkscape's (or any other editor's) export gui if you wanted to. Have fun!

Clone this wiki locally