Minecraft Wiki
Advertisement
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information

A template to generate tables for block/item data values.

Parameters:

  • spritetype: the type of sprite to use - entity, item or block. Defaults to block.
  • sprite: the name of the sprite - see Template:EntitySprite, Template:ItemSprite and Template:BlockSprite for available values. Defaults to air.
  • dv: used to manually set the data value, instead of counting sequentially.
  • foot=1: must be used at the end of a table to make sure the next table on the page starts at data value 0.
  • An unnamed parameter provides a description.

Example usage:

{{dvt|spritetype=block|sprite=mushroom-block-pores|Pores on all sides}}
{{dvt|spritetype=block|sprite=mushroom-blocks|Cap texture on top, west and north}}
{{dvt|spritetype=block|sprite=mushroom-blocks|Cap texture on top and north}}
{{dvt|spritetype=block|sprite=mushroom-blocks|Cap texture on top, north and east}}
{{dvt|spritetype=block|sprite=mushroom-block-pores|Cap texture on top and west}}
{{dvt|spritetype=block|sprite=mushroom-block-pores|Cap texture on top}}
{{dvt|spritetype=block|sprite=mushroom-block-pores|Cap texture on top and east}}
{{dvt|spritetype=block|sprite=mushroom-block-pores|Cap texture on top, south and west}}
{{dvt|spritetype=block|sprite=mushroom-block-pores|Cap texture on top and south}}
{{dvt|spritetype=block|sprite=mushroom-block-pores|Cap texture on top, east and south}}
{{dvt|spritetype=block|sprite=mushroom-stem|Stem texture on all four sides, pores on top and bottom}}
{{dvt|dv=11}}
{{dvt|dv=12}}
{{dvt|dv=13}}
{{dvt|spritetype=block|sprite=mushroom-blocks|Cap texture on all six sides}}
{{dvt|spritetype=block|sprite=mushroom-stem|Stem texture on all six sides|foot=1}}

produces:

<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Pores on all sides
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top, west and north
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top and north
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top, north and east
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top and west
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top and east
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top, south and west
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top and south
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on top, east and south
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Stem texture on all four sides, pores on top and bottom
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000(unused)
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000(unused)
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000(unused)
<thead></thead><tbody></tbody>
Data valuedescription
DecHexBinary
000Cap texture on all six sides
<thead></thead><tbody>
Data valuedescription
DecHexBinary
000Stem texture on all six sides
Advertisement