Template:Hotbar: Difference between revisions
Jump to navigation
Jump to search
Create: Minecraft Mod Wiki>Joker876 No edit summary |
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 mcui-hotbar" style=" | ||
border: 0; | border: 0; | ||
width: 352px; | width: 352px; | ||
Line 7: | Line 6: | ||
">{{ | ">{{ | ||
#if: {{{selected|}}} | {{#ifexpr: {{{selected}}} >= 1 and {{{selected}}} <= 9 | | #if: {{{selected|}}} | {{#ifexpr: {{{selected}}} >= 1 and {{{selected}}} <= 9 | | ||
<span style=" | <span class="mcui-hotbar-selected" style=" | ||
position: absolute; | position: absolute; | ||
display: block; | display: block; | ||
width: 48px; | width: 48px; | ||
height: 48px; | height: 48px; | ||
top: -2px; | top: -2px; | ||
left: {{#expr: ({{{selected}}} - 1) * 40 }}px; | left: {{#expr: ({{{selected}}} - 1) * 40 }}px; |
Revision as of 09:48, 16 April 2021
Template shortcut
{{hotbar}}
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
{{Inventory slot}}
{{Crafting Table}}
{{Crafting Grid}}
{{Furnace}}
{{Brewing Stand}}
{{Stonecutter}}
{{Loom}}
{{Grindstone}}
{{Hotbar}}
{{Crushing Wheel}}
{{Bulk Washing}}
{{Bulk Haunting}}
{{Bulk Smoking}}
{{Bulk Blasting}}
{{Mechanical Mixer}}
{{Mechanical Press}}
{{Millstone}}
{{Mechanical Crafter}}
{{Mechanical Saw}}
{{Spout}}
{{Sand Paper}}
- Module:Inventory slot
- Module:Inventory slot/Aliases
- Module:UI
[view | edit | history | purge]The above documentation is transcluded from Template:Hotbar/doc.