Template:Hotbar: Difference between revisions
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: | 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: | 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
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.