Skip to content

Create A painting pack

Subaraki edited this page Jan 15, 2022 · 9 revisions

PNG Image Files

Make a ResourcePack with the following file structure :

  • assets/paintings/textures/painting

All of your painting images go into the painting folder !
(note that there's two painting folder : one with and one without s. its very important !)

One image is One Painting. keep the image dimensions in multiples of 16 ! (16 pixels = one block)

the JSON file to register your paintings

make a json file with the following structure:

{
	"paintings" : [{
			"name" : "lagune", 
			"x" : 16, 
			"y" : 32
		}, {
			"name" : "flora_lightningstorm_2", 
			"square" : 64
		}]
}

You can use a JSON Parser to check if your file doesn't contain any errors.

  • Every Entry is One Painting
  • "name" is the name of your image file . In the example, we have a picture called lagune.png in our ResourcePack
  • you can either use "x" and "y" to define the shape of the Painting.
  • or you can use "square" to define a square shape for square paintings
  • to ensure compatibility with other PaintingPacks, try to make each file name as unique as possible. Suggested is to prefix the name of your image with a unique identifier : "absolem_lagune" instead of "lagune"
  • to ensure compatibility with other PaintingPacks, try to make your json file name as unique as possible. suggested is to add your name as a suffix to the json : "absolem_pretty_landscapes.json"

ISSUES / DEBUGGING

The painting++ json file reader log is pretty extensive.
It has been made as readable as possible, with all info present.
Most commonly issues encountered :

  • mistaking pixel size for block size > result is massive paintings not showing up in the gui because your placement surface is too small
  • mistaking painting pixel size for texture pixel size > result is massive paintings not showing up in the gui because your placement surface is too small
  • using any other characters then [a-z0-9/.-]_ > result is minecraft not able to read files
  • not using zip files for texture packs > paintings++ reader can only read zip files

SERVERS

Servers, in essence, only need this json file to be able to run.
You do not need the entire image file archive.
Either run the server once with the mod for it to generate the paintings folder, or make a new folder in the installation directory.
Paste your json in the folder.

Clone this wiki locally