-
Notifications
You must be signed in to change notification settings - Fork 2
CraftTweaker Guide (1.18.2~)
Giselle edited this page Sep 14, 2022
·
3 revisions
- after 1.18.2
- <recipetype:XXX:YYY>.removeRecipe(IItemStack) is not working
- getRecipesByOutput is not working too
- this page show recipes added from addon
Uses at: Advanced Compressor(Rolling Mode)
Methods
Method Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | name | String | recipe's name |
| 2 | data | Json Object | recipe's json data |
Json Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | output | IItemStack | output itemstack |
| 2 | input | IIngredient | input ingredient |
| 3 | cookTime | int | processing duration [ticks] if empty, will be 200 |
Example
<recipetype:beyond_earth_giselle_addon:rolling>.addJsonRecipe("rolling_test_1", {
"output": { "item": "minecraft:oak_pressure_plate" },
"input": { "item": "minecraft:oak_planks" },
"cookTime": 200
});
Method Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | name | String | recipe's name |
| 2 | output | IItemStack | output itemstack |
| 3 | input | IIngredient | intput ingredient |
| 4 | cookTime | int | processing duration [ticks] if empty, will be 200 |
Example
<recipetype:beyond_earth_giselle_addon:rolling>.addRecipe("rolling_test_2",
<item:minecraft:stone_pressure_plate>,
<item:minecraft:stone>,
50
);
Uses at: Advanced Compressor(Extruding Mode)
Methods
Method Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | name | String | recipe's name |
| 2 | data | Json Object | recipe's json data |
Json Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | output | IItemStack | output itemstack |
| 2 | input | IIngredient | input ingredient |
| 3 | cookTime | int | processing duration [ticks] if empty, will be 50 |
Example
<recipetype:beyond_earth_giselle_addon:extruding>.addJsonRecipe("extruding_test_1", {
"output": { "item": "minecraft:stick", count: 2 },
"input": { "tag": "minecraft:planks" },
"cookTime": 50
});
Method Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | name | String | recipe's name |
| 2 | output | IItemStack | output itemstack |
| 3 | input | IIngredient | intput ingredient |
| 4 | cookTime | int | processing duration [ticks] if empty, will be 50 |
Example
<recipetype:beyond_earth_giselle_addon:extruding>.addRecipe("extruding_test_2",
<item:minecraft:string> * 4,
<tag:items:minecraft:wool>
);