← slabserver.org SlabServer wiki logo SlabServer Community wiki
Style guide

Iconography

Minecraft item sprites, the mcicon shortcode, and the hyphenated-slug rule.

Iconography

Minecraft item sprites come from assets/css/mc-items.css (~1653 slugs). Use the shortcode {{< mcicon "grass-block" >}} inline, or partial "mc-icon.html" "grass-block" in templates (pass a dict with lg true for 32px). Slugs must be hyphenated - ender-pearl, not enderpearl; a bad slug renders an empty span silently. Category → icon and section → icon mappings live in data/categories.yaml and data/sections.yaml.

grass-block
wheat
redstone
ender-pearl
emerald
crafting-table
filled-map
firework-rocket
player-head
beacon