From Mo' Creatures Wiki
Jump to: navigation, search
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information
Lua logo.svg
This template uses Module:BlockGrid, a script written in Lua.
Please see Lua and mw:Extension:Scribunto to learn more.

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

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

Icons can be rotated by adding -rot<number> on the end of the sprite ID (e.g. Red Glazed Terracotta-rot90 for a red glazed terracotta rotated 90 degrees).

{{{spacing}}} sets the pixels of spacing between each cell, 0 by default.


|g=Grass Block|s=stone|S=sand|m=magenta-glazed-terracotta|M=magenta-glazed-terracotta-rot90
|s g

Lua error in Module:Sprite at line 139: attempt to index field 'settings' (a nil value).

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