Project Structure#
Recipe image generator projects have a structure similar to the data repository. Both contain folders that provide resources, such as block-images, fonts, images, and templates. These resources are used by the templates to generate the images. If a resource of the same name exists in both the working directory and the data repository, the resource in the working directory takes precedence.
The following list describes the structure of the working directory:
๐ block-images
๐ fonts
๐ generated-images
๐ images
๐ templates
๐๏ธ data_map.json
๐๏ธ recipe_properties.json
๐๏ธ recipe_properties.md
๐ block-images#
This path is used to provide renders of the blocks for generating the recipe images. This path should be only used for custom blocks for the blocks that use a custom texture on the map.
This is the path that opens when you run the app in the interactive mode and you press the โProject block imageโ button (see the Usage article for more details about the interactive mode).
๐ fonts#
This path is used to provide custom fonts for the templates of the project (the .ttf files).
๐ generated-images#
This is the path where the images are generated when you press the โGenerateโ button.
๐ images#
This path can be used to provide custom images for the templates.
For example you can use it to put images of entities of the map in there. After doing that you can use the variable patterns to reference the images in the templates while generating recipes for the spawn eggs of the entities. You can learn more about the variables in the Templates article.
๐ templates#
This directory can be used to define custom templates. See the Templates article to learn how to create templates and learn about their syntax.
๐๏ธ data_map.json#
This is the file that the Recipe Image Generator uses to store the inforation about texture mapping of the custom blocks and images. Itโs generated by the tool and direct access to this file is not necessary unless you know what youโre doing and youโre trying to fix some issues.
๐๏ธrecipe_properties.json#
This file is used to provide additional information to the templates regarding the recipes. The most popular use case is to provide the description of the recipes. You can find more details about the structure of this files in the Recipe Properties article.
๐๏ธrecipe_properties.md#
Itโs a summary that you can generate based on the recipe_properties.json file using the โExport Textโ button. It contains the same data but in a different format. The recipe_properties.md file is only for reading and should not be edited manually.