Skip to content

CraftTweaker Guide (1.16.5)

gisellevonbingen edited this page Aug 20, 2022 · 16 revisions

Notice

1.<recipetype:XXX:YYY>.removeRecipe(IItemStack) is not working

Supported Recipe Type List

Recipe Type Description

1. Compressig

Uses at: Compressor, Advanced Compressor(Compressing Mode)

Methods

1. addJSONRecipe

Method Scheme
order namme type description
1 name String recipe's name
2 data JSON Object recipe's json data
JSON Scheme
order namme type description
1 output IItemStack output itemstack
2 input JSON Object input data
include Ingredient
Example

Code

<recipetype:boss_tools:compressing>.addJSONRecipe("compressing_test_1", {
	"output": { "item": "minecraft:diamond" },
	"input": { "ingredient": { "tag": "minecraft:coals" } },
	"cookTime": 200
});

Screenshot

image

2. addRecipe

Method Scheme
order namme 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

Code

<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);

Screenshot

image

image

2. Fuel Refining

Uses at: Fuel Refinery

Methods

addJSONRecipe

Method Scheme
order namme type description
1 name String recipe's name
2 data JSON Object recipe's json data
JSON Scheme
order namme 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

Code

<recipetype:boss_tools:fuelrefining>.addJSONRecipe("fuelrefining_test_1", {
	"output": {
		"name": "boss_tools:fuel",
		"amount": 2
	},
	"input": {
		"tag": "tconstruct:blazing_blood",
		"amount": 2
	},
   
});

Screenshot

image

addRecipe

Method Scheme
order namme 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

Code

<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);

Screenshot

image

image

3. Generating

Uses at: Coal Generator

Methods

1. addJSONRecipe

Method Scheme
order namme type description
1 name String recipe's name
2 data JSON Object recipe's json data
JSON Scheme
order namme type description
1 burnTime Int generating duration [ticks]
2 input JSON Object input data
include Ingredient
Example

Code

<recipetype:boss_tools:generating>.addJSONRecipe("generating_test_1", {
	"burnTime": 1998,
	"input": { "ingredient": { "item": "minecraft:lava_bucket" } } 
});

Screenshot

image

2. addRecipe

Method Scheme
order namme type description
1 name String recipe's name
2 burnTime Int generating duration [ticks]
3 input IIngredient input data
include Ingredient
JSON Scheme
order namme type description
1 output IItemStack output itemstack
2 input JSON Object intput ingredient
Example

Code

<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>);

Screenshot

image

image

Clone this wiki locally