-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04_recipe_adapters.html
90 lines (90 loc) · 5.89 KB
/
04_recipe_adapters.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<title>Recipe Adapters - Modular Machinery Offline Reference</title>
<link href="./css/site.css" rel="stylesheet">
<link href="./css/colouramber.css" rel="stylesheet">
<link href="./css/font.css" rel="stylesheet">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
</head>
<body>
<div class="row border" id="main">
<div class="col border border-right menu">
<h2>MENU</h2>
<ul class="menu">
<li> <a href=".\index.html" class="link">\Home</a> </li>
<li><a href="./00_keynotes.html" class="link">\Important notes</a></li>
<li><a href="./01_machine_format.html" class="link">\Machine format</a></li>
<li><a href="./02_variables.html" class="link">\Variables</a></li>
<li><a href="./03_machine_recipes.html" class="link">\Recipes</a></li>
<li><a href="./04_recipe_adapters.html" class="link">\Recipe Adapters</a></li>
<li><a href="./05_nbt_checking_setting.html" class="link">\NBT Checking & Setting</a></li>
<li><a href="./06_recipe_sorting.html" class="link">\Recipe Sorting</a></li>
<li><a href="./07_machine_format_postition_permutations.html" class="link">\Machine Format Position Permutations</a></li>
<li><a href="./08_machine_colors.html" class="link">\Machine Colors</a></li>
<li><a href="./09_structure_to_json_tool.html" class="link">\Structure To JSON Tool [Advanced]</a></li>
<li><a href="./010_furnace_fuel_as_item_input.html" class="link">\Furnace Fuel as Item-Input</a></li>
<li><a href="./011_craftweaker_recipe_definitions.html" class="link">\Crafttweaker Recipe definitions</a></li>
<li><a href="./012_recipe_modifiers.html" class="link">\Recipe Modifiers</a></li>
<li><a href="./100_ct_modular_machinery.html" class="link">\CT Modular Machinery</a></li>
<li><a href="./101_ct_recipebuilder.html" class="link">\CT Recipe Builder</a></li>
<li><a href="./102_ct_recipeprimer.html" class="link">\CT Recipe Primer</a></li>
</ul>
</div>
<div class="col">
<div class="col">
<h1 class="border border-bottom">Custom Machines: Recipe Adapters</h1>
</div>
<div class="row border border-bottom">
<p>From <a href="https://github.com/HellFirePvP/ModularMachinery/wiki/5.-Custom-Machines:-Recipe-Adapters">https://github.com/HellFirePvP/ModularMachinery/wiki/5.-Custom-Machines:-Recipe-Adapters</a> </p>
</div>
<div class="col">
<p>While writing up new machines and recipes is fine and all,
you might want to import recipes from furnaces or related - That's what adapters are for.
They convert recipes from given/defined recipes/machines and convert them over into a format ModularMachinery understands and adds them to the recipe pool of a given machine.</p>
<p>At the moment, adapters are still pretty primitive and non-customizable, but that's going to change. (at least i have plans for that...)</p>
<p>Currently available adapters:</p>
<ul>
<li>(v1.0+)"<span class="bold">minecraft:furnace</span>" (Will convert all furnace recipes into ModularMachinery recipes, duration 120 ticks at 20 FE/t)</li>
<li>(v1.9.6+) <span class="bold">Every defined machine</span> (its registry name) can be specified as adapter,
so you can import recipes from one machine into another (Recipes will be identical unless modified by recipe modifiers,
explained down below). Machines created with modular machinery jsons will always be in the 'modularmachinery' namespace.</li>
</ul>
<p>The syntax for the moment (v. 1.0) is as follows:</p>
<div class="code">
<pre class="code">{
"machine": "machineregistryname",
"adapter": "minecraft:furnace"
}</pre>
</div>
<p class="border border-bottom">Adapters must be defined in the same directory as recipes and have to have a file ending of <span class="bold">.adapter.json</span> !</p>
<p>From version 1.9.6 and newer versions, modifiers can be applied to each recipe imported through the adapter.
This can - as explained in <a href="012_recipe_modifiers.html">13. Recipe Modifiers [Advanced]</a> - modify all potential requirements of a recipe, e.g. energy, item, duration, ...</p>
<div class="code">
<pre class="code">{
"machine": "alloy_furnace",
"adapter": "minecraft:furnace",
"modifiers": [
{
"io": "output",
"target": "item",
"operation": 1,
"multiplier": 2.0
},
{
"io": "input",
"target": "duration",
"operation": 1,
"multiplier": 0.5
}
]
}</pre>
</div>
<p>In this example of an adapter.json,
the adapter imports all recipes from 'minecraft:furnace' and will modify them so they will produce double the output (operation 1 = multiply; multiplier 2 = result amount * 2).</p>
<p>So one can optionally specify a "modifiers" tag in the .adapter.json, which is required to be a list/array of modifier objects. See the wiki page for recipe modifiers for further information.</p>
</div>
</div>
</div>
</body>
</html>