Custom world generation/block state

Minecraft Wiki article. Categories: Upcoming, Java_Edition_upcoming_tag, Java_Edition, Data_packs

📌 Mirrored from Minecraft Wiki

This article is reproduced from Custom world generation/block state on the Minecraft Wiki. Mirrored from revision 3704626. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • [String] Name:​[until: JE 26.3] The identifier of the block to use.
    • [NBT Compound / JSON Object] Properties:​[until: JE 26.3] (Optional, can be empty) Block properties. Unspecified properties of the specified block will be set to their default values.
      • [String] <property>: (Optional) Block state property key-value pair. The property must be possessed by the specified block.
    • [String] id:​[upcoming: JE 26.3] Rename of [String] Name.
    • [NBT Compound / JSON Object] properties:​[upcoming: JE 26.3] Rename of [NBT Compound / JSON Object] Properties.
    • ​[upcoming: JE 26.3] Alternatively, instead of using a compound with [String] id and [NBT Compound / JSON Object] properties fields, a plain [String] string containing a block identifier can be used as a shorthand for that block's default block state.

Sources