Minecraft Wiki

Minecraft Wiki ภาษาไทยกำลังจะย้ายออกจาก Fandom ตามภาษาอังกฤษในเร็ว ๆ นี้ ดูที่หน้านี้และ Discord สำหรับข้อมูลเพิ่มเติม

READ MORE

Minecraft Wiki
Advertisement
[ดู | แก้ไข | ประวัติ | ล้างแคช]คู่มือการใช้งาน
Lua logo
แม่แบบนี้ใช้ มอดูล:BlockGrid ซึ่งสคริปต์นี้เขียนด้วยภาษาลูอา

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.

Example[]

{{BlockGrid
|g=Grass Block|s=stone|S=sand|m=magenta-glazed-terracotta|M=magenta-glazed-terracotta-rot90
|s g
|gSa
|mMm
}}
produces

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

See also[]

[ดู | แก้ไข | ประวัติ | ล้างแคช]คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:BlockGrid/doc.
Advertisement