-
Notifications
You must be signed in to change notification settings - Fork 2
CraftTweaker Guide (1.16.5)
gisellevonbingen edited this page Aug 20, 2022
·
16 revisions
1.<recipetype:XXX:YYY>.removeRecipe(IItemStack) is not working
Uses at: Compressor, Advanced Compressor(Compressing Mode)
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 | JSON Object | input data include Ingredient |
Example
<recipetype:boss_tools:compressing>.addJSONRecipe("compressing_test_1", {
"output": { "item": "minecraft:diamond" },
"input": { "ingredient": { "tag": "minecraft:coals" } },
"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 | cookTime if empty, will be 200 |
Example
<recipetype:boss_tools:compressing>.addRecipe("compressing_test_2", <item:mekanism:dust_charcoal>, <tag:items:forge:dusts/wood>);
<recipetype:boss_tools:compressing>.addRecipe("compressing_test_3", <item:boss_tools:compressed_steel>, <tag:items:forge:nuggets/steel>, 50);

Uses at: Fuel Refinery
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 | JSON Object | output fluid (name or tag) with amount |
| 2 | input | JSON Object | input fluid (name or tag) with amount |
Example
<recipetype:boss_tools:fuelrefining>.addJSONRecipe("fuelrefining_test_1", {
"output": {
"name": "boss_tools:fuel",
"amount": 2
},
"input": {
"tag": "tconstruct:blazing_blood",
"amount": 2
},
});
Method Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | name | String | recipe's name |
| 2 | output | IFluidStack | output fluidstack |
| 3 | input | IFluidStack or CTFluidIngredient or MCTag<Fluid> or MCTagWithAmount<Fluid> |
intput fluid ingredient |
Example
<recipetype:boss_tools:fuelrefining>.addRecipe("fuelrefining_test_2", <fluid:boss_tools:fuel> * 3, <fluid:minecraft:lava> * 5);
<recipetype:boss_tools:fuelrefining>.addRecipe("fuelrefining_test_3", <fluid:boss_tools:fuel> * 5, <tag:fluids:tconstruct:slime> * 3);

Uses at: Coal Generator
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 | burnTime | int | generating duration [ticks] |
| 2 | input | JSON Object | input data include Ingredient |
Example
<recipetype:boss_tools:generating>.addJSONRecipe("generating_test_1", {
"burnTime": 1998,
"input": { "ingredient": { "item": "minecraft:lava_bucket" } }
});
Method Scheme
| order | name | type | description |
|---|---|---|---|
| 1 | name | String | recipe's name |
| 2 | burnTime | int | generating duration [ticks] |
| 3 | input | IIngredient | input ingredient |
Example
<recipetype:boss_tools:generating>.addRecipe("generating_test_2", 19998, <item:tconstruct:blazing_blood_bucket>);
<recipetype:boss_tools:generating>.addRecipe("generating_test_3", 25, <tag:items:forge:dusts/wood>);
