Aucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 325 : | Ligne 325 : | ||
|title=Coffre de trésor |
|title=Coffre de trésor |
||
|1=Trident |
|1=Trident |
||
− | |5= |
+ | |5=Sucre,3 |
− | |6=Torche |
+ | |6=Torche des âmes,64 |
|C0=Saumon dans un seau |
|C0=Saumon dans un seau |
||
|C1=Algue,5 |
|C1=Algue,5 |
||
Ligne 342 : | Ligne 342 : | ||
|title=Coffre de trésor |
|title=Coffre de trésor |
||
|1=Trident |
|1=Trident |
||
− | |5= |
+ | |5=Sucre,3 |
− | |6=Torche |
+ | |6=Torche des âmes,64 |
|C0=Saumon dans un seau |
|C0=Saumon dans un seau |
||
|C1=Algue,5 |
|C1=Algue,5 |
Version du 19 mai 2020 à 14:12
[purger]
Ceci est la page de documentation, elle devrait être incluse dans le page principale du modèle. Voir Modèle:Documentation pour plus d'informationsLa documentation de ce modèle a besoin d'être améliorée.
Ce modèle permet de créer une interface qui ressemble à un inventaire dans le jeu.
Utilisation
Pour contrôler le contenu des cases d'inventaire et des autres interfaces, les paramètres suivants doivent être utilisés.
Cette page est à traduire en Français.
Paramètres communs | ||
---|---|---|
Paramètre | Fonction | Valeur par défaut |
type | Required. The type of GUI to show. Always includes player inventory. Can be any value from the table headers below | |
title | The custom title to show on the GUI | the default title of the GUI |
scale | The magnification level (size) of the resulting element (doesn't work in Firefox or on Android) | 1 |
inventory | Whether or not the player inventory is to be shown ("no" means hidden, unhidden otherwise) | yes |
0 – 8 | Hotbar item slots | |
9 – 17 | Top inventory row of item slots | |
18 – 26 | Middle inventory row of item slots | |
27 – 35 | Bottom inventory row of item slots |
- Recognised arguments for required parameter
type
survival
chest
large-chest
furnace
anvil
smithing-table
dispenser
hopper
crafting-table
brewing-stand
generic
Specifications for Various GUI Types
type=survival parameters
| ||
---|---|---|
Parameter | Function | Default value |
-106 | Offhand item slot | |
103 | Head item slot | |
102 | Body item slot | |
101 | Legs item slot | |
100 | Feet item slot | |
background | The background color of the player avatar preview area next to the armor slots | #000000 |
recipebook | Recipebook button item | Knowledge Book |
A1, B1 | Top 2×2 crafting grid slots | |
A2, B2 | Bottom 2×2 crafting grid slots | |
Output | 2×2 Crafting grid output slot | |
title | Note: This common parameter has no effect on the survival inventory. |
type=chest parameters
| ||
---|---|---|
Parameter | Function | Default value |
C0 – C8 | Top chest row of item slots | |
C9 – C17 | Middle chest row of item slots | |
C18 – C26 | Bottom chest row of item slots |
type=large-chest parameters
| ||
---|---|---|
Parameter | Function | Default value |
C0 – C8 | Chest row 1 of item slots | |
C9 – C17 | Chest row 2 of item slots | |
C18 – C26 | Chest row 3 of item slots | |
C27 – C35 | Chest row 4 of item slots | |
C36 – C44 | Chest row 5 of item slots | |
C45 – C53 | Chest row 6 of item slots |
type=furnace parameters
| ||
---|---|---|
Parameter | Function | Default value |
Input | Furnace input slot | |
Output | Furnace output slot | |
lit | Whether or not to render the fire as lit ("true" means lit, not active otherwise) | false |
Fuel | Furnace fuel item slot | |
recipebook | Recipebook button item | Knowledge Book |
type=anvil parameters
| ||
---|---|---|
Parameter | Function | Default value |
text | The custom text filled into the textfield of the anvil | |
Input1 | The left anvil input slot | |
Input2 | The right anvil input slot | |
Output | The anvil output slot | |
crossed | Whether or not the anvil operation (arrow) should be rendered crossed out ("true" means crossed out, normal otherwise) | false |
cost | The enchantment level cost of the anvil operation, any value or "expensive" | |
expensive | Whether or not the anvil operation should be marked as too expensive ("true" means the text for the operation cost becomes dark red, bright green otherwise) | false |
type=smithing-table parameters
| ||
---|---|---|
Parameter | Function | Default value |
Input1 | The left input slot | |
Input2 | The right input slot | |
Output | The output slot | |
crossed | Whether or not the arrow should be crossed out (as type=anvil ) |
false |
type=dispenser parameters
| ||
---|---|---|
Parameter | Function | Default value |
D0 – D2 | Top dispenser row of item slots | |
D3 – D5 | Middle dispenser row of item slots | |
D6 – D8 | Bottom dispenser row of item slots |
type=hopper parameters
| ||
---|---|---|
Parameter | Function | Default value |
H0 – H4 | Hopper item slots |
type=crafting-table parameters
| ||
---|---|---|
Parameter | Function | Default value |
A1, B1, C1 | Top 3×3 crafting grid row of slots | |
A2, B2, C2 | Middle 3×3 crafting grid row of slots | |
A3, B3, C3 | Bottom 3×3 crafting grid row of slots | |
Output | 3×3 Crafting grid output slot | |
recipebook | Recipebook button item | Knowledge Book |
type=brewing-stand parameters
| ||
---|---|---|
Parameter | Function | Default value |
Fuel | Brewing fuel input item slot | |
Input | Brewing input item slot | |
Output1 | The left bottle item slot | |
Output2 | The middle bottle item slot | |
Output3 | The right bottle item slot | |
fuel | Remaining fuel actions | 0 |
progress | Brewing action progress | 0 |
type=generic parameters
| ||
---|---|---|
Parameter | Function | Default value |
rows | The number of rows to show (max is 16). | 1 |
0 – 143 | Available item slots. |
Exemples
Inventaire du mode Survie
{{Inventaire |type=survie |0=[&bÉpée mystique]Épée en diamant[&7Tranchant III/&7Butin III/&7Solidité VII/&7Raccommodage//&9+9 points d'attaque] |1=Hache en diamant |2=Pioche en diamant endommagée |3=Arc endommagé |5=Flèche,52 |7=Planches de chêne,18 |8=Bâton,12 |9=Pierres,64 |10=Pierres,64 |11=Pierres,13 |35=Diamant,43 |A1=Charbon de bois,17 |A2=Bâton,20 |Résultat=Torche,4 |-106=Totem d'immortalité |103=Casque en diamant |102=Élytres cassées |101=Jambières en diamant |100=Bottes en diamant }}
- Résultat
Fourneau
{{Inventaire |type=fourneau |lit=true |0=Hache en diamant endommagée |1=Pioche en pierre endommagée |12=Granite,24 |Combustible=Bûche de chêne noir écorcée,14 |Ressource=Saumon cru,8 |Résultat=Saumon cuit,56}}
- Résultat
Grand coffre
{{Inventaire |type=grand-coffre |title=Coffre de trésor |1=Trident |5=Sucre,3 |6=Torche des âmes,64 |C0=Saumon dans un seau |C1=Algue,5 |C2=Lingot d'or,6 |C4=Pelle en diamant |C5=Émeraude,3 |C15=Bloc de fer,64 |C21=Bois de chêne,16 }}
- Résultat
Établi
{{Inventaire |type=établi |A1= |B1=Poudre de Blaze |C1= |A2= |B2=Charbon, Charbon de bois |C2= |A3= |B3=Poudre à canon |C3= |Résultat=Boule de feu,3 }}
- Résultat
3
Inventaire
Enclume
{{Inventaire |type=enclume |text=Épée mystique |crossed=true |cost=28 |expensive=true |1=Hache en diamant endommagée |2=Pioche en diamant endommagée |3=Arc endommagé |5=Flèche,52 |8=Bâton,12 |9=Pierres,64 |10=Pierres,64 |11=Pierres,13 |35=Diamant,43 |Input1=[&b]Épée en diamant[&7Solidité VII/&7Raccommodage] |Input2=Livre enchanté[&7Tranchant III/&7Butin III] |Résultat=[&bÉpée mystique]Épée en diamant[&7Tranchant III/&7Butin III/&7Solidité VII/&7Raccommodage//&9+9 points d'attaque] }}
- Résultat
Table de forgeron
{{Inventaire |type=table-forgeron |Input1=Épée en diamant |Input2=Lingot de Netherite |Output=Épée en Netherite |crossed=true }}
- Résultat
Distribureur
{{Inventaire |type=distributeur |title=Distributeur |D0=Flèche,64 |D1=Fusée de feu d'artifice,64 |D2=Trident |D3=Boule de feu,64 |D4=TNT,64 |D5=Bombe de glace,16 |D7=TNT,3 }}
- Résultat
Entonnoir
{{Inventaire |type=entonnoir |H0=Diamant,2 |H1=Pelle en bois |H2=Pelle en bois |H3=Pelle en bois |H4=Pelle en bois |0=Terre,2 }}
- Résultat
Alambic
{{Inventaire |type=alambic |title=Alambic magique |fuel=64 |progress=50 |Fuel=Poudre de Blaze,13 |Input=Verrue du Nether |Output1=Potion étrange |Output2=Potion de vision nocturne persistante |Output3=Antidote }}
- Résultat
13[[Verrue du Nether|
[[Antidote|
Inventaire
Générique
{{Inventaire |type=generic |title=Petite boîte aux trucs |rows=2 |0=Bâton,4 |Bûche de chêne |Bûche de sapin |11=Fragments de Netherite |16=Betterave |17=Carotte }}
- Résultat