VOOZH about

URL: https://minecraft.wiki/w/Template:Block_state_table

⇱ Template:Block state table – Minecraft Wiki


Template:Block state table

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]

This template is used to generate tables for block states.

Parameters

[edit source]

The unnamed parameter |1= is used to set name of the state. Multiple states can be placed in the same column if separated by commas. Each column supports theoretically unlimited states.

The unnamed parameter |2= is used to set the default value of this state.

Use |foot=1 to end the table.

Value parameters

[edit source]

Starting with |3=, unnamed parameters are used in pairs to display a row. In each row, the first parameter is the value, and the second is the description. This template supports up to sixteen rows total.

Multiple values can be placed in the same column if separated by commas. You can also use a range of numbers by placing an unspaced hyphen (-) between the numbers.

Example usage

[edit source]
{{bst|age|0
|0|{{BlockSprite|wheat-1}}
|1|{{BlockSprite|wheat-2}}
|2|{{BlockSprite|wheat-3}}
|3|{{BlockSprite|wheat-4}}
|4|{{BlockSprite|wheat-5}}
|5|{{BlockSprite|wheat-6}}
|6|{{BlockSprite|wheat-7}}
|7|{{BlockSprite|wheat-8}} Fully-grown.|foot=1}}
Produces
Name Default value Allowed values Description
age0 0👁 BlockSprite wheat-1.png: Sprite image for wheat-1 in Minecraft
1👁 BlockSprite wheat-2.png: Sprite image for wheat-2 in Minecraft
2👁 BlockSprite wheat-3.png: Sprite image for wheat-3 in Minecraft
3👁 BlockSprite wheat-4.png: Sprite image for wheat-4 in Minecraft
4👁 BlockSprite wheat-5.png: Sprite image for wheat-5 in Minecraft
5👁 BlockSprite wheat-6.png: Sprite image for wheat-6 in Minecraft
6👁 BlockSprite wheat-7.png: Sprite image for wheat-7 in Minecraft
7👁 BlockSprite wheat-8.png: Sprite image for wheat-8 in Minecraft
Fully-grown.
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Block state table/doc.
Retrieved from "https://minecraft.wiki/w/Template:Block_state_table?oldid=3236343"

Navigation menu