Crafting Tables¶
You can display a crafting table UI using the mcl-crafting-table
directive to show a crafting recipe.
Directive¶
- .. mcl-crafting-table::¶
Directive that spawns crafting table UI on the page. Doesn’t accept any options or arguments, but must contain nested directives of type
mcl-inv-slot-animormcl-inv-slot(See more).Directives must have
areaoption set (formcl-inv-slot-animit must be set onmcl-inv-slot-animand not nested directives) and must fill the following areas:Top row: A1, A2, A3
Middle row: B1, B2, B3
Bottom row: C1, C2, C3
Result: R
Hint
You don’t have to fill all the areas, if some area is supposed to be empty you can just not add a slot for it. Areas that are not filled will be filled with an empty slot automatically.
Attention
Regardless of
bigoption set, this directive will normalize all nested directives to have it unset or forcibly set according to the area they fill (onlyRarea will bebigandbeautiful).
Examples¶
Here is an example showcasing a Hoe crafting recipe using stick and wooden planks or gold:
1:::::{mcl-crafting-table}
2
3::::{mcl-inv-slot-anim}
4:area: R
5
6:::{mcl-inv-slot} Wooden Hoe
7:icon: ../../_static/inv/wooden_hoe.png
8:link: index.html
9:::
10
11:::{mcl-inv-slot} Golden Hoe
12:icon: ../../_static/inv/wooden_hoe.png
13:link: index.html
14:::
15::::
16
17::::{mcl-inv-slot-anim}
18:area: A1;A2
19
20:::{mcl-inv-slot} Oak Planks
21:icon: ../../_static/inv/oak_wood.png
22:link: index.html
23:::
24
25:::{mcl-inv-slot} Golden Ingot
26:icon: _static/inv/golden_ingot.png
27:link: index.html
28:::
29::::
30
31::::{mcl-inv-slot} Stick
32:area: B2;C2
33:icon: ../../_static/inv/stick.png
34:link: index.html
35::::
36
37:::::
Should render as:



