Mineuniverse

Painting variant definition

A painting variant consists of a texture and a width and height in blocks.

1 min read Updated 5 views
Java Edition Paintings Data packs
Advertisement Remove ads with Premium →
Contents (3)
  1. Definition
  2. JSON Format
  3. History
This feature is exclusive to Java Edition.

A painting variant consists of a texture and a width and height in blocks.

Definition

Painting variants can be defined in data packs, as part of the directory structure below. Until Java Edition 1.21.6 they can also be inlined in the entity data and painting/variant data component.

JSON Format

Painting variants are defined using the following format:

  • [NBT Compound / JSON Object] The root object.
    • [String] asset_id: A resource location of the sprite to use. Has to be in the painting atlas.
    • [Int] width: The width of the painting in blocks, between 1 and 16.
    • [Int] height: The height of the painting in blocks, between 1 and 16.
    • [String][NBT List / JSON Array][NBT Compound / JSON Object] title: Text component to use as this painting's title. See Text component format.
    • [String][NBT List / JSON Array][NBT Compound / JSON Object] author: Text component to use as this painting's author. See Text component format.

History

Java Edition
1.2124w18a Added painting variants to data packs.
24w20a Painting variants can now be inlined in painting entity data.
1.21.224w33a Added new optional fields author and title, holding text components to be displayed in the creative menu tooltip.
Author tooltip has been removed for earth, wind, fire, water and wither variants.
1.21.625w16a Painting variants can no longer be inlined in entity NBT or the painting/variant component.
Advertisement Remove ads with Premium →

More in Java Edition

View all 57 →
Minecart with FurnaceMinecart with FurnaceA minecart with furnace is a furnace inside a minecart. It can be powered with exclusively coal or charcoal to propel it across a rail line for a limited…Minecraft: The Island (map)Minecraft: The Island (map)Minecraft: The Island is a map that developed by Blockception to promote the official Minecraft novel of the same name. It was originally released for…Non-model-dependent block elementsModels are used for defining the fundamental geometry for the vast majority of blocks in the game. Some blocks have additional visual data associated with…OverlayAn overlay places a set of features in the same location. All features are placed regardless of success of individual placement.Paintings.png-atlasPaintings.png-atlaspaintings.png-atlas is a procedurally-generated texture atlas used to store textures for all paintings.Phantom FramesPhantom FramesPhantom Frames is a tie-in DLC to The Garden Awakens, released under the Expect the unexpected campaign, as both an add-on for Bedrock Edition and a data…Potato OilPotato OilPotato oil is a joke item exclusive to 24w14potato.Potion of LuckPotion of LuckA potion of Luck is a potion that provides Luck when used.
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home