Skip to content

Resource Packs

BenCheung0422 edited this page Oct 23, 2024 · 2 revisions

Warning

This page is being migrated to the Minicraft Wiki on wiki.gg, so no further updates to the information are made here. If the migration is completed, this page will be deleted.

Overview

This is a tutorial on how to create resource packs.

Resource packs can contain three folders. These are: localization, textures, and sound. Sound is currently not supported.

Simply put files into these folders with the same names as the original to overwrite them.

To create a resource pack, you need to create a zip file with the files you want to add, and put it in the following folder playminicraft/mods/Minicraft_Plus/resourcepacks/. Once you have put the zip file in the folder, the pack should appear in the resource packs menu located in the options menu.

Adding sprite sheets

The sprites are divided into four files, items.png, tiles.png, entities.png, and gui.png. items.png stores the item sprites, tiles.png the tile sprites , entities.png the entity sprites, and gui.png stores the font, the Minicraft+ logo, the HUD (hearts, arrow counter), and a few other miscellaneous sprites (e.g. the slash in front of the player).

The default sprite sheets of the game can be found inside the jar file, in resources/textures. To get the files you need to open the jar file in an archiving tool, like 7-Zip. You can also navigate to /src/main/resources/resources/textures to download the latest sprite sheets.

Important Quirks

It is necessary to know this when editing textures, so that you prevent creating unforseen problems.

White

White pixels have the ability to be replaced with any color in the code. This is done with:

  • Potions
  • Grass and sand tiles
  • Water and lava tiles
  • Rock, hard rock and hole tiles
  • Stair tiles
  • Ore tiles
  • The player sprite
  • The font

Image sizes

All sprite-sheets must be 256x256px, and anything other than this will not be accepted.

Sprite sizes

In items.png, they will always be 8x8. In entities.png, they will always be 16x16 and always (except for slime sprites, creepers, or furniture), as they have 4 animation frames.