User:Flying sheep/Blocks

From Minecraft Wiki

This Template is used to draw simple 2D-Blockgraphics.

It uses the terms from BlockSprite to define single-character-abbrevations for blocks, which can be used in a Table-like fashion

Example[edit source]

{{User:Flying sheep/Blocks
|g=grass|s=stone|S=sand
|sSg
|gSa
}}

produces


{{#fornumargs: rownum | tablerow | {{#loop: column | 0 | {{#len:{{#var:tablerow}}}} | {{#vardefine:blockid|{{{ {{#sub:{{#var:tablerow}}|{{#var:column}}|1}} }}}}} }} }}
&format=original


Note that undefined prefixes or prefixes assigned to block names unknown to the BlockSprite template are replaced by
&format=original
.