๐Ÿ–ผ๏ธ custom_paintings#

Generates custom paintings for the datapack and resource pack.

beet_default(ctx: Context) → None[source]#

Main entry point for the custom paintings plugin. This plugin handles the generation of custom paintings for the datapack and resource pack.

Requires a valid definitions in Mem.definitions in order to function properly using constant โ€˜PAINTING_DATAโ€™.

Parameters:

ctx โ€“ The beet context.

write_painting_variant(
item: str,
item_name: object,
painting_data: JsonDict,
obj_painting: Painting,
) → None[source]#

Write the painting variant, its author defaulting to the projectโ€™s and its title to the itemโ€™s name.

painting_source(
item: str,
painting_data: JsonDict,
textures_folder: str,
) → str | None[source]#

The image of a painting: its texture under the textures folder, else the one file there named <item>.png.

None, with an error, when there is none. Several files of that name warn and the first one is used.

silent#