Template:Hotbar: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
Created page with "<includeonly><div><span class="mcui pixel-image" style=" background: {{FileUrl|{{#if: {{{hotbar|}}} | {{{hotbar}}} | Hotbar.png }}}} no-repeat; border: 0; width: 352px; he..."
 
Create: Minecraft Mod Wiki>Joker876
No edit summary
Line 1: Line 1:
<includeonly><div><span class="mcui pixel-image" style="
<includeonly><div><span class="mcui pixel-image" style="
background: {{FileUrl|{{#if: {{{hotbar|}}} | {{{hotbar}}} | Hotbar.png }}}} no-repeat;
background: url(https://static.wikia.nocookie.net/create_mod/images/2/29/Hotbar_selector.png) no-repeat;
border: 0;
border: 0;
width: 352px;
width: 352px;
Line 12: Line 12:
width: 48px;
width: 48px;
height: 48px;
height: 48px;
background: {{FileUrl|{{#if: {{{selector|}}} | {{{selector}}} | Hotbar selector.png }}}} no-repeat;
background: url(https://static.wikia.nocookie.net/create_mod/images/2/29/Hotbar_selector.png) no-repeat;
top: -2px;
top: -2px;
left: {{#expr: ({{{selected}}} - 1) * 40 }}px;
left: {{#expr: ({{{selected}}} - 1) * 40 }}px;

Revision as of 15:10, 15 April 2021

[view | edit | history | purge]Documentation
Template shortcut

This template is used to create an interface that looks similar to the Hotbar.

See Template:Inventory slot for basic slot usage, this documentation page will cover additional or different functions.

Usage

{{hotbar
|Slot 1
|Slot 2
|Slot 3
|Slot 4
|Slot 5
|Slot 6
|Slot 7
|Slot 8
|Slot 9
|selected=Selected slot, 1-9
|hotbar=Hotbar img
|selector=Selection img
}}

Any empty slots can be left blank.

Examples

Blank slots

{{hotbar|Grass Block|||Dirt|Wheat,2}}


Direct slot specification

{{hotbar|1=Grass Block|4=Dirt|5=Wheat,2}}


Selected slot

{{hotbar|Grass Block|||Dirt|Wheat,2|selected=4}}

File usage

See also

[view | edit | history | purge]The above documentation is transcluded from Template:Hotbar/doc.