Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Template:Block state table

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

This template is used to generate tables for block states.

Parameters[edit]

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 th default value of this state.

The parameter {{{foot}}} can be set to 1 to end the table.

Value parameters[edit]

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 a - between the numbers. Note that spaces are not required between the numbers and the dash.

Example usage[edit]

{{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
1
2
3
4
5
6
7 Fully-grown.
[view | edit | history | purge]The above documentation is transcluded from Template:Block state table/doc.