Skip to content

CraftTweaker Guide (1.18.2~)

Giselle edited this page Sep 14, 2022 · 3 revisions

Notice

  1. after 1.18.2
  2. <recipetype:XXX:YYY>.removeRecipe(IItemStack) is not working
  3. getRecipesByOutput is not working too
  4. this page show recipes added from addon

Recipe Type List

  1. Rolling
  2. Extruding

Recipe Type Description

1. Rolling

Uses at: Advanced Compressor(Rolling Mode)

Methods

1. addJsonRecipe

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

image

2. addRecipe

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

image

2. Extruding

Uses at: Advanced Compressor(Extruding Mode)

Methods

1. addJsonRecipe

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

image

2. addRecipe

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

image

Clone this wiki locally