VanillaRecipeProvider .java

net.minecraft.data.recipes.packs.VanillaRecipeProvider (class, 2645 lines): members: DEFAULT_COOKING_TIME, REDSTONE_SMELTABLES, DIAMOND_SMELTABLES, create.

net.minecraft.data.recipes.packsclass2,645 linescommonextends RecipeProvider117.1 KB

API Surface (6)

MultiRegistryBootstrap create()
Set<ResourceKey<? extends Registry<?>>> requestedRegistries()
void run(final MultiRegistryBootstrap.BootstrapGetter registries)
void buildRecipes()
Stream<VanillaRecipeProvider.TrimTemplate> smithingTrims()
record TrimTemplate(Item template, ResourceKey<TrimPattern> patternId, ResourceKey<Recipe<?>> recipeId)

Fields & Constants (10)

COAL_SMELTABLES
IRON_SMELTABLES
COPPER_SMELTABLES
GOLD_SMELTABLES
DIAMOND_SMELTABLES
LAPIS_SMELTABLES
REDSTONE_SMELTABLES
EMERALD_SMELTABLES
DEFAULT_COOKING_TIME
brewingProvider

String literals (274)

"impossible"
"wool"
"wool_stairs"
"wool_slabs"
"bed_dye"
"carpet_dye"
"harness_dye"
"cushion_dye"
"has_string"
"has_honeycomb"
"has_mud"
"has_packed_mud"
"has_mangrove_roots"
"has_rail"
"has_stone"
"has_iron_block"
"has_stone_slab"
"has_feather"
"has_flint"
"has_planks"
"has_wood_slab"
"has_nether_star"
"has_beetroot"
"black_dye"

Code Graph: Dependencies (53)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

VanillaRecipeProvider.java2645 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.data.recipes.packs;
2
3
import com.google.common.collect.ImmutableList;
4
import com.mojang.datafixers.util.Pair;
5
import java.util.List;
6
import java.util.Map;
7
import java.util.Optional;
8
import java.util.Set;
9
import java.util.stream.Stream;
10
import net.minecraft.advancements.Advancement;
11
import net.minecraft.advancements.predicates.MinMaxBounds;
12
import net.minecraft.advancements.triggers.CriteriaTriggers;
13
import net.minecraft.advancements.triggers.ImpossibleTrigger;
14
import net.minecraft.advancements.triggers.InventoryChangeTrigger;
15
import net.minecraft.advancements.triggers.PlayerTrigger;
16
import net.minecraft.core.Registry;
17
import net.minecraft.core.registries.BuiltInRegistries;
18
import net.minecraft.core.registries.MultiRegistryBootstrap;
19
import net.minecraft.core.registries.Registries;
20
import net.minecraft.data.recipes.BrewingProvider;
21
import net.minecraft.data.recipes.CustomCraftingRecipeBuilder;
22
import net.minecraft.data.recipes.RecipeBuilder;
23
import net.minecraft.data.recipes.RecipeCategory;
24
import net.minecraft.data.recipes.RecipeProvider;
25
import net.minecraft.data.recipes.SimpleCookingRecipeBuilder;
26
import net.minecraft.data.recipes.SpecialRecipeBuilder;
27
import net.minecraft.data.recipes.TransmuteRecipeBuilder;
28
import net.minecraft.data.worldgen.BootstrapContext;
29
import net.minecraft.resources.Identifier;
30
import net.minecraft.resources.ResourceKey;
31
import net.minecraft.tags.ItemTags;
32
import net.minecraft.world.flag.FeatureFlagSet;
33
import net.minecraft.world.flag.FeatureFlags;
34
import net.minecraft.world.item.DyeColor;
35
import net.minecraft.world.item.Item;
36
import net.minecraft.world.item.ItemStackTemplate;
37
import net.minecraft.world.item.Items;
38
import net.minecraft.world.item.component.FireworkExplosion;
39
import net.minecraft.world.item.crafting.BookCloningRecipe;
40
import net.minecraft.world.item.crafting.CampfireCookingRecipe;
41
import net.minecraft.world.item.crafting.CookingBookCategory;
42
import net.minecraft.world.item.crafting.DecoratedPotRecipe;
43
import net.minecraft.world.item.crafting.FireworkRocketRecipe;
44
import net.minecraft.world.item.crafting.FireworkStarFadeRecipe;
45
import net.minecraft.world.item.crafting.FireworkStarRecipe;
46
import net.minecraft.world.item.crafting.ImbueRecipe;
47
import net.minecraft.world.item.crafting.Ingredient;
48
import net.minecraft.world.item.crafting.MapExtendingRecipe;
49
import net.minecraft.world.item.crafting.Recipe;
50
import net.minecraft.world.item.crafting.RepairItemRecipe;
51
import net.minecraft.world.item.crafting.ShieldDecorationRecipe;
52
import net.minecraft.world.item.crafting.SmokingRecipe;
53
import net.minecraft.world.item.crafting.TransmuteRecipe;
54
import net.minecraft.world.item.crafting.TransmuteResult;
55
import net.minecraft.world.item.equipment.trim.TrimPattern;
56
import net.minecraft.world.item.equipment.trim.TrimPatterns;
57
import net.minecraft.world.level.ItemLike;
58
import net.minecraft.world.level.block.Blocks;
59
import net.minecraft.world.level.block.ColorCollection;
60
import net.minecraft.world.level.block.SuspiciousEffectHolder;
61
import net.minecraft.world.level.block.WeatheringCopper;
62
import net.minecraft.world.level.block.WeatheringCopperCollection;
63
64
public class VanillaRecipeProvider extends RecipeProvider {
65
	private static final ImmutableList<ItemLike> COAL_SMELTABLES = ImmutableList.of(Items.COAL_ORE, Items.DEEPSLATE_COAL_ORE);
66
	private static final ImmutableList<ItemLike> IRON_SMELTABLES = ImmutableList.of(Items.IRON_ORE, Items.DEEPSLATE_IRON_ORE, Items.RAW_IRON);
67
	private static final ImmutableList<ItemLike> COPPER_SMELTABLES = ImmutableList.of(Items.COPPER_ORE, Items.DEEPSLATE_COPPER_ORE, Items.RAW_COPPER);
68
	private static final ImmutableList<ItemLike> GOLD_SMELTABLES = ImmutableList.of(
69
		Items.GOLD_ORE, Items.DEEPSLATE_GOLD_ORE, Items.NETHER_GOLD_ORE, Items.RAW_GOLD
70
	);
71
	private static final ImmutableList<ItemLike> DIAMOND_SMELTABLES = ImmutableList.of(Items.DIAMOND_ORE, Items.DEEPSLATE_DIAMOND_ORE);
72
	private static final ImmutableList<ItemLike> LAPIS_SMELTABLES = ImmutableList.of(Items.LAPIS_ORE, Items.DEEPSLATE_LAPIS_ORE);
73
	private static final ImmutableList<ItemLike> REDSTONE_SMELTABLES = ImmutableList.of(Items.REDSTONE_ORE, Items.DEEPSLATE_REDSTONE_ORE);
74
	private static final ImmutableList<ItemLike> EMERALD_SMELTABLES = ImmutableList.of(Items.EMERALD_ORE, Items.DEEPSLATE_EMERALD_ORE);
75
	private static final int DEFAULT_COOKING_TIME = 200;
76
	private final BrewingProvider brewingProvider = new VanillaBrewingProvider(this.output);
77
78
	public VanillaRecipeProvider(final BootstrapContext<Recipe<?>> recipeOutput, final BootstrapContext<Advancement> advancementOutput) {
79
		super(recipeOutput, advancementOutput);
80
	}
81
82
	public static MultiRegistryBootstrap create() {
83
		return new MultiRegistryBootstrap() {
84
			@Override
85
			public Set<ResourceKey<? extends Registry<?>>> requestedRegistries() {
86
				return Set.of(Registries.RECIPE, Registries.ADVANCEMENT);
87
			}
88
89
			@Override
90
			public void run(final MultiRegistryBootstrap.BootstrapGetter registries) {
91
				new VanillaRecipeProvider(registries.get(Registries.RECIPE), registries.get(Registries.ADVANCEMENT)).buildRecipes();
92
			}
93
		};
94
	}
95
96
	@Override
97
	protected void buildRecipes() {
98
		Advancement.Builder.recipeAdvancement()
99
			.addCriterion("impossible", CriteriaTriggers.IMPOSSIBLE.createCriterion(new ImpossibleTrigger.TriggerInstance()))
100
			.build(RecipeBuilder.ROOT_RECIPE_ADVANCEMENT)
101
			.register(this.advancementOutput);
102
		this.generateForEnabledBlockFamilies(FeatureFlagSet.of(FeatureFlags.VANILLA));
103
		this.planksFromLog(Blocks.ACACIA_PLANKS, ItemTags.ACACIA_LOGS, 4);
104
		this.planksFromLogs(Blocks.BIRCH_PLANKS, ItemTags.BIRCH_LOGS, 4);
105
		this.planksFromLogs(Blocks.CRIMSON_PLANKS, ItemTags.CRIMSON_STEMS, 4);
106
		this.planksFromLog(Blocks.DARK_OAK_PLANKS, ItemTags.DARK_OAK_LOGS, 4);
107
		this.planksFromLog(Blocks.PALE_OAK_PLANKS, ItemTags.PALE_OAK_LOGS, 4);
108
		this.planksFromLogs(Blocks.JUNGLE_PLANKS, ItemTags.JUNGLE_LOGS, 4);
109
		this.planksFromLogs(Blocks.OAK_PLANKS, ItemTags.OAK_LOGS, 4);
110
		this.planksFromLogs(Blocks.SPRUCE_PLANKS, ItemTags.SPRUCE_LOGS, 4);
111
		this.planksFromLogs(Blocks.WARPED_PLANKS, ItemTags.WARPED_STEMS, 4);
112
		this.planksFromLogs(Blocks.MANGROVE_PLANKS, ItemTags.MANGROVE_LOGS, 4);
113
		this.planksFromLogs(Blocks.POPLAR_PLANKS, ItemTags.POPLAR_LOGS, 4);
114
		this.woodFromLogs(Blocks.ACACIA_WOOD, Blocks.ACACIA_LOG);
115
		this.woodFromLogs(Blocks.BIRCH_WOOD, Blocks.BIRCH_LOG);
116
		this.woodFromLogs(Blocks.DARK_OAK_WOOD, Blocks.DARK_OAK_LOG);
117
		this.woodFromLogs(Blocks.PALE_OAK_WOOD, Blocks.PALE_OAK_LOG);
118
		this.woodFromLogs(Blocks.POPLAR_WOOD, Blocks.POPLAR_LOG);
119
		this.woodFromLogs(Blocks.JUNGLE_WOOD, Blocks.JUNGLE_LOG);
120
		this.woodFromLogs(Blocks.OAK_WOOD, Blocks.OAK_LOG);
121
		this.woodFromLogs(Blocks.SPRUCE_WOOD, Blocks.SPRUCE_LOG);
122
		this.woodFromLogs(Blocks.CRIMSON_HYPHAE, Blocks.CRIMSON_STEM);
123
		this.woodFromLogs(Blocks.WARPED_HYPHAE, Blocks.WARPED_STEM);
124
		this.woodFromLogs(Blocks.MANGROVE_WOOD, Blocks.MANGROVE_LOG);
125
		this.woodFromLogs(Blocks.STRIPPED_ACACIA_WOOD, Blocks.STRIPPED_ACACIA_LOG);
126
		this.woodFromLogs(Blocks.STRIPPED_BIRCH_WOOD, Blocks.STRIPPED_BIRCH_LOG);
127
		this.woodFromLogs(Blocks.STRIPPED_DARK_OAK_WOOD, Blocks.STRIPPED_DARK_OAK_LOG);
128
		this.woodFromLogs(Blocks.STRIPPED_PALE_OAK_WOOD, Blocks.STRIPPED_PALE_OAK_LOG);
129
		this.woodFromLogs(Blocks.STRIPPED_POPLAR_WOOD, Blocks.STRIPPED_POPLAR_LOG);
130
		this.woodFromLogs(Blocks.STRIPPED_JUNGLE_WOOD, Blocks.STRIPPED_JUNGLE_LOG);
131
		this.woodFromLogs(Blocks.STRIPPED_OAK_WOOD, Blocks.STRIPPED_OAK_LOG);
132
		this.woodFromLogs(Blocks.STRIPPED_SPRUCE_WOOD, Blocks.STRIPPED_SPRUCE_LOG);
133
		this.woodFromLogs(Blocks.STRIPPED_CRIMSON_HYPHAE, Blocks.STRIPPED_CRIMSON_STEM);
134
		this.woodFromLogs(Blocks.STRIPPED_WARPED_HYPHAE, Blocks.STRIPPED_WARPED_STEM);
135
		this.woodFromLogs(Blocks.STRIPPED_MANGROVE_WOOD, Blocks.STRIPPED_MANGROVE_LOG);
136
		this.woodenBoat(Items.ACACIA_BOAT, Blocks.ACACIA_PLANKS);
137
		this.woodenBoat(Items.BIRCH_BOAT, Blocks.BIRCH_PLANKS);
138
		this.woodenBoat(Items.DARK_OAK_BOAT, Blocks.DARK_OAK_PLANKS);
139
		this.woodenBoat(Items.PALE_OAK_BOAT, Blocks.PALE_OAK_PLANKS);
140
		this.woodenBoat(Items.JUNGLE_BOAT, Blocks.JUNGLE_PLANKS);
141
		this.woodenBoat(Items.OAK_BOAT, Blocks.OAK_PLANKS);
142
		this.woodenBoat(Items.SPRUCE_BOAT, Blocks.SPRUCE_PLANKS);
143
		this.woodenBoat(Items.MANGROVE_BOAT, Blocks.MANGROVE_PLANKS);
144
		this.woodenBoat(Items.POPLAR_BOAT, Blocks.POPLAR_PLANKS);
145
		this.shelf(Blocks.ACACIA_SHELF, Items.STRIPPED_ACACIA_LOG);
146
		this.shelf(Blocks.BAMBOO_SHELF, Items.STRIPPED_BAMBOO_BLOCK);
147
		this.shelf(Blocks.BIRCH_SHELF, Items.STRIPPED_BIRCH_LOG);
148
		this.shelf(Blocks.CHERRY_SHELF, Items.STRIPPED_CHERRY_LOG);
149
		this.shelf(Blocks.CRIMSON_SHELF, Items.STRIPPED_CRIMSON_STEM);
150
		this.shelf(Blocks.DARK_OAK_SHELF, Items.STRIPPED_DARK_OAK_LOG);
151
		this.shelf(Blocks.JUNGLE_SHELF, Items.STRIPPED_JUNGLE_LOG);
152
		this.shelf(Blocks.MANGROVE_SHELF, Items.STRIPPED_MANGROVE_LOG);
153
		this.shelf(Blocks.POPLAR_SHELF, Items.STRIPPED_POPLAR_LOG);
154
		this.shelf(Blocks.OAK_SHELF, Items.STRIPPED_OAK_LOG);
155
		this.shelf(Blocks.PALE_OAK_SHELF, Items.STRIPPED_PALE_OAK_LOG);
156
		this.shelf(Blocks.SPRUCE_SHELF, Items.STRIPPED_SPRUCE_LOG);
157
		this.shelf(Blocks.WARPED_SHELF, Items.STRIPPED_WARPED_STEM);
158
		List<Item> dyes = Items.DYE.asList();
159
		this.colorItemWithDye(dyes, Items.WOOL.asList(), "wool", RecipeCategory.BUILDING_BLOCKS);
160
		this.colorItemWithDye(dyes, Items.WOOL_STAIRS.asList(), "wool_stairs", RecipeCategory.BUILDING_BLOCKS);
161
		this.colorItemWithDye(dyes, Items.WOOL_SLAB.asList(), "wool_slabs", RecipeCategory.BUILDING_BLOCKS);
162
		this.colorItemWithDye(dyes, Items.BED.asList(), "bed_dye", RecipeCategory.DECORATIONS);
163
		this.colorItemWithDye(dyes, Items.CARPET.asList(), "carpet_dye", RecipeCategory.DECORATIONS);
164
		this.colorItemWithDye(dyes, Items.HARNESS.asList(), "harness_dye", RecipeCategory.COMBAT);
165
		this.colorItemWithDye(dyes, Items.CUSHION.asList(), "cushion_dye", RecipeCategory.DECORATIONS);
166
		ColorCollection.zipApply(Items.BED, Blocks.WOOL, (x$0, x$1) -> this.bedFromPlanksAndWool(x$0, x$1));
167
		ColorCollection.zipApply(Items.BANNER, Blocks.WOOL, (x$0, x$1) -> this.banner(x$0, x$1));
168
		this.carpet(Blocks.MOSS_CARPET, Blocks.MOSS_BLOCK);
169
		this.carpet(Blocks.PALE_MOSS_CARPET, Blocks.PALE_MOSS_BLOCK);
170
		ColorCollection.zipApply(Items.HARNESS, Blocks.WOOL, (x$0, x$1) -> this.harness(x$0, x$1));
171
		ColorCollection.zipApply(Blocks.STAINED_GLASS, Items.DYE, (x$0, x$1) -> this.stainedGlassFromGlassAndDye(x$0, x$1));
172
		ColorCollection.zipApply(Blocks.STAINED_GLASS_PANE, Blocks.STAINED_GLASS, (x$0, x$1) -> this.stainedGlassPaneFromStainedGlass(x$0, x$1));
173
		ColorCollection.zipApply(Blocks.STAINED_GLASS_PANE, Items.DYE, (x$0, x$1) -> this.stainedGlassPaneFromGlassPaneAndDye(x$0, x$1));
174
		ColorCollection.zipApply(Blocks.DYED_TERRACOTTA, Items.DYE, (x$0, x$1) -> this.coloredTerracottaFromTerracottaAndDye(x$0, x$1));
175
		ColorCollection.zipApply(Blocks.CONCRETE_POWDER, Items.DYE, (x$0, x$1) -> this.concretePowder(x$0, x$1));
176
		this.dryGhast(Blocks.DRIED_GHAST);
177
		this.shaped(RecipeCategory.DECORATIONS, Items.CANDLE)
178
			.define('S', Items.STRING)
179
			.define('H', Items.HONEYCOMB)
180
			.pattern("S")
181
			.pattern("H")
182
			.unlockedBy("has_string", this.has(Items.STRING))
183
			.unlockedBy("has_honeycomb", this.has(Items.HONEYCOMB))
184
			.save(this.output);
185
		ColorCollection.zipApply(Blocks.DYED_CANDLE, Items.DYE, (x$0, x$1) -> this.candle(x$0, x$1));
186
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.PACKED_MUD, 1)
187
			.requires(Blocks.MUD)
188
			.requires(Items.WHEAT)
189
			.unlockedBy("has_mud", this.has(Blocks.MUD))
190
			.save(this.output);
191
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.MUD_BRICKS, 4)
192
			.define('#', Blocks.PACKED_MUD)
193
			.pattern("##")
194
			.pattern("##")
195
			.unlockedBy("has_packed_mud", this.has(Blocks.PACKED_MUD))
196
			.save(this.output);
197
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.MUDDY_MANGROVE_ROOTS, 1)
198
			.requires(Blocks.MUD)
199
			.requires(Items.MANGROVE_ROOTS)
200
			.unlockedBy("has_mangrove_roots", this.has(Blocks.MANGROVE_ROOTS))
201
			.save(this.output);
202
		this.shaped(RecipeCategory.TRANSPORTATION, Blocks.ACTIVATOR_RAIL, 6)
203
			.define('#', Blocks.REDSTONE_TORCH)
204
			.define('S', Items.STICK)
205
			.define('X', Items.IRON_INGOT)
206
			.pattern("XSX")
207
			.pattern("X#X")
208
			.pattern("XSX")
209
			.unlockedBy("has_rail", this.has(Blocks.RAIL))
210
			.save(this.output);
211
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.ANDESITE, 2)
212
			.requires(Blocks.DIORITE)
213
			.requires(Blocks.COBBLESTONE)
214
			.unlockedBy("has_stone", this.has(Blocks.DIORITE))
215
			.save(this.output);
216
		this.shaped(RecipeCategory.DECORATIONS, Blocks.ANVIL)
217
			.define('I', Blocks.IRON_BLOCK)
218
			.define('i', Items.IRON_INGOT)
219
			.pattern("III")
220
			.pattern(" i ")
221
			.pattern("iii")
222
			.unlockedBy("has_iron_block", this.has(Blocks.IRON_BLOCK))
223
			.save(this.output);
224
		this.shaped(RecipeCategory.DECORATIONS, Items.ARMOR_STAND)
225
			.define('/', Items.STICK)
226
			.define('_', Blocks.SMOOTH_STONE_SLAB)
227
			.pattern("///")
228
			.pattern(" / ")
229
			.pattern("/_/")
230
			.unlockedBy("has_stone_slab", this.has(Blocks.SMOOTH_STONE_SLAB))
231
			.save(this.output);
232
		this.shaped(RecipeCategory.COMBAT, Items.ARROW, 4)
233
			.define('#', Items.STICK)
234
			.define('X', Items.FLINT)
235
			.define('Y', Items.FEATHER)
236
			.pattern("X")
237
			.pattern("#")
238
			.pattern("Y")
239
			.unlockedBy("has_feather", this.has(Items.FEATHER))
240
			.unlockedBy("has_flint", this.has(Items.FLINT))
241
			.save(this.output);
242
		this.shaped(RecipeCategory.DECORATIONS, Blocks.BARREL, 1)
243
			.define('P', ItemTags.PLANKS)
244
			.define('S', ItemTags.WOODEN_SLABS)
245
			.pattern("PSP")
246
			.pattern("P P")
247
			.pattern("PSP")
248
			.unlockedBy("has_planks", this.has(ItemTags.PLANKS))
249
			.unlockedBy("has_wood_slab", this.has(ItemTags.WOODEN_SLABS))
250
			.save(this.output);
251
		this.shaped(RecipeCategory.MISC, Blocks.BEACON)
252
			.define('S', Items.NETHER_STAR)
253
			.define('G', Blocks.GLASS)
254
			.define('O', Blocks.OBSIDIAN)
255
			.pattern("GGG")
256
			.pattern("GSG")
257
			.pattern("OOO")
258
			.unlockedBy("has_nether_star", this.has(Items.NETHER_STAR))
259
			.save(this.output);
260
		this.shaped(RecipeCategory.DECORATIONS, Blocks.BEEHIVE)
261
			.define('P', ItemTags.PLANKS)
262
			.define('H', Items.HONEYCOMB)
263
			.pattern("PPP")
264
			.pattern("HHH")
265
			.pattern("PPP")
266
			.unlockedBy("has_honeycomb", this.has(Items.HONEYCOMB))
267
			.save(this.output);
268
		this.shapeless(RecipeCategory.FOOD, Items.BEETROOT_SOUP)
269
			.requires(Items.BOWL)
270
			.requires(Items.BEETROOT, 6)
271
			.unlockedBy("has_beetroot", this.has(Items.BEETROOT))
272
			.save(this.output);
273
		this.shapeless(RecipeCategory.MISC, Items.DYE.black())
274
			.requires(Items.INK_SAC)
275
			.group("black_dye")
276
			.unlockedBy("has_ink_sac", this.has(Items.INK_SAC))
277
			.save(this.output);
278
		this.oneToOneConversionRecipe(Items.DYE.black(), Blocks.WITHER_ROSE, "black_dye");
279
		this.shapeless(RecipeCategory.BREWING, Items.BLAZE_POWDER, 2)
280
			.requires(Items.BLAZE_ROD)
281
			.unlockedBy("has_blaze_rod", this.has(Items.BLAZE_ROD))
282
			.save(this.output);
283
		this.shapeless(RecipeCategory.MISC, Items.DYE.blue())
284
			.requires(Items.LAPIS_LAZULI)
285
			.group("blue_dye")
286
			.unlockedBy("has_lapis_lazuli", this.has(Items.LAPIS_LAZULI))
287
			.save(this.output);
288
		this.oneToOneConversionRecipe(Items.DYE.blue(), Blocks.CORNFLOWER, "blue_dye");
289
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.BLUE_ICE, Blocks.PACKED_ICE);
290
		this.shapeless(RecipeCategory.MISC, Items.BONE_MEAL, 3).requires(Items.BONE).group("bonemeal").unlockedBy("has_bone", this.has(Items.BONE)).save(this.output);
291
		this.nineBlockStorageRecipesRecipesWithCustomUnpacking(
292
			RecipeCategory.MISC, Items.BONE_MEAL, RecipeCategory.BUILDING_BLOCKS, Items.BONE_BLOCK, "bone_meal_from_bone_block", "bonemeal"
293
		);
294
		this.shapeless(RecipeCategory.MISC, Items.BOOK)
295
			.requires(Items.PAPER, 3)
296
			.requires(Items.LEATHER)
297
			.unlockedBy("has_paper", this.has(Items.PAPER))
298
			.save(this.output);
299
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.BOOKSHELF)
300
			.define('#', ItemTags.PLANKS)
301
			.define('X', Items.BOOK)
302
			.pattern("###")
303
			.pattern("XXX")
304
			.pattern("###")
305
			.unlockedBy("has_book", this.has(Items.BOOK))
306
			.save(this.output);
307
		this.shaped(RecipeCategory.COMBAT, Items.BOW)
308
			.define('#', Items.STICK)
309
			.define('X', Items.STRING)
310
			.pattern(" #X")
311
			.pattern("# X")
312
			.pattern(" #X")
313
			.unlockedBy("has_string", this.has(Items.STRING))
314
			.save(this.output);
315
		this.shaped(RecipeCategory.MISC, Items.BOWL, 4)
316
			.define('#', ItemTags.PLANKS)
317
			.pattern("# #")
318
			.pattern(" # ")
319
			.unlockedBy("has_mushroom", this.has(ItemTags.MUSHROOMS))
320
			.unlockedBy("has_mushroom_stew", this.has(Items.MUSHROOM_STEW))
321
			.save(this.output);
322
		this.shaped(RecipeCategory.FOOD, Items.BREAD).define('#', Items.WHEAT).pattern("###").unlockedBy("has_wheat", this.has(Items.WHEAT)).save(this.output);
323
		this.shaped(RecipeCategory.BREWING, Blocks.BREWING_STAND)
324
			.define('B', Items.BLAZE_ROD)
325
			.define('#', ItemTags.STONE_CRAFTING_MATERIALS)
326
			.pattern(" B ")
327
			.pattern("###")
328
			.unlockedBy("has_blaze_rod", this.has(Items.BLAZE_ROD))
329
			.save(this.output);
330
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.BRICKS)
331
			.define('#', Items.BRICK)
332
			.pattern("##")
333
			.pattern("##")
334
			.unlockedBy("has_brick", this.has(Items.BRICK))
335
			.save(this.output);
336
		this.shapeless(RecipeCategory.MISC, Items.DYE.brown())
337
			.requires(Items.COCOA_BEANS)
338
			.group("brown_dye")
339
			.unlockedBy("has_cocoa_beans", this.has(Items.COCOA_BEANS))
340
			.save(this.output);
341
		this.shaped(RecipeCategory.MISC, Items.BUCKET)
342
			.define('#', Items.IRON_INGOT)
343
			.pattern("# #")
344
			.pattern(" # ")
345
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
346
			.save(this.output);
347
		this.shaped(RecipeCategory.FOOD, Blocks.CAKE)
348
			.define('A', Items.MILK_BUCKET)
349
			.define('B', Items.SUGAR)
350
			.define('C', Items.WHEAT)
351
			.define('E', ItemTags.EGGS)
352
			.pattern("AAA")
353
			.pattern("BEB")
354
			.pattern("CCC")
355
			.unlockedBy("has_egg", this.has(ItemTags.EGGS))
356
			.save(this.output);
357
		this.shaped(RecipeCategory.DECORATIONS, Blocks.CAMPFIRE)
358
			.define('L', ItemTags.LOGS)
359
			.define('S', Items.STICK)
360
			.define('C', ItemTags.COALS)
361
			.pattern(" S ")
362
			.pattern("SCS")
363
			.pattern("LLL")
364
			.unlockedBy("has_stick", this.has(Items.STICK))
365
			.unlockedBy("has_coal", this.has(ItemTags.COALS))
366
			.save(this.output);
367
		this.shaped(RecipeCategory.TRANSPORTATION, Items.CARROT_ON_A_STICK)
368
			.define('#', Items.FISHING_ROD)
369
			.define('X', Items.CARROT)
370
			.pattern("# ")
371
			.pattern(" X")
372
			.unlockedBy("has_carrot", this.has(Items.CARROT))
373
			.save(this.output);
374
		this.shaped(RecipeCategory.TRANSPORTATION, Items.WARPED_FUNGUS_ON_A_STICK)
375
			.define('#', Items.FISHING_ROD)
376
			.define('X', Items.WARPED_FUNGUS)
377
			.pattern("# ")
378
			.pattern(" X")
379
			.unlockedBy("has_warped_fungus", this.has(Items.WARPED_FUNGUS))
380
			.save(this.output);
381
		this.shaped(RecipeCategory.BREWING, Blocks.CAULDRON)
382
			.define('#', Items.IRON_INGOT)
383
			.pattern("# #")
384
			.pattern("# #")
385
			.pattern("###")
386
			.unlockedBy("has_water_bucket", this.has(Items.WATER_BUCKET))
387
			.save(this.output);
388
		this.shaped(RecipeCategory.DECORATIONS, Blocks.COMPOSTER)
389
			.define('#', ItemTags.WOODEN_SLABS)
390
			.pattern("# #")
391
			.pattern("# #")
392
			.pattern("###")
393
			.unlockedBy("has_wood_slab", this.has(ItemTags.WOODEN_SLABS))
394
			.save(this.output);
395
		this.shaped(RecipeCategory.DECORATIONS, Blocks.CHEST)
396
			.define('#', ItemTags.PLANKS)
397
			.pattern("###")
398
			.pattern("# #")
399
			.pattern("###")
400
			.unlockedBy(
401
				"has_lots_of_items",
402
				CriteriaTriggers.INVENTORY_CHANGED
403
					.createCriterion(
404
						new InventoryChangeTrigger.TriggerInstance(
405
							Optional.empty(),
406
							new InventoryChangeTrigger.TriggerInstance.Slots(MinMaxBounds.Ints.atLeast(10), MinMaxBounds.Ints.ANY, MinMaxBounds.Ints.ANY),
407
							List.of()
408
						)
409
					)
410
			)
411
			.save(this.output);
412
		this.shaped(RecipeCategory.DECORATIONS, Blocks.COPPER_CHEST.weathering().unaffected())
413
			.define('#', Items.COPPER_INGOT)
414
			.define('X', Items.CHEST)
415
			.pattern("###")
416
			.pattern("#X#")
417
			.pattern("###")
418
			.unlockedBy("has_copper_chest", this.has(Items.COPPER_CHEST.weathering().unaffected()))
419
			.save(this.output);
420
		this.shapeless(RecipeCategory.TRANSPORTATION, Items.CHEST_MINECART)
421
			.requires(Blocks.CHEST)
422
			.requires(Items.MINECART)
423
			.unlockedBy("has_minecart", this.has(Items.MINECART))
424
			.save(this.output);
425
		this.chestBoat(Items.ACACIA_CHEST_BOAT, Items.ACACIA_BOAT);
426
		this.chestBoat(Items.BIRCH_CHEST_BOAT, Items.BIRCH_BOAT);
427
		this.chestBoat(Items.DARK_OAK_CHEST_BOAT, Items.DARK_OAK_BOAT);
428
		this.chestBoat(Items.PALE_OAK_CHEST_BOAT, Items.PALE_OAK_BOAT);
429
		this.chestBoat(Items.JUNGLE_CHEST_BOAT, Items.JUNGLE_BOAT);
430
		this.chestBoat(Items.OAK_CHEST_BOAT, Items.OAK_BOAT);
431
		this.chestBoat(Items.SPRUCE_CHEST_BOAT, Items.SPRUCE_BOAT);
432
		this.chestBoat(Items.MANGROVE_CHEST_BOAT, Items.MANGROVE_BOAT);
433
		this.chestBoat(Items.POPLAR_CHEST_BOAT, Items.POPLAR_BOAT);
434
		this.chiseledBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_QUARTZ_BLOCK, Ingredient.of(Blocks.QUARTZ_SLAB))
435
			.unlockedBy("has_chiseled_quartz_block", this.has(Blocks.CHISELED_QUARTZ_BLOCK))
436
			.unlockedBy("has_quartz_block", this.has(Blocks.QUARTZ_BLOCK))
437
			.unlockedBy("has_quartz_pillar", this.has(Blocks.QUARTZ_PILLAR))
438
			.save(this.output);
439
		this.chiseledBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_STONE_BRICKS, Ingredient.of(Blocks.STONE_BRICK_SLAB))
440
			.unlockedBy("has_tag", this.has(ItemTags.STONE_BRICKS))
441
			.save(this.output);
442
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.CLAY, Items.CLAY_BALL);
443
		this.shaped(RecipeCategory.TOOLS, Items.CLOCK)
444
			.define('#', Items.GOLD_INGOT)
445
			.define('X', Items.REDSTONE)
446
			.pattern(" # ")
447
			.pattern("#X#")
448
			.pattern(" # ")
449
			.unlockedBy("has_redstone", this.has(Items.REDSTONE))
450
			.save(this.output);
451
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.COAL, RecipeCategory.BUILDING_BLOCKS, Items.COAL_BLOCK);
452
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.COARSE_DIRT, 4)
453
			.define('D', Blocks.DIRT)
454
			.define('G', Blocks.GRAVEL)
455
			.pattern("DG")
456
			.pattern("GD")
457
			.unlockedBy("has_gravel", this.has(Blocks.GRAVEL))
458
			.save(this.output);
459
		this.shaped(RecipeCategory.REDSTONE, Blocks.COMPARATOR)
460
			.define('#', Blocks.REDSTONE_TORCH)
461
			.define('X', Items.QUARTZ)
462
			.define('I', Blocks.STONE)
463
			.pattern(" # ")
464
			.pattern("#X#")
465
			.pattern("III")
466
			.unlockedBy("has_quartz", this.has(Items.QUARTZ))
467
			.save(this.output);
468
		this.shaped(RecipeCategory.TOOLS, Items.COMPASS)
469
			.define('#', Items.IRON_INGOT)
470
			.define('X', Items.REDSTONE)
471
			.pattern(" # ")
472
			.pattern("#X#")
473
			.pattern(" # ")
474
			.unlockedBy("has_redstone", this.has(Items.REDSTONE))
475
			.save(this.output);
476
		this.shaped(RecipeCategory.FOOD, Items.COOKIE, 8)
477
			.define('#', Items.WHEAT)
478
			.define('X', Items.COCOA_BEANS)
479
			.pattern("#X#")
480
			.unlockedBy("has_cocoa", this.has(Items.COCOA_BEANS))
481
			.save(this.output);
482
		this.shaped(RecipeCategory.DECORATIONS, Blocks.CRAFTING_TABLE)
483
			.define('#', ItemTags.PLANKS)
484
			.pattern("##")
485
			.pattern("##")
486
			.unlockedBy("unlock_right_away", PlayerTrigger.TriggerInstance.tick())
487
			.showNotification(false)
488
			.save(this.output);
489
		this.shaped(RecipeCategory.COMBAT, Items.CROSSBOW)
490
			.define('~', Items.STRING)
491
			.define('#', Items.STICK)
492
			.define('&', Items.IRON_INGOT)
493
			.define('$', Blocks.TRIPWIRE_HOOK)
494
			.pattern("#&#")
495
			.pattern("~$~")
496
			.pattern(" # ")
497
			.unlockedBy("has_string", this.has(Items.STRING))
498
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
499
			.unlockedBy("has_tripwire_hook", this.has(Blocks.TRIPWIRE_HOOK))
500
			.save(this.output);
501
		this.shaped(RecipeCategory.DECORATIONS, Blocks.LOOM)
502
			.define('#', ItemTags.PLANKS)
503
			.define('@', Items.STRING)
504
			.pattern("@@")
505
			.pattern("##")
506
			.unlockedBy("has_string", this.has(Items.STRING))
507
			.save(this.output);
508
		this.chiseledBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_RED_SANDSTONE, Ingredient.of(Blocks.RED_SANDSTONE_SLAB))
509
			.unlockedBy("has_red_sandstone", this.has(Blocks.RED_SANDSTONE))
510
			.unlockedBy("has_chiseled_red_sandstone", this.has(Blocks.CHISELED_RED_SANDSTONE))
511
			.unlockedBy("has_cut_red_sandstone", this.has(Blocks.CUT_RED_SANDSTONE))
512
			.save(this.output);
513
		this.chiseled(RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_SANDSTONE, Blocks.SANDSTONE_SLAB);
514
		this.nineBlockStorageRecipesRecipesWithCustomUnpacking(
515
			RecipeCategory.MISC,
516
			Items.COPPER_INGOT,
517
			RecipeCategory.BUILDING_BLOCKS,
518
			Items.COPPER_BLOCK.weathering().unaffected(),
519
			getSimpleRecipeName(Items.COPPER_INGOT),
520
			getItemName(Items.COPPER_INGOT)
521
		);
522
		this.shapeless(RecipeCategory.MISC, Items.COPPER_INGOT, 9)
523
			.requires(Blocks.COPPER_BLOCK.waxed().unaffected())
524
			.group(getItemName(Items.COPPER_INGOT))
525
			.unlockedBy(getHasName(Blocks.COPPER_BLOCK.waxed().unaffected()), this.has(Blocks.COPPER_BLOCK.waxed().unaffected()))
526
			.save(this.output, getConversionRecipeName(Items.COPPER_INGOT, Blocks.COPPER_BLOCK.waxed().unaffected()));
527
		this.waxRecipes(FeatureFlagSet.of(FeatureFlags.VANILLA));
528
		this.shapeless(RecipeCategory.MISC, Items.DYE.cyan(), 2)
529
			.requires(Items.DYE.blue())
530
			.requires(Items.DYE.green())
531
			.group("cyan_dye")
532
			.unlockedBy("has_green_dye", this.has(Items.DYE.green()))
533
			.unlockedBy("has_blue_dye", this.has(Items.DYE.blue()))
534
			.save(this.output);
535
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.DARK_PRISMARINE)
536
			.define('S', Items.PRISMARINE_SHARD)
537
			.define('I', Items.DYE.black())
538
			.pattern("SSS")
539
			.pattern("SIS")
540
			.pattern("SSS")
541
			.unlockedBy("has_prismarine_shard", this.has(Items.PRISMARINE_SHARD))
542
			.save(this.output);
543
		this.shaped(RecipeCategory.REDSTONE, Blocks.DAYLIGHT_DETECTOR)
544
			.define('Q', Items.QUARTZ)
545
			.define('G', Blocks.GLASS)
546
			.define('W', ItemTags.WOODEN_SLABS)
547
			.pattern("GGG")
548
			.pattern("QQQ")
549
			.pattern("WWW")
550
			.unlockedBy("has_quartz", this.has(Items.QUARTZ))
551
			.save(this.output);
552
		this.shaped(RecipeCategory.TRANSPORTATION, Blocks.DETECTOR_RAIL, 6)
553
			.define('R', Items.REDSTONE)
554
			.define('#', Blocks.STONE_PRESSURE_PLATE)
555
			.define('X', Items.IRON_INGOT)
556
			.pattern("X X")
557
			.pattern("X#X")
558
			.pattern("XRX")
559
			.unlockedBy("has_rail", this.has(Blocks.RAIL))
560
			.save(this.output);
561
		this.shaped(RecipeCategory.TOOLS, Items.DIAMOND_AXE)
562
			.define('#', Items.STICK)
563
			.define('X', ItemTags.DIAMOND_TOOL_MATERIALS)
564
			.pattern("XX")
565
			.pattern("X#")
566
			.pattern(" #")
567
			.unlockedBy("has_diamond", this.has(ItemTags.DIAMOND_TOOL_MATERIALS))
568
			.save(this.output);
569
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.DIAMOND, RecipeCategory.BUILDING_BLOCKS, Items.DIAMOND_BLOCK);
570
		this.shaped(RecipeCategory.COMBAT, Items.DIAMOND_BOOTS)
571
			.define('X', Items.DIAMOND)
572
			.pattern("X X")
573
			.pattern("X X")
574
			.unlockedBy("has_diamond", this.has(Items.DIAMOND))
575
			.save(this.output);
576
		this.shaped(RecipeCategory.COMBAT, Items.DIAMOND_CHESTPLATE)
577
			.define('X', Items.DIAMOND)
578
			.pattern("X X")
579
			.pattern("XXX")
580
			.pattern("XXX")
581
			.unlockedBy("has_diamond", this.has(Items.DIAMOND))
582
			.save(this.output);
583
		this.shaped(RecipeCategory.COMBAT, Items.DIAMOND_HELMET)
584
			.define('X', Items.DIAMOND)
585
			.pattern("XXX")
586
			.pattern("X X")
587
			.unlockedBy("has_diamond", this.has(Items.DIAMOND))
588
			.save(this.output);
589
		this.shaped(RecipeCategory.TOOLS, Items.DIAMOND_HOE)
590
			.define('#', Items.STICK)
591
			.define('X', ItemTags.DIAMOND_TOOL_MATERIALS)
592
			.pattern("XX")
593
			.pattern(" #")
594
			.pattern(" #")
595
			.unlockedBy("has_diamond", this.has(ItemTags.DIAMOND_TOOL_MATERIALS))
596
			.save(this.output);
597
		this.shaped(RecipeCategory.COMBAT, Items.DIAMOND_LEGGINGS)
598
			.define('X', Items.DIAMOND)
599
			.pattern("XXX")
600
			.pattern("X X")
601
			.pattern("X X")
602
			.unlockedBy("has_diamond", this.has(Items.DIAMOND))
603
			.save(this.output);
604
		this.shaped(RecipeCategory.TOOLS, Items.DIAMOND_PICKAXE)
605
			.define('#', Items.STICK)
606
			.define('X', ItemTags.DIAMOND_TOOL_MATERIALS)
607
			.pattern("XXX")
608
			.pattern(" # ")
609
			.pattern(" # ")
610
			.unlockedBy("has_diamond", this.has(ItemTags.DIAMOND_TOOL_MATERIALS))
611
			.save(this.output);
612
		this.shaped(RecipeCategory.TOOLS, Items.DIAMOND_SHOVEL)
613
			.define('#', Items.STICK)
614
			.define('X', ItemTags.DIAMOND_TOOL_MATERIALS)
615
			.pattern("X")
616
			.pattern("#")
617
			.pattern("#")
618
			.unlockedBy("has_diamond", this.has(ItemTags.DIAMOND_TOOL_MATERIALS))
619
			.save(this.output);
620
		this.shaped(RecipeCategory.COMBAT, Items.DIAMOND_SWORD)
621
			.define('#', Items.STICK)
622
			.define('X', ItemTags.DIAMOND_TOOL_MATERIALS)
623
			.pattern("X")
624
			.pattern("X")
625
			.pattern("#")
626
			.unlockedBy("has_diamond", this.has(ItemTags.DIAMOND_TOOL_MATERIALS))
627
			.save(this.output);
628
		this.shaped(RecipeCategory.COMBAT, Items.DIAMOND_SPEAR)
629
			.define('#', Items.STICK)
630
			.define('X', ItemTags.DIAMOND_TOOL_MATERIALS)
631
			.pattern("  X")
632
			.pattern(" # ")
633
			.pattern("#  ")
634
			.unlockedBy("has_diamond", this.has(ItemTags.DIAMOND_TOOL_MATERIALS))
635
			.save(this.output);
636
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.DIORITE, 2)
637
			.define('Q', Items.QUARTZ)
638
			.define('C', Blocks.COBBLESTONE)
639
			.pattern("CQ")
640
			.pattern("QC")
641
			.unlockedBy("has_quartz", this.has(Items.QUARTZ))
642
			.save(this.output);
643
		this.shaped(RecipeCategory.REDSTONE, Blocks.DISPENSER)
644
			.define('R', Items.REDSTONE)
645
			.define('#', Blocks.COBBLESTONE)
646
			.define('X', Items.BOW)
647
			.pattern("###")
648
			.pattern("#X#")
649
			.pattern("#R#")
650
			.unlockedBy("has_bow", this.has(Items.BOW))
651
			.save(this.output);
652
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.DRIPSTONE_BLOCK, Items.POINTED_DRIPSTONE);
653
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.SULFUR, 1)
654
			.define('#', Blocks.SULFUR_SPIKE)
655
			.pattern("##")
656
			.pattern("##")
657
			.unlockedBy(getHasName(Blocks.SULFUR_SPIKE), this.has(Blocks.SULFUR_SPIKE))
658
			.save(this.output, "sulfur_from_sulfur_spikes");
659
		this.shaped(RecipeCategory.REDSTONE, Blocks.DROPPER)
660
			.define('R', Items.REDSTONE)
661
			.define('#', Blocks.COBBLESTONE)
662
			.pattern("###")
663
			.pattern("# #")
664
			.pattern("#R#")
665
			.unlockedBy("has_redstone", this.has(Items.REDSTONE))
666
			.save(this.output);
667
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.EMERALD, RecipeCategory.BUILDING_BLOCKS, Items.EMERALD_BLOCK);
668
		this.shaped(RecipeCategory.DECORATIONS, Blocks.ENCHANTING_TABLE)
669
			.define('B', Items.BOOK)
670
			.define('#', Blocks.OBSIDIAN)
671
			.define('D', Items.DIAMOND)
672
			.pattern(" B ")
673
			.pattern("D#D")
674
			.pattern("###")
675
			.unlockedBy("has_obsidian", this.has(Blocks.OBSIDIAN))
676
			.save(this.output);
677
		this.shaped(RecipeCategory.DECORATIONS, Blocks.ENDER_CHEST)
678
			.define('#', Blocks.OBSIDIAN)
679
			.define('E', Items.ENDER_EYE)
680
			.pattern("###")
681
			.pattern("#E#")
682
			.pattern("###")
683
			.unlockedBy("has_ender_eye", this.has(Items.ENDER_EYE))
684
			.save(this.output);
685
		this.shapeless(RecipeCategory.MISC, Items.ENDER_EYE)
686
			.requires(Items.ENDER_PEARL)
687
			.requires(Items.BLAZE_POWDER)
688
			.unlockedBy("has_blaze_powder", this.has(Items.BLAZE_POWDER))
689
			.save(this.output);
690
		this.shaped(RecipeCategory.DECORATIONS, Items.END_CRYSTAL)
691
			.define('T', Items.GHAST_TEAR)
692
			.define('E', Items.ENDER_EYE)
693
			.define('G', Blocks.GLASS)
694
			.pattern("GGG")
695
			.pattern("GEG")
696
			.pattern("GTG")
697
			.unlockedBy("has_ender_eye", this.has(Items.ENDER_EYE))
698
			.save(this.output);
699
		this.shaped(RecipeCategory.DECORATIONS, Blocks.END_ROD, 4)
700
			.define('#', Items.POPPED_CHORUS_FRUIT)
701
			.define('/', Items.BLAZE_ROD)
702
			.pattern("/")
703
			.pattern("#")
704
			.unlockedBy("has_chorus_fruit_popped", this.has(Items.POPPED_CHORUS_FRUIT))
705
			.save(this.output);
706
		this.shapeless(RecipeCategory.BREWING, Items.FERMENTED_SPIDER_EYE)
707
			.requires(Items.SPIDER_EYE)
708
			.requires(Blocks.BROWN_MUSHROOM)
709
			.requires(Items.SUGAR)
710
			.unlockedBy("has_spider_eye", this.has(Items.SPIDER_EYE))
711
			.save(this.output);
712
		this.shapeless(RecipeCategory.MISC, Items.FIRE_CHARGE, 3)
713
			.requires(Items.GUNPOWDER)
714
			.requires(Items.BLAZE_POWDER)
715
			.requires(Ingredient.of(Items.COAL, Items.CHARCOAL))
716
			.unlockedBy("has_blaze_powder", this.has(Items.BLAZE_POWDER))
717
			.save(this.output);
718
		this.shapeless(RecipeCategory.MISC, Items.FIREWORK_ROCKET, 3)
719
			.requires(Items.GUNPOWDER)
720
			.requires(Items.PAPER)
721
			.unlockedBy("has_gunpowder", this.has(Items.GUNPOWDER))
722
			.save(this.output, "firework_rocket_simple");
723
		this.shaped(RecipeCategory.TOOLS, Items.FISHING_ROD)
724
			.define('#', Items.STICK)
725
			.define('X', Items.STRING)
726
			.pattern("  #")
727
			.pattern(" #X")
728
			.pattern("# X")
729
			.unlockedBy("has_string", this.has(Items.STRING))
730
			.save(this.output);
731
		this.shapeless(RecipeCategory.TOOLS, Items.FLINT_AND_STEEL)
732
			.requires(Items.IRON_INGOT)
733
			.requires(Items.FLINT)
734
			.unlockedBy("has_flint", this.has(Items.FLINT))
735
			.unlockedBy("has_obsidian", this.has(Blocks.OBSIDIAN))
736
			.save(this.output);
737
		this.shaped(RecipeCategory.DECORATIONS, Blocks.FLOWER_POT)
738
			.define('#', Items.BRICK)
739
			.pattern("# #")
740
			.pattern(" # ")
741
			.unlockedBy("has_brick", this.has(Items.BRICK))
742
			.save(this.output);
743
		this.shaped(RecipeCategory.DECORATIONS, Blocks.FURNACE)
744
			.define('#', ItemTags.STONE_CRAFTING_MATERIALS)
745
			.pattern("###")
746
			.pattern("# #")
747
			.pattern("###")
748
			.unlockedBy("has_cobblestone", this.has(ItemTags.STONE_CRAFTING_MATERIALS))
749
			.save(this.output);
750
		this.shapeless(RecipeCategory.TRANSPORTATION, Items.FURNACE_MINECART)
751
			.requires(Blocks.FURNACE)
752
			.requires(Items.MINECART)
753
			.unlockedBy("has_minecart", this.has(Items.MINECART))
754
			.save(this.output);
755
		this.shaped(RecipeCategory.BREWING, Items.GLASS_BOTTLE, 3)
756
			.define('#', Blocks.GLASS)
757
			.pattern("# #")
758
			.pattern(" # ")
759
			.unlockedBy("has_glass", this.has(Blocks.GLASS))
760
			.save(this.output);
761
		this.shaped(RecipeCategory.DECORATIONS, Blocks.GLASS_PANE, 16)
762
			.define('#', Blocks.GLASS)
763
			.pattern("###")
764
			.pattern("###")
765
			.unlockedBy("has_glass", this.has(Blocks.GLASS))
766
			.save(this.output);
767
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.GLOWSTONE, Items.GLOWSTONE_DUST);
768
		this.shapeless(RecipeCategory.DECORATIONS, Items.GLOW_ITEM_FRAME)
769
			.requires(Items.ITEM_FRAME)
770
			.requires(Items.GLOW_INK_SAC)
771
			.unlockedBy("has_item_frame", this.has(Items.ITEM_FRAME))
772
			.unlockedBy("has_glow_ink_sac", this.has(Items.GLOW_INK_SAC))
773
			.save(this.output);
774
		this.shaped(RecipeCategory.FOOD, Items.GOLDEN_APPLE)
775
			.define('#', Items.GOLD_INGOT)
776
			.define('X', Items.APPLE)
777
			.pattern("###")
778
			.pattern("#X#")
779
			.pattern("###")
780
			.unlockedBy("has_gold_ingot", this.has(Items.GOLD_INGOT))
781
			.save(this.output);
782
		this.shaped(RecipeCategory.TOOLS, Items.GOLDEN_AXE)
783
			.define('#', Items.STICK)
784
			.define('X', ItemTags.GOLD_TOOL_MATERIALS)
785
			.pattern("XX")
786
			.pattern("X#")
787
			.pattern(" #")
788
			.unlockedBy("has_gold_ingot", this.has(ItemTags.GOLD_TOOL_MATERIALS))
789
			.save(this.output);
790
		this.shaped(RecipeCategory.COMBAT, Items.GOLDEN_BOOTS)
791
			.define('X', Items.GOLD_INGOT)
792
			.pattern("X X")
793
			.pattern("X X")
794
			.unlockedBy("has_gold_ingot", this.has(Items.GOLD_INGOT))
795
			.save(this.output);
796
		this.shaped(RecipeCategory.BREWING, Items.GOLDEN_CARROT)
797
			.define('#', Items.GOLD_NUGGET)
798
			.define('X', Items.CARROT)
799
			.pattern("###")
800
			.pattern("#X#")
801
			.pattern("###")
802
			.unlockedBy("has_gold_nugget", this.has(Items.GOLD_NUGGET))
803
			.save(this.output);
804
		this.shaped(RecipeCategory.COMBAT, Items.GOLDEN_CHESTPLATE)
805
			.define('X', Items.GOLD_INGOT)
806
			.pattern("X X")
807
			.pattern("XXX")
808
			.pattern("XXX")
809
			.unlockedBy("has_gold_ingot", this.has(Items.GOLD_INGOT))
810
			.save(this.output);
811
		this.shaped(RecipeCategory.COMBAT, Items.GOLDEN_HELMET)
812
			.define('X', Items.GOLD_INGOT)
813
			.pattern("XXX")
814
			.pattern("X X")
815
			.unlockedBy("has_gold_ingot", this.has(Items.GOLD_INGOT))
816
			.save(this.output);
817
		this.shaped(RecipeCategory.TOOLS, Items.GOLDEN_HOE)
818
			.define('#', Items.STICK)
819
			.define('X', ItemTags.GOLD_TOOL_MATERIALS)
820
			.pattern("XX")
821
			.pattern(" #")
822
			.pattern(" #")
823
			.unlockedBy("has_gold_ingot", this.has(ItemTags.GOLD_TOOL_MATERIALS))
824
			.save(this.output);
825
		this.shaped(RecipeCategory.COMBAT, Items.GOLDEN_LEGGINGS)
826
			.define('X', Items.GOLD_INGOT)
827
			.pattern("XXX")
828
			.pattern("X X")
829
			.pattern("X X")
830
			.unlockedBy("has_gold_ingot", this.has(Items.GOLD_INGOT))
831
			.save(this.output);
832
		this.shaped(RecipeCategory.TOOLS, Items.GOLDEN_PICKAXE)
833
			.define('#', Items.STICK)
834
			.define('X', ItemTags.GOLD_TOOL_MATERIALS)
835
			.pattern("XXX")
836
			.pattern(" # ")
837
			.pattern(" # ")
838
			.unlockedBy("has_gold_ingot", this.has(ItemTags.GOLD_TOOL_MATERIALS))
839
			.save(this.output);
840
		this.shaped(RecipeCategory.TRANSPORTATION, Blocks.POWERED_RAIL, 6)
841
			.define('R', Items.REDSTONE)
842
			.define('#', Items.STICK)
843
			.define('X', Items.GOLD_INGOT)
844
			.pattern("X X")
845
			.pattern("X#X")
846
			.pattern("XRX")
847
			.unlockedBy("has_rail", this.has(Blocks.RAIL))
848
			.save(this.output);
849
		this.shaped(RecipeCategory.TOOLS, Items.GOLDEN_SHOVEL)
850
			.define('#', Items.STICK)
851
			.define('X', ItemTags.GOLD_TOOL_MATERIALS)
852
			.pattern("X")
853
			.pattern("#")
854
			.pattern("#")
855
			.unlockedBy("has_gold_ingot", this.has(ItemTags.GOLD_TOOL_MATERIALS))
856
			.save(this.output);
857
		this.shaped(RecipeCategory.COMBAT, Items.GOLDEN_SWORD)
858
			.define('#', Items.STICK)
859
			.define('X', ItemTags.GOLD_TOOL_MATERIALS)
860
			.pattern("X")
861
			.pattern("X")
862
			.pattern("#")
863
			.unlockedBy("has_gold_ingot", this.has(ItemTags.GOLD_TOOL_MATERIALS))
864
			.save(this.output);
865
		this.shaped(RecipeCategory.COMBAT, Items.GOLDEN_SPEAR)
866
			.define('#', Items.STICK)
867
			.define('X', ItemTags.GOLD_TOOL_MATERIALS)
868
			.pattern("  X")
869
			.pattern(" # ")
870
			.pattern("#  ")
871
			.unlockedBy("has_gold_ingot", this.has(ItemTags.GOLD_TOOL_MATERIALS))
872
			.save(this.output);
873
		this.nineBlockStorageRecipesRecipesWithCustomUnpacking(
874
			RecipeCategory.MISC, Items.GOLD_INGOT, RecipeCategory.BUILDING_BLOCKS, Items.GOLD_BLOCK, "gold_ingot_from_gold_block", "gold_ingot"
875
		);
876
		this.nineBlockStorageRecipesWithCustomPacking(
877
			RecipeCategory.MISC, Items.GOLD_NUGGET, RecipeCategory.MISC, Items.GOLD_INGOT, "gold_ingot_from_nuggets", "gold_ingot"
878
		);
879
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.GRANITE)
880
			.requires(Blocks.DIORITE)
881
			.requires(Items.QUARTZ)
882
			.unlockedBy("has_quartz", this.has(Items.QUARTZ))
883
			.save(this.output);
884
		this.shapeless(RecipeCategory.MISC, Items.DYE.gray(), 2)
885
			.requires(Items.DYE.black())
886
			.requires(Items.DYE.white())
887
			.group("gray_dye")
888
			.unlockedBy("has_white_dye", this.has(Items.DYE.white()))
889
			.unlockedBy("has_black_dye", this.has(Items.DYE.black()))
890
			.save(this.output);
891
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.HAY_BLOCK, Items.WHEAT);
892
		this.pressurePlate(Blocks.HEAVY_WEIGHTED_PRESSURE_PLATE, Items.IRON_INGOT);
893
		this.shapeless(RecipeCategory.FOOD, Items.HONEY_BOTTLE, 4)
894
			.requires(Items.HONEY_BLOCK)
895
			.requires(Items.GLASS_BOTTLE, 4)
896
			.unlockedBy("has_honey_block", this.has(Blocks.HONEY_BLOCK))
897
			.save(this.output);
898
		this.twoByTwoPacker(RecipeCategory.REDSTONE, Blocks.HONEY_BLOCK, Items.HONEY_BOTTLE);
899
		this.twoByTwoPacker(RecipeCategory.DECORATIONS, Blocks.HONEYCOMB_BLOCK, Items.HONEYCOMB);
900
		this.shaped(RecipeCategory.REDSTONE, Blocks.HOPPER)
901
			.define('C', Blocks.CHEST)
902
			.define('I', Items.IRON_INGOT)
903
			.pattern("I I")
904
			.pattern("ICI")
905
			.pattern(" I ")
906
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
907
			.save(this.output);
908
		this.shapeless(RecipeCategory.TRANSPORTATION, Items.HOPPER_MINECART)
909
			.requires(Blocks.HOPPER)
910
			.requires(Items.MINECART)
911
			.unlockedBy("has_minecart", this.has(Items.MINECART))
912
			.save(this.output);
913
		this.shaped(RecipeCategory.TOOLS, Items.IRON_AXE)
914
			.define('#', Items.STICK)
915
			.define('X', ItemTags.IRON_TOOL_MATERIALS)
916
			.pattern("XX")
917
			.pattern("X#")
918
			.pattern(" #")
919
			.unlockedBy("has_iron_ingot", this.has(ItemTags.IRON_TOOL_MATERIALS))
920
			.save(this.output);
921
		this.shaped(RecipeCategory.DECORATIONS, Blocks.IRON_BARS, 16)
922
			.define('#', Items.IRON_INGOT)
923
			.pattern("###")
924
			.pattern("###")
925
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
926
			.save(this.output);
927
		this.shaped(RecipeCategory.DECORATIONS, Blocks.COPPER_BARS.weathering().unaffected(), 16)
928
			.define('#', Items.COPPER_INGOT)
929
			.pattern("###")
930
			.pattern("###")
931
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
932
			.save(this.output);
933
		this.shaped(RecipeCategory.COMBAT, Items.IRON_BOOTS)
934
			.define('X', Items.IRON_INGOT)
935
			.pattern("X X")
936
			.pattern("X X")
937
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
938
			.save(this.output);
939
		this.shaped(RecipeCategory.COMBAT, Items.IRON_CHESTPLATE)
940
			.define('X', Items.IRON_INGOT)
941
			.pattern("X X")
942
			.pattern("XXX")
943
			.pattern("XXX")
944
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
945
			.save(this.output);
946
		this.doorBuilder(Blocks.IRON_DOOR, Ingredient.of(Items.IRON_INGOT)).unlockedBy(getHasName(Items.IRON_INGOT), this.has(Items.IRON_INGOT)).save(this.output);
947
		this.shaped(RecipeCategory.COMBAT, Items.IRON_HELMET)
948
			.define('X', Items.IRON_INGOT)
949
			.pattern("XXX")
950
			.pattern("X X")
951
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
952
			.save(this.output);
953
		this.shaped(RecipeCategory.TOOLS, Items.IRON_HOE)
954
			.define('#', Items.STICK)
955
			.define('X', ItemTags.IRON_TOOL_MATERIALS)
956
			.pattern("XX")
957
			.pattern(" #")
958
			.pattern(" #")
959
			.unlockedBy("has_iron_ingot", this.has(ItemTags.IRON_TOOL_MATERIALS))
960
			.save(this.output);
961
		this.nineBlockStorageRecipesRecipesWithCustomUnpacking(
962
			RecipeCategory.MISC, Items.IRON_INGOT, RecipeCategory.BUILDING_BLOCKS, Items.IRON_BLOCK, "iron_ingot_from_iron_block", "iron_ingot"
963
		);
964
		this.nineBlockStorageRecipesWithCustomPacking(
965
			RecipeCategory.MISC, Items.IRON_NUGGET, RecipeCategory.MISC, Items.IRON_INGOT, "iron_ingot_from_nuggets", "iron_ingot"
966
		);
967
		this.shaped(RecipeCategory.COMBAT, Items.IRON_LEGGINGS)
968
			.define('X', Items.IRON_INGOT)
969
			.pattern("XXX")
970
			.pattern("X X")
971
			.pattern("X X")
972
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
973
			.save(this.output);
974
		this.shaped(RecipeCategory.TOOLS, Items.IRON_PICKAXE)
975
			.define('#', Items.STICK)
976
			.define('X', ItemTags.IRON_TOOL_MATERIALS)
977
			.pattern("XXX")
978
			.pattern(" # ")
979
			.pattern(" # ")
980
			.unlockedBy("has_iron_ingot", this.has(ItemTags.IRON_TOOL_MATERIALS))
981
			.save(this.output);
982
		this.shaped(RecipeCategory.TOOLS, Items.IRON_SHOVEL)
983
			.define('#', Items.STICK)
984
			.define('X', ItemTags.IRON_TOOL_MATERIALS)
985
			.pattern("X")
986
			.pattern("#")
987
			.pattern("#")
988
			.unlockedBy("has_iron_ingot", this.has(ItemTags.IRON_TOOL_MATERIALS))
989
			.save(this.output);
990
		this.shaped(RecipeCategory.COMBAT, Items.IRON_SWORD)
991
			.define('#', Items.STICK)
992
			.define('X', ItemTags.IRON_TOOL_MATERIALS)
993
			.pattern("X")
994
			.pattern("X")
995
			.pattern("#")
996
			.unlockedBy("has_iron_ingot", this.has(ItemTags.IRON_TOOL_MATERIALS))
997
			.save(this.output);
998
		this.shaped(RecipeCategory.COMBAT, Items.IRON_SPEAR)
999
			.define('#', Items.STICK)
1000
			.define('X', ItemTags.IRON_TOOL_MATERIALS)
1001
			.pattern("  X")
1002
			.pattern(" # ")
1003
			.pattern("#  ")
1004
			.unlockedBy("has_iron_ingot", this.has(ItemTags.IRON_TOOL_MATERIALS))
1005
			.save(this.output);
1006
		this.twoByTwoPacker(RecipeCategory.REDSTONE, Blocks.IRON_TRAPDOOR, Items.IRON_INGOT);
1007
		this.shaped(RecipeCategory.DECORATIONS, Items.STRAW_BED, 4)
1008
			.define('X', Items.HAY_BLOCK)
1009
			.pattern("XXX")
1010
			.unlockedBy("has_hay_block", this.has(Items.HAY_BLOCK))
1011
			.unlockedBy("has_straw_bed", this.has(Items.STRAW_BED))
1012
			.save(this.output);
1013
		this.shaped(RecipeCategory.DECORATIONS, Items.ITEM_FRAME)
1014
			.define('#', Items.STICK)
1015
			.define('X', Items.LEATHER)
1016
			.pattern("###")
1017
			.pattern("#X#")
1018
			.pattern("###")
1019
			.unlockedBy("has_leather", this.has(Items.LEATHER))
1020
			.save(this.output);
1021
		this.shaped(RecipeCategory.DECORATIONS, Blocks.JUKEBOX)
1022
			.define('#', ItemTags.PLANKS)
1023
			.define('X', Items.DIAMOND)
1024
			.pattern("###")
1025
			.pattern("#X#")
1026
			.pattern("###")
1027
			.unlockedBy("has_diamond", this.has(Items.DIAMOND))
1028
			.save(this.output);
1029
		this.shaped(RecipeCategory.DECORATIONS, Blocks.LADDER, 3)
1030
			.define('#', Items.STICK)
1031
			.pattern("# #")
1032
			.pattern("###")
1033
			.pattern("# #")
1034
			.unlockedBy("has_stick", this.has(Items.STICK))
1035
			.save(this.output);
1036
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.LAPIS_LAZULI, RecipeCategory.BUILDING_BLOCKS, Items.LAPIS_BLOCK);
1037
		this.shaped(RecipeCategory.TOOLS, Items.LEAD, 2)
1038
			.define('~', Items.STRING)
1039
			.pattern("~~ ")
1040
			.pattern("~~ ")
1041
			.pattern("  ~")
1042
			.unlockedBy("has_string", this.has(Items.STRING))
1043
			.save(this.output);
1044
		this.shaped(RecipeCategory.TOOLS, Items.NAME_TAG)
1045
			.define('X', ItemTags.METAL_NUGGETS)
1046
			.define('#', Items.PAPER)
1047
			.pattern(" X")
1048
			.pattern("# ")
1049
			.unlockedBy("has_metal_nugget", this.has(ItemTags.METAL_NUGGETS))
1050
			.unlockedBy("has_paper", this.has(Items.PAPER))
1051
			.unlockedBy("has_name_tag", this.has(Items.NAME_TAG))
1052
			.save(this.output);
1053
		this.twoByTwoPacker(RecipeCategory.MISC, Items.LEATHER, Items.RABBIT_HIDE);
1054
		this.shaped(RecipeCategory.COMBAT, Items.LEATHER_BOOTS)
1055
			.define('X', Items.LEATHER)
1056
			.pattern("X X")
1057
			.pattern("X X")
1058
			.unlockedBy("has_leather", this.has(Items.LEATHER))
1059
			.save(this.output);
1060
		this.shaped(RecipeCategory.COMBAT, Items.LEATHER_CHESTPLATE)
1061
			.define('X', Items.LEATHER)
1062
			.pattern("X X")
1063
			.pattern("XXX")
1064
			.pattern("XXX")
1065
			.unlockedBy("has_leather", this.has(Items.LEATHER))
1066
			.save(this.output);
1067
		this.shaped(RecipeCategory.COMBAT, Items.LEATHER_HELMET)
1068
			.define('X', Items.LEATHER)
1069
			.pattern("XXX")
1070
			.pattern("X X")
1071
			.unlockedBy("has_leather", this.has(Items.LEATHER))
1072
			.save(this.output);
1073
		this.shaped(RecipeCategory.COMBAT, Items.LEATHER_LEGGINGS)
1074
			.define('X', Items.LEATHER)
1075
			.pattern("XXX")
1076
			.pattern("X X")
1077
			.pattern("X X")
1078
			.unlockedBy("has_leather", this.has(Items.LEATHER))
1079
			.save(this.output);
1080
		this.shaped(RecipeCategory.MISC, Items.LEATHER_HORSE_ARMOR)
1081
			.define('X', Items.LEATHER)
1082
			.pattern("X X")
1083
			.pattern("XXX")
1084
			.pattern("X X")
1085
			.unlockedBy("has_leather", this.has(Items.LEATHER))
1086
			.save(this.output);
1087
		this.shaped(RecipeCategory.COMBAT, Items.SADDLE)
1088
			.define('X', Items.LEATHER)
1089
			.define('#', Items.IRON_INGOT)
1090
			.pattern(" X ")
1091
			.pattern("X#X")
1092
			.unlockedBy("has_leather", this.has(Items.LEATHER))
1093
			.save(this.output);
1094
		this.nineBlockStorageRecipesWithCustomPacking(
1095
			RecipeCategory.MISC, Items.COPPER_NUGGET, RecipeCategory.MISC, Items.COPPER_INGOT, "copper_ingot_from_nuggets", "copper_ingot"
1096
		);
1097
		this.shaped(RecipeCategory.TOOLS, Items.COPPER_AXE)
1098
			.define('#', Items.STICK)
1099
			.define('X', ItemTags.COPPER_TOOL_MATERIALS)
1100
			.pattern("XX")
1101
			.pattern("X#")
1102
			.pattern(" #")
1103
			.unlockedBy("has_copper_ingot", this.has(ItemTags.COPPER_TOOL_MATERIALS))
1104
			.save(this.output);
1105
		this.shaped(RecipeCategory.TOOLS, Items.COPPER_HOE)
1106
			.define('#', Items.STICK)
1107
			.define('X', ItemTags.COPPER_TOOL_MATERIALS)
1108
			.pattern("XX")
1109
			.pattern(" #")
1110
			.pattern(" #")
1111
			.unlockedBy("has_copper_ingot", this.has(ItemTags.COPPER_TOOL_MATERIALS))
1112
			.save(this.output);
1113
		this.shaped(RecipeCategory.TOOLS, Items.COPPER_PICKAXE)
1114
			.define('#', Items.STICK)
1115
			.define('X', ItemTags.COPPER_TOOL_MATERIALS)
1116
			.pattern("XXX")
1117
			.pattern(" # ")
1118
			.pattern(" # ")
1119
			.unlockedBy("has_copper_ingot", this.has(ItemTags.COPPER_TOOL_MATERIALS))
1120
			.save(this.output);
1121
		this.shaped(RecipeCategory.TOOLS, Items.COPPER_SHOVEL)
1122
			.define('#', Items.STICK)
1123
			.define('X', ItemTags.COPPER_TOOL_MATERIALS)
1124
			.pattern("X")
1125
			.pattern("#")
1126
			.pattern("#")
1127
			.unlockedBy("has_copper_ingot", this.has(ItemTags.COPPER_TOOL_MATERIALS))
1128
			.save(this.output);
1129
		this.shaped(RecipeCategory.COMBAT, Items.COPPER_SWORD)
1130
			.define('#', Items.STICK)
1131
			.define('X', ItemTags.COPPER_TOOL_MATERIALS)
1132
			.pattern("X")
1133
			.pattern("X")
1134
			.pattern("#")
1135
			.unlockedBy("has_copper_ingot", this.has(ItemTags.COPPER_TOOL_MATERIALS))
1136
			.save(this.output);
1137
		this.shaped(RecipeCategory.COMBAT, Items.COPPER_SPEAR)
1138
			.define('#', Items.STICK)
1139
			.define('X', ItemTags.COPPER_TOOL_MATERIALS)
1140
			.pattern("  X")
1141
			.pattern(" # ")
1142
			.pattern("#  ")
1143
			.unlockedBy("has_copper_ingot", this.has(ItemTags.COPPER_TOOL_MATERIALS))
1144
			.save(this.output);
1145
		this.shaped(RecipeCategory.COMBAT, Items.COPPER_BOOTS)
1146
			.define('X', Items.COPPER_INGOT)
1147
			.pattern("X X")
1148
			.pattern("X X")
1149
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
1150
			.save(this.output);
1151
		this.shaped(RecipeCategory.COMBAT, Items.COPPER_CHESTPLATE)
1152
			.define('X', Items.COPPER_INGOT)
1153
			.pattern("X X")
1154
			.pattern("XXX")
1155
			.pattern("XXX")
1156
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
1157
			.save(this.output);
1158
		this.shaped(RecipeCategory.COMBAT, Items.COPPER_HELMET)
1159
			.define('X', Items.COPPER_INGOT)
1160
			.pattern("XXX")
1161
			.pattern("X X")
1162
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
1163
			.save(this.output);
1164
		this.shaped(RecipeCategory.COMBAT, Items.COPPER_LEGGINGS)
1165
			.define('X', Items.COPPER_INGOT)
1166
			.pattern("XXX")
1167
			.pattern("X X")
1168
			.pattern("X X")
1169
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
1170
			.save(this.output);
1171
		this.shaped(RecipeCategory.REDSTONE, Blocks.LECTERN)
1172
			.define('S', ItemTags.WOODEN_SLABS)
1173
			.define('B', Blocks.BOOKSHELF)
1174
			.pattern("SSS")
1175
			.pattern(" B ")
1176
			.pattern(" S ")
1177
			.unlockedBy("has_book", this.has(Items.BOOK))
1178
			.save(this.output);
1179
		this.shaped(RecipeCategory.REDSTONE, Blocks.LEVER)
1180
			.define('#', Blocks.COBBLESTONE)
1181
			.define('X', Items.STICK)
1182
			.pattern("X")
1183
			.pattern("#")
1184
			.unlockedBy("has_cobblestone", this.has(Blocks.COBBLESTONE))
1185
			.save(this.output);
1186
		this.oneToOneConversionRecipe(Items.DYE.lightBlue(), Blocks.BLUE_ORCHID, "light_blue_dye");
1187
		this.shapeless(RecipeCategory.MISC, Items.DYE.lightBlue(), 2)
1188
			.requires(Items.DYE.blue())
1189
			.requires(Items.DYE.white())
1190
			.group("light_blue_dye")
1191
			.unlockedBy("has_blue_dye", this.has(Items.DYE.blue()))
1192
			.unlockedBy("has_white_dye", this.has(Items.DYE.white()))
1193
			.save(this.output, "light_blue_dye_from_blue_white_dye");
1194
		this.oneToOneConversionRecipe(Items.DYE.lightGray(), Blocks.AZURE_BLUET, "light_gray_dye");
1195
		this.shapeless(RecipeCategory.MISC, Items.DYE.lightGray(), 2)
1196
			.requires(Items.DYE.gray())
1197
			.requires(Items.DYE.white())
1198
			.group("light_gray_dye")
1199
			.unlockedBy("has_gray_dye", this.has(Items.DYE.gray()))
1200
			.unlockedBy("has_white_dye", this.has(Items.DYE.white()))
1201
			.save(this.output, "light_gray_dye_from_gray_white_dye");
1202
		this.shapeless(RecipeCategory.MISC, Items.DYE.lightGray(), 3)
1203
			.requires(Items.DYE.black())
1204
			.requires(Items.DYE.white(), 2)
1205
			.group("light_gray_dye")
1206
			.unlockedBy("has_white_dye", this.has(Items.DYE.white()))
1207
			.unlockedBy("has_black_dye", this.has(Items.DYE.black()))
1208
			.save(this.output, "light_gray_dye_from_black_white_dye");
1209
		this.oneToOneConversionRecipe(Items.DYE.lightGray(), Blocks.OXEYE_DAISY, "light_gray_dye");
1210
		this.oneToOneConversionRecipe(Items.DYE.lightGray(), Blocks.WHITE_TULIP, "light_gray_dye");
1211
		this.pressurePlate(Blocks.LIGHT_WEIGHTED_PRESSURE_PLATE, Items.GOLD_INGOT);
1212
		this.shaped(RecipeCategory.REDSTONE, Blocks.LIGHTNING_ROD.weathering().unaffected())
1213
			.define('#', Items.COPPER_INGOT)
1214
			.pattern("#")
1215
			.pattern("#")
1216
			.pattern("#")
1217
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
1218
			.save(this.output);
1219
		this.shapeless(RecipeCategory.MISC, Items.DYE.lime(), 2)
1220
			.requires(Items.DYE.green())
1221
			.requires(Items.DYE.white())
1222
			.unlockedBy("has_green_dye", this.has(Items.DYE.green()))
1223
			.unlockedBy("has_white_dye", this.has(Items.DYE.white()))
1224
			.save(this.output);
1225
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.JACK_O_LANTERN)
1226
			.define('A', Blocks.CARVED_PUMPKIN)
1227
			.define('B', Blocks.TORCH)
1228
			.pattern("A")
1229
			.pattern("B")
1230
			.unlockedBy("has_carved_pumpkin", this.has(Blocks.CARVED_PUMPKIN))
1231
			.save(this.output);
1232
		this.oneToOneConversionRecipe(Items.DYE.magenta(), Blocks.ALLIUM, "magenta_dye");
1233
		this.shapeless(RecipeCategory.MISC, Items.DYE.magenta(), 4)
1234
			.requires(Items.DYE.blue())
1235
			.requires(Items.DYE.red(), 2)
1236
			.requires(Items.DYE.white())
1237
			.group("magenta_dye")
1238
			.unlockedBy("has_blue_dye", this.has(Items.DYE.blue()))
1239
			.unlockedBy("has_rose_red", this.has(Items.DYE.red()))
1240
			.unlockedBy("has_white_dye", this.has(Items.DYE.white()))
1241
			.save(this.output, "magenta_dye_from_blue_red_white_dye");
1242
		this.shapeless(RecipeCategory.MISC, Items.DYE.magenta(), 3)
1243
			.requires(Items.DYE.blue())
1244
			.requires(Items.DYE.red())
1245
			.requires(Items.DYE.pink())
1246
			.group("magenta_dye")
1247
			.unlockedBy("has_pink_dye", this.has(Items.DYE.pink()))
1248
			.unlockedBy("has_blue_dye", this.has(Items.DYE.blue()))
1249
			.unlockedBy("has_red_dye", this.has(Items.DYE.red()))
1250
			.save(this.output, "magenta_dye_from_blue_red_pink");
1251
		this.oneToOneConversionRecipe(Items.DYE.magenta(), Blocks.LILAC, "magenta_dye", 2);
1252
		this.shapeless(RecipeCategory.MISC, Items.DYE.magenta(), 2)
1253
			.requires(Items.DYE.purple())
1254
			.requires(Items.DYE.pink())
1255
			.group("magenta_dye")
1256
			.unlockedBy("has_pink_dye", this.has(Items.DYE.pink()))
1257
			.unlockedBy("has_purple_dye", this.has(Items.DYE.purple()))
1258
			.save(this.output, "magenta_dye_from_purple_and_pink");
1259
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.MAGMA_BLOCK, Items.MAGMA_CREAM);
1260
		this.shapeless(RecipeCategory.BREWING, Items.MAGMA_CREAM)
1261
			.requires(Items.BLAZE_POWDER)
1262
			.requires(Items.SLIME_BALL)
1263
			.unlockedBy("has_blaze_powder", this.has(Items.BLAZE_POWDER))
1264
			.save(this.output);
1265
		this.shaped(RecipeCategory.MISC, Items.MAP)
1266
			.define('#', Items.PAPER)
1267
			.define('X', Items.COMPASS)
1268
			.pattern("###")
1269
			.pattern("#X#")
1270
			.pattern("###")
1271
			.unlockedBy("has_compass", this.has(Items.COMPASS))
1272
			.save(this.output);
1273
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.MELON, Items.MELON_SLICE, "has_melon");
1274
		this.shapeless(RecipeCategory.MISC, Items.MELON_SEEDS).requires(Items.MELON_SLICE).unlockedBy("has_melon", this.has(Items.MELON_SLICE)).save(this.output);
1275
		this.shaped(RecipeCategory.TRANSPORTATION, Items.MINECART)
1276
			.define('#', Items.IRON_INGOT)
1277
			.pattern("# #")
1278
			.pattern("###")
1279
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
1280
			.save(this.output);
1281
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.MOSSY_COBBLESTONE)
1282
			.requires(Blocks.COBBLESTONE)
1283
			.requires(Blocks.VINE)
1284
			.group("mossy_cobblestone")
1285
			.unlockedBy("has_vine", this.has(Blocks.VINE))
1286
			.save(this.output, getConversionRecipeName(Blocks.MOSSY_COBBLESTONE, Blocks.VINE));
1287
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.MOSSY_STONE_BRICKS)
1288
			.requires(Blocks.STONE_BRICKS)
1289
			.requires(Blocks.VINE)
1290
			.group("mossy_stone_bricks")
1291
			.unlockedBy("has_vine", this.has(Blocks.VINE))
1292
			.save(this.output, getConversionRecipeName(Blocks.MOSSY_STONE_BRICKS, Blocks.VINE));
1293
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.MOSSY_COBBLESTONE)
1294
			.requires(Blocks.COBBLESTONE)
1295
			.requires(Blocks.MOSS_BLOCK)
1296
			.group("mossy_cobblestone")
1297
			.unlockedBy("has_moss_block", this.has(Blocks.MOSS_BLOCK))
1298
			.save(this.output, getConversionRecipeName(Blocks.MOSSY_COBBLESTONE, Blocks.MOSS_BLOCK));
1299
		this.shapeless(RecipeCategory.BUILDING_BLOCKS, Blocks.MOSSY_STONE_BRICKS)
1300
			.requires(Blocks.STONE_BRICKS)
1301
			.requires(Blocks.MOSS_BLOCK)
1302
			.group("mossy_stone_bricks")
1303
			.unlockedBy("has_moss_block", this.has(Blocks.MOSS_BLOCK))
1304
			.save(this.output, getConversionRecipeName(Blocks.MOSSY_STONE_BRICKS, Blocks.MOSS_BLOCK));
1305
		this.shapeless(RecipeCategory.FOOD, Items.MUSHROOM_STEW)
1306
			.requires(ItemTags.MUSHROOMS)
1307
			.requires(ItemTags.MUSHROOMS)
1308
			.requires(Items.BOWL)
1309
			.group("mushroom_stew")
1310
			.unlockedBy("has_mushroom_stew", this.has(Items.MUSHROOM_STEW))
1311
			.unlockedBy("has_bowl", this.has(Items.BOWL))
1312
			.unlockedBy("has_mushroom", this.has(ItemTags.MUSHROOMS))
1313
			.save(this.output);
1314
		BuiltInRegistries.ITEM.stream().forEach(item -> {
1315
			SuspiciousEffectHolder effectHolder = SuspiciousEffectHolder.tryGet(item);
1316
			if (effectHolder != null) {
1317
				this.suspiciousStew(item, effectHolder);
1318
			}
1319
		});
1320
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.NETHER_BRICKS, Items.NETHER_BRICK);
1321
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.RESIN_BRICKS, Items.RESIN_BRICK);
1322
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.RESIN_CLUMP, RecipeCategory.BUILDING_BLOCKS, Items.RESIN_BLOCK);
1323
		this.shaped(RecipeCategory.MISC, Blocks.CREAKING_HEART)
1324
			.define('R', Items.RESIN_BLOCK)
1325
			.define('L', Blocks.PALE_OAK_LOG)
1326
			.pattern(" L ")
1327
			.pattern(" R ")
1328
			.pattern(" L ")
1329
			.unlockedBy("has_resin_block", this.has(Items.RESIN_BLOCK))
1330
			.save(this.output);
1331
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.NETHER_WART_BLOCK, Items.NETHER_WART);
1332
		this.shaped(RecipeCategory.REDSTONE, Blocks.NOTE_BLOCK)
1333
			.define('#', ItemTags.PLANKS)
1334
			.define('X', Items.REDSTONE)
1335
			.pattern("###")
1336
			.pattern("#X#")
1337
			.pattern("###")
1338
			.unlockedBy("has_redstone", this.has(Items.REDSTONE))
1339
			.save(this.output);
1340
		this.shaped(RecipeCategory.REDSTONE, Blocks.OBSERVER)
1341
			.define('Q', Items.QUARTZ)
1342
			.define('R', Items.REDSTONE)
1343
			.define('#', Blocks.COBBLESTONE)
1344
			.pattern("###")
1345
			.pattern("RRQ")
1346
			.pattern("###")
1347
			.unlockedBy("has_quartz", this.has(Items.QUARTZ))
1348
			.save(this.output);
1349
		this.oneToOneConversionRecipe(Items.DYE.orange(), Blocks.ORANGE_TULIP, "orange_dye");
1350
		this.shapeless(RecipeCategory.MISC, Items.DYE.orange(), 2)
1351
			.requires(Items.DYE.red())
1352
			.requires(Items.DYE.yellow())
1353
			.group("orange_dye")
1354
			.unlockedBy("has_red_dye", this.has(Items.DYE.red()))
1355
			.unlockedBy("has_yellow_dye", this.has(Items.DYE.yellow()))
1356
			.save(this.output, "orange_dye_from_red_yellow");
1357
		this.shaped(RecipeCategory.DECORATIONS, Items.PAINTING)
1358
			.define('#', Items.STICK)
1359
			.define('X', ItemTags.WOOL)
1360
			.pattern("###")
1361
			.pattern("#X#")
1362
			.pattern("###")
1363
			.unlockedBy("has_wool", this.has(ItemTags.WOOL))
1364
			.save(this.output);
1365
		this.shaped(RecipeCategory.MISC, Items.PAPER, 3)
1366
			.define('#', Blocks.SUGAR_CANE)
1367
			.pattern("###")
1368
			.unlockedBy("has_reeds", this.has(Blocks.SUGAR_CANE))
1369
			.save(this.output);
1370
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.QUARTZ_PILLAR, 2)
1371
			.define('#', Blocks.QUARTZ_BLOCK)
1372
			.pattern("#")
1373
			.pattern("#")
1374
			.unlockedBy("has_chiseled_quartz_block", this.has(Blocks.CHISELED_QUARTZ_BLOCK))
1375
			.unlockedBy("has_quartz_block", this.has(Blocks.QUARTZ_BLOCK))
1376
			.unlockedBy("has_quartz_pillar", this.has(Blocks.QUARTZ_PILLAR))
1377
			.save(this.output);
1378
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.PACKED_ICE, Blocks.ICE);
1379
		this.oneToOneConversionRecipe(Items.DYE.pink(), Blocks.PEONY, "pink_dye", 2);
1380
		this.oneToOneConversionRecipe(Items.DYE.pink(), Blocks.PINK_TULIP, "pink_dye");
1381
		this.oneToOneConversionRecipe(Items.DYE.pink(), Blocks.CACTUS_FLOWER, "pink_dye");
1382
		this.shapeless(RecipeCategory.MISC, Items.DYE.pink(), 2)
1383
			.requires(Items.DYE.red())
1384
			.requires(Items.DYE.white())
1385
			.group("pink_dye")
1386
			.unlockedBy("has_white_dye", this.has(Items.DYE.white()))
1387
			.unlockedBy("has_red_dye", this.has(Items.DYE.red()))
1388
			.save(this.output, "pink_dye_from_red_white_dye");
1389
		this.shaped(RecipeCategory.REDSTONE, Blocks.PISTON)
1390
			.define('R', Items.REDSTONE)
1391
			.define('#', Blocks.COBBLESTONE)
1392
			.define('T', ItemTags.PLANKS)
1393
			.define('X', Items.IRON_INGOT)
1394
			.pattern("TTT")
1395
			.pattern("#X#")
1396
			.pattern("#R#")
1397
			.unlockedBy("has_redstone", this.has(Items.REDSTONE))
1398
			.save(this.output);
1399
		this.polished(RecipeCategory.BUILDING_BLOCKS, Blocks.POLISHED_BASALT, Blocks.BASALT);
1400
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.PRISMARINE, Items.PRISMARINE_SHARD);
1401
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.PRISMARINE_BRICKS, Items.PRISMARINE_SHARD);
1402
		this.shapeless(RecipeCategory.FOOD, Items.PUMPKIN_PIE)
1403
			.requires(Blocks.PUMPKIN)
1404
			.requires(Items.SUGAR)
1405
			.requires(ItemTags.EGGS)
1406
			.unlockedBy("has_carved_pumpkin", this.has(Blocks.CARVED_PUMPKIN))
1407
			.unlockedBy("has_pumpkin", this.has(Blocks.PUMPKIN))
1408
			.save(this.output);
1409
		this.shapeless(RecipeCategory.MISC, Items.PUMPKIN_SEEDS, 4).requires(Blocks.PUMPKIN).unlockedBy("has_pumpkin", this.has(Blocks.PUMPKIN)).save(this.output);
1410
		this.shapeless(RecipeCategory.MISC, Items.DYE.purple(), 2)
1411
			.requires(Items.DYE.blue())
1412
			.requires(Items.DYE.red())
1413
			.unlockedBy("has_blue_dye", this.has(Items.DYE.blue()))
1414
			.unlockedBy("has_red_dye", this.has(Items.DYE.red()))
1415
			.save(this.output);
1416
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SHULKER_BOX)
1417
			.define('#', Blocks.CHEST)
1418
			.define('-', Items.SHULKER_SHELL)
1419
			.pattern("-")
1420
			.pattern("#")
1421
			.pattern("-")
1422
			.unlockedBy("has_shulker_shell", this.has(Items.SHULKER_SHELL))
1423
			.save(this.output);
1424
		ColorCollection.zipApply(Items.DYE, Items.DYED_SHULKER_BOX, (x$0, x$1) -> this.dyedShulkerBoxRecipe(x$0, x$1));
1425
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.PURPUR_BLOCK, 4)
1426
			.define('F', Items.POPPED_CHORUS_FRUIT)
1427
			.pattern("FF")
1428
			.pattern("FF")
1429
			.unlockedBy("has_chorus_fruit_popped", this.has(Items.POPPED_CHORUS_FRUIT))
1430
			.save(this.output);
1431
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.PURPUR_PILLAR)
1432
			.define('#', Blocks.PURPUR_SLAB)
1433
			.pattern("#")
1434
			.pattern("#")
1435
			.unlockedBy("has_purpur_block", this.has(Blocks.PURPUR_BLOCK))
1436
			.save(this.output);
1437
		this.slabBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.PURPUR_SLAB, Ingredient.of(Blocks.PURPUR_BLOCK, Blocks.PURPUR_PILLAR))
1438
			.unlockedBy("has_purpur_block", this.has(Blocks.PURPUR_BLOCK))
1439
			.save(this.output);
1440
		this.stairBuilder(Blocks.PURPUR_STAIRS, Ingredient.of(Blocks.PURPUR_BLOCK, Blocks.PURPUR_PILLAR))
1441
			.unlockedBy("has_purpur_block", this.has(Blocks.PURPUR_BLOCK))
1442
			.save(this.output);
1443
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.QUARTZ_BLOCK, Items.QUARTZ);
1444
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.QUARTZ_BRICKS, 4)
1445
			.define('#', Blocks.QUARTZ_BLOCK)
1446
			.pattern("##")
1447
			.pattern("##")
1448
			.unlockedBy("has_quartz_block", this.has(Blocks.QUARTZ_BLOCK))
1449
			.save(this.output);
1450
		this.slabBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.QUARTZ_SLAB, Ingredient.of(Blocks.CHISELED_QUARTZ_BLOCK, Blocks.QUARTZ_BLOCK, Blocks.QUARTZ_PILLAR))
1451
			.unlockedBy("has_chiseled_quartz_block", this.has(Blocks.CHISELED_QUARTZ_BLOCK))
1452
			.unlockedBy("has_quartz_block", this.has(Blocks.QUARTZ_BLOCK))
1453
			.unlockedBy("has_quartz_pillar", this.has(Blocks.QUARTZ_PILLAR))
1454
			.save(this.output);
1455
		this.stairBuilder(Blocks.QUARTZ_STAIRS, Ingredient.of(Blocks.CHISELED_QUARTZ_BLOCK, Blocks.QUARTZ_BLOCK, Blocks.QUARTZ_PILLAR))
1456
			.unlockedBy("has_chiseled_quartz_block", this.has(Blocks.CHISELED_QUARTZ_BLOCK))
1457
			.unlockedBy("has_quartz_block", this.has(Blocks.QUARTZ_BLOCK))
1458
			.unlockedBy("has_quartz_pillar", this.has(Blocks.QUARTZ_PILLAR))
1459
			.save(this.output);
1460
		this.shapeless(RecipeCategory.FOOD, Items.RABBIT_STEW)
1461
			.requires(Items.BAKED_POTATO)
1462
			.requires(Items.COOKED_RABBIT)
1463
			.requires(Items.BOWL)
1464
			.requires(Items.CARROT)
1465
			.requires(Blocks.BROWN_MUSHROOM)
1466
			.group("rabbit_stew")
1467
			.unlockedBy("has_cooked_rabbit", this.has(Items.COOKED_RABBIT))
1468
			.save(this.output, getConversionRecipeName(Items.RABBIT_STEW, Items.BROWN_MUSHROOM));
1469
		this.shapeless(RecipeCategory.FOOD, Items.RABBIT_STEW)
1470
			.requires(Items.BAKED_POTATO)
1471
			.requires(Items.COOKED_RABBIT)
1472
			.requires(Items.BOWL)
1473
			.requires(Items.CARROT)
1474
			.requires(Blocks.RED_MUSHROOM)
1475
			.group("rabbit_stew")
1476
			.unlockedBy("has_cooked_rabbit", this.has(Items.COOKED_RABBIT))
1477
			.save(this.output, getConversionRecipeName(Items.RABBIT_STEW, Items.RED_MUSHROOM));
1478
		this.shapeless(RecipeCategory.FOOD, Items.RABBIT_STEW)
1479
			.requires(Items.BAKED_POTATO)
1480
			.requires(Items.COOKED_RABBIT)
1481
			.requires(Items.BOWL)
1482
			.requires(Items.CARROT)
1483
			.requires(Blocks.SHELF_MUSHROOM)
1484
			.group("rabbit_stew")
1485
			.unlockedBy("has_cooked_rabbit", this.has(Items.COOKED_RABBIT))
1486
			.save(this.output, getConversionRecipeName(Items.RABBIT_STEW, Items.SHELF_MUSHROOM));
1487
		this.shaped(RecipeCategory.TRANSPORTATION, Blocks.RAIL, 16)
1488
			.define('#', Items.STICK)
1489
			.define('X', Items.IRON_INGOT)
1490
			.pattern("X X")
1491
			.pattern("X#X")
1492
			.pattern("X X")
1493
			.unlockedBy("has_minecart", this.has(Items.MINECART))
1494
			.save(this.output);
1495
		this.nineBlockStorageRecipes(RecipeCategory.REDSTONE, Items.REDSTONE, RecipeCategory.REDSTONE, Items.REDSTONE_BLOCK);
1496
		this.shaped(RecipeCategory.REDSTONE, Blocks.REDSTONE_LAMP)
1497
			.define('R', Items.REDSTONE)
1498
			.define('G', Blocks.GLOWSTONE)
1499
			.pattern(" R ")
1500
			.pattern("RGR")
1501
			.pattern(" R ")
1502
			.unlockedBy("has_glowstone", this.has(Blocks.GLOWSTONE))
1503
			.save(this.output);
1504
		this.shaped(RecipeCategory.REDSTONE, Blocks.REDSTONE_TORCH)
1505
			.define('#', Items.STICK)
1506
			.define('X', Items.REDSTONE)
1507
			.pattern("X")
1508
			.pattern("#")
1509
			.unlockedBy("has_redstone", this.has(Items.REDSTONE))
1510
			.save(this.output);
1511
		this.oneToOneConversionRecipe(Items.DYE.red(), Items.BEETROOT, "red_dye");
1512
		this.oneToOneConversionRecipe(Items.DYE.red(), Blocks.POPPY, "red_dye");
1513
		this.oneToOneConversionRecipe(Items.DYE.red(), Blocks.ROSE_BUSH, "red_dye", 2);
1514
		this.oneToOneConversionRecipe(Items.DYE.orange(), Blocks.OPEN_EYEBLOSSOM, "orange_dye");
1515
		this.oneToOneConversionRecipe(Items.DYE.gray(), Blocks.CLOSED_EYEBLOSSOM, "gray_dye");
1516
		this.shapeless(RecipeCategory.MISC, Items.DYE.red())
1517
			.requires(Blocks.RED_TULIP)
1518
			.group("red_dye")
1519
			.unlockedBy("has_red_flower", this.has(Blocks.RED_TULIP))
1520
			.save(this.output, "red_dye_from_tulip");
1521
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.RED_NETHER_BRICKS)
1522
			.define('W', Items.NETHER_WART)
1523
			.define('N', Items.NETHER_BRICK)
1524
			.pattern("NW")
1525
			.pattern("WN")
1526
			.unlockedBy("has_nether_wart", this.has(Items.NETHER_WART))
1527
			.save(this.output);
1528
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.RED_SANDSTONE)
1529
			.define('#', Blocks.RED_SAND)
1530
			.pattern("##")
1531
			.pattern("##")
1532
			.unlockedBy("has_sand", this.has(Blocks.RED_SAND))
1533
			.save(this.output);
1534
		this.slabBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.RED_SANDSTONE_SLAB, Ingredient.of(Blocks.RED_SANDSTONE, Blocks.CHISELED_RED_SANDSTONE))
1535
			.unlockedBy("has_red_sandstone", this.has(Blocks.RED_SANDSTONE))
1536
			.unlockedBy("has_chiseled_red_sandstone", this.has(Blocks.CHISELED_RED_SANDSTONE))
1537
			.save(this.output);
1538
		this.stairBuilder(Blocks.RED_SANDSTONE_STAIRS, Ingredient.of(Blocks.RED_SANDSTONE, Blocks.CHISELED_RED_SANDSTONE, Blocks.CUT_RED_SANDSTONE))
1539
			.unlockedBy("has_red_sandstone", this.has(Blocks.RED_SANDSTONE))
1540
			.unlockedBy("has_chiseled_red_sandstone", this.has(Blocks.CHISELED_RED_SANDSTONE))
1541
			.unlockedBy("has_cut_red_sandstone", this.has(Blocks.CUT_RED_SANDSTONE))
1542
			.save(this.output);
1543
		this.shaped(RecipeCategory.REDSTONE, Blocks.REPEATER)
1544
			.define('#', Blocks.REDSTONE_TORCH)
1545
			.define('X', Items.REDSTONE)
1546
			.define('I', Blocks.STONE)
1547
			.pattern("#X#")
1548
			.pattern("III")
1549
			.unlockedBy("has_redstone_torch", this.has(Blocks.REDSTONE_TORCH))
1550
			.save(this.output);
1551
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.SANDSTONE, Blocks.SAND);
1552
		this.slabBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.SANDSTONE_SLAB, Ingredient.of(Blocks.SANDSTONE, Blocks.CHISELED_SANDSTONE))
1553
			.unlockedBy("has_sandstone", this.has(Blocks.SANDSTONE))
1554
			.unlockedBy("has_chiseled_sandstone", this.has(Blocks.CHISELED_SANDSTONE))
1555
			.save(this.output);
1556
		this.stairBuilder(Blocks.SANDSTONE_STAIRS, Ingredient.of(Blocks.SANDSTONE, Blocks.CHISELED_SANDSTONE, Blocks.CUT_SANDSTONE))
1557
			.unlockedBy("has_sandstone", this.has(Blocks.SANDSTONE))
1558
			.unlockedBy("has_chiseled_sandstone", this.has(Blocks.CHISELED_SANDSTONE))
1559
			.unlockedBy("has_cut_sandstone", this.has(Blocks.CUT_SANDSTONE))
1560
			.save(this.output);
1561
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.SEA_LANTERN)
1562
			.define('S', Items.PRISMARINE_SHARD)
1563
			.define('C', Items.PRISMARINE_CRYSTALS)
1564
			.pattern("SCS")
1565
			.pattern("CCC")
1566
			.pattern("SCS")
1567
			.unlockedBy("has_prismarine_crystals", this.has(Items.PRISMARINE_CRYSTALS))
1568
			.save(this.output);
1569
		this.shaped(RecipeCategory.TOOLS, Items.SHEARS)
1570
			.define('#', Items.IRON_INGOT)
1571
			.pattern(" #")
1572
			.pattern("# ")
1573
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
1574
			.save(this.output);
1575
		this.shaped(RecipeCategory.COMBAT, Items.SHIELD)
1576
			.define('W', ItemTags.WOODEN_TOOL_MATERIALS)
1577
			.define('o', Items.IRON_INGOT)
1578
			.pattern("WoW")
1579
			.pattern("WWW")
1580
			.pattern(" W ")
1581
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
1582
			.save(this.output);
1583
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.SLIME_BALL, RecipeCategory.REDSTONE, Items.SLIME_BLOCK);
1584
		this.cut(RecipeCategory.BUILDING_BLOCKS, Blocks.CUT_RED_SANDSTONE, Blocks.RED_SANDSTONE);
1585
		this.cut(RecipeCategory.BUILDING_BLOCKS, Blocks.CUT_SANDSTONE, Blocks.SANDSTONE);
1586
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.SNOW_BLOCK, Items.SNOWBALL);
1587
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SNOW, 6)
1588
			.define('#', Blocks.SNOW_BLOCK)
1589
			.pattern("###")
1590
			.unlockedBy("has_snowball", this.has(Items.SNOWBALL))
1591
			.save(this.output);
1592
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SOUL_CAMPFIRE)
1593
			.define('L', ItemTags.LOGS)
1594
			.define('S', Items.STICK)
1595
			.define('#', ItemTags.SOUL_FIRE_BASE_BLOCKS)
1596
			.pattern(" S ")
1597
			.pattern("S#S")
1598
			.pattern("LLL")
1599
			.unlockedBy("has_soul_sand", this.has(ItemTags.SOUL_FIRE_BASE_BLOCKS))
1600
			.save(this.output);
1601
		this.shaped(RecipeCategory.BREWING, Items.GLISTERING_MELON_SLICE)
1602
			.define('#', Items.GOLD_NUGGET)
1603
			.define('X', Items.MELON_SLICE)
1604
			.pattern("###")
1605
			.pattern("#X#")
1606
			.pattern("###")
1607
			.unlockedBy("has_melon", this.has(Items.MELON_SLICE))
1608
			.save(this.output);
1609
		this.shaped(RecipeCategory.COMBAT, Items.SPECTRAL_ARROW, 2)
1610
			.define('#', Items.GLOWSTONE_DUST)
1611
			.define('X', Items.ARROW)
1612
			.pattern(" # ")
1613
			.pattern("#X#")
1614
			.pattern(" # ")
1615
			.unlockedBy("has_glowstone_dust", this.has(Items.GLOWSTONE_DUST))
1616
			.save(this.output);
1617
		this.shaped(RecipeCategory.TOOLS, Items.SPYGLASS)
1618
			.define('#', Items.AMETHYST_SHARD)
1619
			.define('X', Items.COPPER_INGOT)
1620
			.pattern(" # ")
1621
			.pattern(" X ")
1622
			.pattern(" X ")
1623
			.unlockedBy("has_amethyst_shard", this.has(Items.AMETHYST_SHARD))
1624
			.save(this.output);
1625
		this.shaped(RecipeCategory.MISC, Items.STICK, 4)
1626
			.define('#', ItemTags.PLANKS)
1627
			.pattern("#")
1628
			.pattern("#")
1629
			.group("sticks")
1630
			.unlockedBy("has_planks", this.has(ItemTags.PLANKS))
1631
			.save(this.output);
1632
		this.shaped(RecipeCategory.MISC, Items.STICK, 1)
1633
			.define('#', Blocks.BAMBOO)
1634
			.pattern("#")
1635
			.pattern("#")
1636
			.group("sticks")
1637
			.unlockedBy("has_bamboo", this.has(Blocks.BAMBOO))
1638
			.save(this.output, "stick_from_bamboo_item");
1639
		this.shaped(RecipeCategory.REDSTONE, Blocks.STICKY_PISTON)
1640
			.define('P', Blocks.PISTON)
1641
			.define('S', Items.SLIME_BALL)
1642
			.pattern("S")
1643
			.pattern("P")
1644
			.unlockedBy("has_slime_ball", this.has(Items.SLIME_BALL))
1645
			.save(this.output);
1646
		this.shaped(RecipeCategory.TOOLS, Items.STONE_AXE)
1647
			.define('#', Items.STICK)
1648
			.define('X', ItemTags.STONE_TOOL_MATERIALS)
1649
			.pattern("XX")
1650
			.pattern("X#")
1651
			.pattern(" #")
1652
			.unlockedBy("has_cobblestone", this.has(ItemTags.STONE_TOOL_MATERIALS))
1653
			.save(this.output);
1654
		this.slabBuilder(RecipeCategory.BUILDING_BLOCKS, Blocks.STONE_BRICK_SLAB, Ingredient.of(Blocks.STONE_BRICKS))
1655
			.unlockedBy("has_stone_bricks", this.has(ItemTags.STONE_BRICKS))
1656
			.save(this.output);
1657
		this.stairBuilder(Blocks.STONE_BRICK_STAIRS, Ingredient.of(Blocks.STONE_BRICKS))
1658
			.unlockedBy("has_stone_bricks", this.has(ItemTags.STONE_BRICKS))
1659
			.save(this.output);
1660
		this.shaped(RecipeCategory.TOOLS, Items.STONE_HOE)
1661
			.define('#', Items.STICK)
1662
			.define('X', ItemTags.STONE_TOOL_MATERIALS)
1663
			.pattern("XX")
1664
			.pattern(" #")
1665
			.pattern(" #")
1666
			.unlockedBy("has_cobblestone", this.has(ItemTags.STONE_TOOL_MATERIALS))
1667
			.save(this.output);
1668
		this.shaped(RecipeCategory.TOOLS, Items.STONE_PICKAXE)
1669
			.define('#', Items.STICK)
1670
			.define('X', ItemTags.STONE_TOOL_MATERIALS)
1671
			.pattern("XXX")
1672
			.pattern(" # ")
1673
			.pattern(" # ")
1674
			.unlockedBy("has_cobblestone", this.has(ItemTags.STONE_TOOL_MATERIALS))
1675
			.save(this.output);
1676
		this.shaped(RecipeCategory.TOOLS, Items.STONE_SHOVEL)
1677
			.define('#', Items.STICK)
1678
			.define('X', ItemTags.STONE_TOOL_MATERIALS)
1679
			.pattern("X")
1680
			.pattern("#")
1681
			.pattern("#")
1682
			.unlockedBy("has_cobblestone", this.has(ItemTags.STONE_TOOL_MATERIALS))
1683
			.save(this.output);
1684
		this.slab(RecipeCategory.BUILDING_BLOCKS, Blocks.SMOOTH_STONE_SLAB, Blocks.SMOOTH_STONE);
1685
		this.shaped(RecipeCategory.COMBAT, Items.STONE_SWORD)
1686
			.define('#', Items.STICK)
1687
			.define('X', ItemTags.STONE_TOOL_MATERIALS)
1688
			.pattern("X")
1689
			.pattern("X")
1690
			.pattern("#")
1691
			.unlockedBy("has_cobblestone", this.has(ItemTags.STONE_TOOL_MATERIALS))
1692
			.save(this.output);
1693
		this.shaped(RecipeCategory.COMBAT, Items.STONE_SPEAR)
1694
			.define('#', Items.STICK)
1695
			.define('X', ItemTags.STONE_TOOL_MATERIALS)
1696
			.pattern("  X")
1697
			.pattern(" # ")
1698
			.pattern("#  ")
1699
			.unlockedBy("has_cobblestone", this.has(ItemTags.STONE_TOOL_MATERIALS))
1700
			.save(this.output);
1701
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.WOOL.white())
1702
			.define('#', Items.STRING)
1703
			.pattern("##")
1704
			.pattern("##")
1705
			.unlockedBy("has_string", this.has(Items.STRING))
1706
			.save(this.output, getConversionRecipeName(Blocks.WOOL.white(), Items.STRING));
1707
		this.oneToOneConversionRecipe(Items.SUGAR, Blocks.SUGAR_CANE, "sugar");
1708
		this.shapeless(RecipeCategory.MISC, Items.SUGAR, 3)
1709
			.requires(Items.HONEY_BOTTLE)
1710
			.group("sugar")
1711
			.unlockedBy("has_honey_bottle", this.has(Items.HONEY_BOTTLE))
1712
			.save(this.output, getConversionRecipeName(Items.SUGAR, Items.HONEY_BOTTLE));
1713
		this.shaped(RecipeCategory.REDSTONE, Blocks.TARGET)
1714
			.define('H', Items.HAY_BLOCK)
1715
			.define('R', Items.REDSTONE)
1716
			.pattern(" R ")
1717
			.pattern("RHR")
1718
			.pattern(" R ")
1719
			.unlockedBy("has_redstone", this.has(Items.REDSTONE))
1720
			.unlockedBy("has_hay_block", this.has(Blocks.HAY_BLOCK))
1721
			.save(this.output);
1722
		this.shaped(RecipeCategory.REDSTONE, Blocks.TNT)
1723
			.define('#', Ingredient.of(Blocks.SAND, Blocks.RED_SAND))
1724
			.define('X', Items.GUNPOWDER)
1725
			.pattern("X#X")
1726
			.pattern("#X#")
1727
			.pattern("X#X")
1728
			.unlockedBy("has_gunpowder", this.has(Items.GUNPOWDER))
1729
			.save(this.output);
1730
		this.shapeless(RecipeCategory.TRANSPORTATION, Items.TNT_MINECART)
1731
			.requires(Blocks.TNT)
1732
			.requires(Items.MINECART)
1733
			.unlockedBy("has_minecart", this.has(Items.MINECART))
1734
			.save(this.output);
1735
		this.shaped(RecipeCategory.DECORATIONS, Blocks.TORCH, 4)
1736
			.define('#', Items.STICK)
1737
			.define('X', Ingredient.of(Items.COAL, Items.CHARCOAL))
1738
			.pattern("X")
1739
			.pattern("#")
1740
			.unlockedBy("has_stone_pickaxe", this.has(Items.STONE_PICKAXE))
1741
			.save(this.output);
1742
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SOUL_TORCH, 4)
1743
			.define('X', Ingredient.of(Items.COAL, Items.CHARCOAL))
1744
			.define('#', Items.STICK)
1745
			.define('S', ItemTags.SOUL_FIRE_BASE_BLOCKS)
1746
			.pattern("X")
1747
			.pattern("#")
1748
			.pattern("S")
1749
			.unlockedBy("has_soul_sand", this.has(ItemTags.SOUL_FIRE_BASE_BLOCKS))
1750
			.save(this.output);
1751
		this.shaped(RecipeCategory.DECORATIONS, Blocks.COPPER_TORCH, 4)
1752
			.define('X', Ingredient.of(Items.COAL, Items.CHARCOAL))
1753
			.define('#', Items.STICK)
1754
			.define('C', Items.COPPER_NUGGET)
1755
			.pattern("C")
1756
			.pattern("X")
1757
			.pattern("#")
1758
			.unlockedBy("has_copper_nugget", this.has(Items.COPPER_NUGGET))
1759
			.save(this.output);
1760
		this.shaped(RecipeCategory.DECORATIONS, Blocks.LANTERN)
1761
			.define('#', Items.TORCH)
1762
			.define('X', Items.IRON_NUGGET)
1763
			.pattern("XXX")
1764
			.pattern("X#X")
1765
			.pattern("XXX")
1766
			.unlockedBy("has_iron_nugget", this.has(Items.IRON_NUGGET))
1767
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
1768
			.save(this.output);
1769
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SOUL_LANTERN)
1770
			.define('#', Items.SOUL_TORCH)
1771
			.define('X', Items.IRON_NUGGET)
1772
			.pattern("XXX")
1773
			.pattern("X#X")
1774
			.pattern("XXX")
1775
			.unlockedBy("has_soul_torch", this.has(Items.SOUL_TORCH))
1776
			.save(this.output);
1777
		this.shaped(RecipeCategory.DECORATIONS, Blocks.COPPER_LANTERN.weathering().unaffected())
1778
			.define('#', Items.COPPER_TORCH)
1779
			.define('X', Items.COPPER_NUGGET)
1780
			.pattern("XXX")
1781
			.pattern("X#X")
1782
			.pattern("XXX")
1783
			.unlockedBy("has_copper_torch", this.has(Items.COPPER_TORCH))
1784
			.save(this.output);
1785
		this.shapeless(RecipeCategory.REDSTONE, Blocks.TRAPPED_CHEST)
1786
			.requires(Blocks.CHEST)
1787
			.requires(Blocks.TRIPWIRE_HOOK)
1788
			.unlockedBy("has_tripwire_hook", this.has(Blocks.TRIPWIRE_HOOK))
1789
			.save(this.output);
1790
		this.shaped(RecipeCategory.REDSTONE, Blocks.TRIPWIRE_HOOK, 2)
1791
			.define('#', ItemTags.PLANKS)
1792
			.define('S', Items.STICK)
1793
			.define('I', Items.IRON_INGOT)
1794
			.pattern("I")
1795
			.pattern("S")
1796
			.pattern("#")
1797
			.unlockedBy("has_string", this.has(Items.STRING))
1798
			.save(this.output);
1799
		this.shaped(RecipeCategory.COMBAT, Items.TURTLE_HELMET)
1800
			.define('X', Items.TURTLE_SCUTE)
1801
			.pattern("XXX")
1802
			.pattern("X X")
1803
			.unlockedBy("has_turtle_scute", this.has(Items.TURTLE_SCUTE))
1804
			.save(this.output);
1805
		this.shaped(RecipeCategory.COMBAT, Items.WOLF_ARMOR)
1806
			.define('X', Items.ARMADILLO_SCUTE)
1807
			.pattern("X  ")
1808
			.pattern("XXX")
1809
			.pattern("X X")
1810
			.unlockedBy("has_armadillo_scute", this.has(Items.ARMADILLO_SCUTE))
1811
			.save(this.output);
1812
		this.shapeless(RecipeCategory.MISC, Items.WHEAT, 9).requires(Blocks.HAY_BLOCK).unlockedBy("has_hay_block", this.has(Blocks.HAY_BLOCK)).save(this.output);
1813
		this.shapeless(RecipeCategory.MISC, Items.DYE.white())
1814
			.requires(Items.BONE_MEAL)
1815
			.group("white_dye")
1816
			.unlockedBy("has_bone_meal", this.has(Items.BONE_MEAL))
1817
			.save(this.output);
1818
		this.oneToOneConversionRecipe(Items.DYE.white(), Blocks.LILY_OF_THE_VALLEY, "white_dye");
1819
		this.shaped(RecipeCategory.TOOLS, Items.WOODEN_AXE)
1820
			.define('#', Items.STICK)
1821
			.define('X', ItemTags.WOODEN_TOOL_MATERIALS)
1822
			.pattern("XX")
1823
			.pattern("X#")
1824
			.pattern(" #")
1825
			.unlockedBy("has_stick", this.has(Items.STICK))
1826
			.save(this.output);
1827
		this.shaped(RecipeCategory.TOOLS, Items.WOODEN_HOE)
1828
			.define('#', Items.STICK)
1829
			.define('X', ItemTags.WOODEN_TOOL_MATERIALS)
1830
			.pattern("XX")
1831
			.pattern(" #")
1832
			.pattern(" #")
1833
			.unlockedBy("has_stick", this.has(Items.STICK))
1834
			.save(this.output);
1835
		this.shaped(RecipeCategory.TOOLS, Items.WOODEN_PICKAXE)
1836
			.define('#', Items.STICK)
1837
			.define('X', ItemTags.WOODEN_TOOL_MATERIALS)
1838
			.pattern("XXX")
1839
			.pattern(" # ")
1840
			.pattern(" # ")
1841
			.unlockedBy("has_stick", this.has(Items.STICK))
1842
			.save(this.output);
1843
		this.shaped(RecipeCategory.TOOLS, Items.WOODEN_SHOVEL)
1844
			.define('#', Items.STICK)
1845
			.define('X', ItemTags.WOODEN_TOOL_MATERIALS)
1846
			.pattern("X")
1847
			.pattern("#")
1848
			.pattern("#")
1849
			.unlockedBy("has_stick", this.has(Items.STICK))
1850
			.save(this.output);
1851
		this.shaped(RecipeCategory.COMBAT, Items.WOODEN_SWORD)
1852
			.define('#', Items.STICK)
1853
			.define('X', ItemTags.WOODEN_TOOL_MATERIALS)
1854
			.pattern("X")
1855
			.pattern("X")
1856
			.pattern("#")
1857
			.unlockedBy("has_stick", this.has(Items.STICK))
1858
			.save(this.output);
1859
		this.shaped(RecipeCategory.COMBAT, Items.WOODEN_SPEAR)
1860
			.define('#', Items.STICK)
1861
			.define('X', ItemTags.WOODEN_TOOL_MATERIALS)
1862
			.pattern("  X")
1863
			.pattern(" # ")
1864
			.pattern("#  ")
1865
			.unlockedBy("has_stick", this.has(Items.STICK))
1866
			.save(this.output);
1867
		this.shapeless(RecipeCategory.MISC, Items.WRITABLE_BOOK)
1868
			.requires(Items.BOOK)
1869
			.requires(Items.INK_SAC)
1870
			.requires(Items.FEATHER)
1871
			.unlockedBy("has_book", this.has(Items.BOOK))
1872
			.save(this.output);
1873
		this.oneToOneConversionRecipe(Items.DYE.yellow(), Blocks.DANDELION, "yellow_dye");
1874
		this.oneToOneConversionRecipe(Items.DYE.yellow(), Blocks.GOLDEN_DANDELION, "yellow_dye");
1875
		this.oneToOneConversionRecipe(Items.DYE.yellow(), Blocks.SUNFLOWER, "yellow_dye", 2);
1876
		this.oneToOneConversionRecipe(Items.DYE.yellow(), Blocks.WILDFLOWERS, "yellow_dye");
1877
		this.nineBlockStorageRecipes(RecipeCategory.FOOD, Items.DRIED_KELP, RecipeCategory.BUILDING_BLOCKS, Items.DRIED_KELP_BLOCK);
1878
		this.shaped(RecipeCategory.MISC, Blocks.CONDUIT)
1879
			.define('#', Items.NAUTILUS_SHELL)
1880
			.define('X', Items.HEART_OF_THE_SEA)
1881
			.pattern("###")
1882
			.pattern("#X#")
1883
			.pattern("###")
1884
			.unlockedBy("has_nautilus_core", this.has(Items.HEART_OF_THE_SEA))
1885
			.unlockedBy("has_nautilus_shell", this.has(Items.NAUTILUS_SHELL))
1886
			.save(this.output);
1887
		this.wall(RecipeCategory.DECORATIONS, Blocks.RED_SANDSTONE_WALL, Blocks.RED_SANDSTONE);
1888
		this.wall(RecipeCategory.DECORATIONS, Blocks.STONE_BRICK_WALL, Blocks.STONE_BRICKS);
1889
		this.wall(RecipeCategory.DECORATIONS, Blocks.SANDSTONE_WALL, Blocks.SANDSTONE);
1890
		this.shapeless(RecipeCategory.MISC, Items.FIELD_MASONED_BANNER_PATTERN)
1891
			.requires(Items.PAPER)
1892
			.requires(Blocks.BRICKS)
1893
			.unlockedBy("has_bricks", this.has(Blocks.BRICKS))
1894
			.save(this.output);
1895
		this.shapeless(RecipeCategory.MISC, Items.BORDURE_INDENTED_BANNER_PATTERN)
1896
			.requires(Items.PAPER)
1897
			.requires(Blocks.VINE)
1898
			.unlockedBy("has_vines", this.has(Blocks.VINE))
1899
			.save(this.output);
1900
		this.shapeless(RecipeCategory.MISC, Items.CREEPER_BANNER_PATTERN)
1901
			.requires(Items.PAPER)
1902
			.requires(Items.CREEPER_HEAD)
1903
			.unlockedBy("has_creeper_head", this.has(Items.CREEPER_HEAD))
1904
			.save(this.output);
1905
		this.shapeless(RecipeCategory.MISC, Items.SKULL_BANNER_PATTERN)
1906
			.requires(Items.PAPER)
1907
			.requires(Items.WITHER_SKELETON_SKULL)
1908
			.unlockedBy("has_wither_skeleton_skull", this.has(Items.WITHER_SKELETON_SKULL))
1909
			.save(this.output);
1910
		this.shapeless(RecipeCategory.MISC, Items.FLOWER_BANNER_PATTERN)
1911
			.requires(Items.PAPER)
1912
			.requires(Blocks.OXEYE_DAISY)
1913
			.unlockedBy("has_oxeye_daisy", this.has(Blocks.OXEYE_DAISY))
1914
			.save(this.output);
1915
		this.shapeless(RecipeCategory.MISC, Items.MOJANG_BANNER_PATTERN)
1916
			.requires(Items.PAPER)
1917
			.requires(Items.ENCHANTED_GOLDEN_APPLE)
1918
			.unlockedBy("has_enchanted_golden_apple", this.has(Items.ENCHANTED_GOLDEN_APPLE))
1919
			.save(this.output);
1920
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SCAFFOLDING, 6)
1921
			.define('~', Items.STRING)
1922
			.define('I', Blocks.BAMBOO)
1923
			.pattern("I~I")
1924
			.pattern("I I")
1925
			.pattern("I I")
1926
			.unlockedBy("has_bamboo", this.has(Blocks.BAMBOO))
1927
			.save(this.output);
1928
		this.shaped(RecipeCategory.DECORATIONS, Blocks.GRINDSTONE)
1929
			.define('I', Items.STICK)
1930
			.define('-', Blocks.STONE_SLAB)
1931
			.define('#', ItemTags.PLANKS)
1932
			.pattern("I-I")
1933
			.pattern("# #")
1934
			.unlockedBy("has_stone_slab", this.has(Blocks.STONE_SLAB))
1935
			.save(this.output);
1936
		this.shaped(RecipeCategory.DECORATIONS, Blocks.BLAST_FURNACE)
1937
			.define('#', Blocks.SMOOTH_STONE)
1938
			.define('X', Blocks.FURNACE)
1939
			.define('I', Items.IRON_INGOT)
1940
			.pattern("III")
1941
			.pattern("IXI")
1942
			.pattern("###")
1943
			.unlockedBy("has_smooth_stone", this.has(Blocks.SMOOTH_STONE))
1944
			.save(this.output);
1945
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SMOKER)
1946
			.define('#', ItemTags.LOGS)
1947
			.define('X', Blocks.FURNACE)
1948
			.pattern(" # ")
1949
			.pattern("#X#")
1950
			.pattern(" # ")
1951
			.unlockedBy("has_furnace", this.has(Blocks.FURNACE))
1952
			.save(this.output);
1953
		this.shaped(RecipeCategory.DECORATIONS, Blocks.CARTOGRAPHY_TABLE)
1954
			.define('#', ItemTags.PLANKS)
1955
			.define('@', Items.PAPER)
1956
			.pattern("@@")
1957
			.pattern("##")
1958
			.pattern("##")
1959
			.unlockedBy("has_paper", this.has(Items.PAPER))
1960
			.save(this.output);
1961
		this.shaped(RecipeCategory.DECORATIONS, Blocks.SMITHING_TABLE)
1962
			.define('#', ItemTags.PLANKS)
1963
			.define('@', Items.IRON_INGOT)
1964
			.pattern("@@")
1965
			.pattern("##")
1966
			.pattern("##")
1967
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
1968
			.save(this.output);
1969
		this.shaped(RecipeCategory.DECORATIONS, Blocks.FLETCHING_TABLE)
1970
			.define('#', ItemTags.PLANKS)
1971
			.define('@', Items.FLINT)
1972
			.pattern("@@")
1973
			.pattern("##")
1974
			.pattern("##")
1975
			.unlockedBy("has_flint", this.has(Items.FLINT))
1976
			.save(this.output);
1977
		this.shaped(RecipeCategory.DECORATIONS, Blocks.STONECUTTER)
1978
			.define('I', Items.IRON_INGOT)
1979
			.define('#', Blocks.STONE)
1980
			.pattern(" I ")
1981
			.pattern("###")
1982
			.unlockedBy("has_stone", this.has(Blocks.STONE))
1983
			.save(this.output);
1984
		this.shaped(RecipeCategory.DECORATIONS, Blocks.LODESTONE)
1985
			.define('S', Items.CHISELED_STONE_BRICKS)
1986
			.define('#', Items.IRON_INGOT)
1987
			.pattern("SSS")
1988
			.pattern("S#S")
1989
			.pattern("SSS")
1990
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
1991
			.unlockedBy("has_lodestone", this.has(Items.LODESTONE))
1992
			.save(this.output);
1993
		this.nineBlockStorageRecipesRecipesWithCustomUnpacking(
1994
			RecipeCategory.MISC, Items.NETHERITE_INGOT, RecipeCategory.BUILDING_BLOCKS, Items.NETHERITE_BLOCK, "netherite_ingot_from_netherite_block", "netherite_ingot"
1995
		);
1996
		this.shapeless(RecipeCategory.MISC, Items.NETHERITE_INGOT)
1997
			.requires(Items.NETHERITE_SCRAP, 4)
1998
			.requires(Items.GOLD_INGOT, 4)
1999
			.group("netherite_ingot")
2000
			.unlockedBy("has_netherite_scrap", this.has(Items.NETHERITE_SCRAP))
2001
			.save(this.output);
2002
		this.shaped(RecipeCategory.DECORATIONS, Blocks.RESPAWN_ANCHOR)
2003
			.define('O', Blocks.CRYING_OBSIDIAN)
2004
			.define('G', Blocks.GLOWSTONE)
2005
			.pattern("OOO")
2006
			.pattern("GGG")
2007
			.pattern("OOO")
2008
			.unlockedBy("has_obsidian", this.has(Blocks.CRYING_OBSIDIAN))
2009
			.save(this.output);
2010
		this.shaped(RecipeCategory.DECORATIONS, Blocks.IRON_CHAIN)
2011
			.define('I', Items.IRON_INGOT)
2012
			.define('N', Items.IRON_NUGGET)
2013
			.pattern("N")
2014
			.pattern("I")
2015
			.pattern("N")
2016
			.unlockedBy("has_iron_nugget", this.has(Items.IRON_NUGGET))
2017
			.unlockedBy("has_iron_ingot", this.has(Items.IRON_INGOT))
2018
			.save(this.output);
2019
		this.shaped(RecipeCategory.DECORATIONS, Blocks.COPPER_CHAIN.weathering().unaffected())
2020
			.define('I', Items.COPPER_INGOT)
2021
			.define('N', Items.COPPER_NUGGET)
2022
			.pattern("N")
2023
			.pattern("I")
2024
			.pattern("N")
2025
			.unlockedBy("has_copper_nugget", this.has(Items.COPPER_NUGGET))
2026
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
2027
			.save(this.output);
2028
		this.shaped(RecipeCategory.DECORATIONS, Blocks.GOLDEN_DANDELION)
2029
			.define('I', Items.DANDELION)
2030
			.define('#', Items.GOLD_NUGGET)
2031
			.pattern("###")
2032
			.pattern("#I#")
2033
			.pattern("###")
2034
			.unlockedBy("has_gold_nugget", this.has(Items.GOLD_NUGGET))
2035
			.unlockedBy("has_dandelion", this.has(Items.DANDELION))
2036
			.save(this.output);
2037
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.TINTED_GLASS, 2)
2038
			.define('G', Blocks.GLASS)
2039
			.define('S', Items.AMETHYST_SHARD)
2040
			.pattern(" S ")
2041
			.pattern("SGS")
2042
			.pattern(" S ")
2043
			.unlockedBy("has_amethyst_shard", this.has(Items.AMETHYST_SHARD))
2044
			.save(this.output);
2045
		this.twoByTwoPacker(RecipeCategory.BUILDING_BLOCKS, Blocks.AMETHYST_BLOCK, Items.AMETHYST_SHARD);
2046
		this.shaped(RecipeCategory.TOOLS, Items.RECOVERY_COMPASS)
2047
			.define('C', Items.COMPASS)
2048
			.define('S', Items.ECHO_SHARD)
2049
			.pattern("SSS")
2050
			.pattern("SCS")
2051
			.pattern("SSS")
2052
			.unlockedBy("has_echo_shard", this.has(Items.ECHO_SHARD))
2053
			.save(this.output);
2054
		this.shaped(RecipeCategory.REDSTONE, Items.CALIBRATED_SCULK_SENSOR)
2055
			.define('#', Items.AMETHYST_SHARD)
2056
			.define('X', Items.SCULK_SENSOR)
2057
			.pattern(" # ")
2058
			.pattern("#X#")
2059
			.unlockedBy("has_amethyst_shard", this.has(Items.AMETHYST_SHARD))
2060
			.save(this.output);
2061
		this.threeByThreePacker(RecipeCategory.MISC, Items.MUSIC_DISC_5, Items.DISC_FRAGMENT_5);
2062
		this.dyedItem(Items.LEATHER_HELMET, "dyed_armor");
2063
		this.dyedItem(Items.LEATHER_CHESTPLATE, "dyed_armor");
2064
		this.dyedItem(Items.LEATHER_LEGGINGS, "dyed_armor");
2065
		this.dyedItem(Items.LEATHER_BOOTS, "dyed_armor");
2066
		this.dyedItem(Items.LEATHER_HORSE_ARMOR, "dyed_armor");
2067
		this.dyedItem(Items.WOLF_ARMOR, "dyed_armor");
2068
		CustomCraftingRecipeBuilder.customCrafting(
2069
				RecipeCategory.MISC,
2070
				(commonInfo, bookInfo) -> new ImbueRecipe(
2071
					commonInfo, bookInfo, Ingredient.of(Items.LINGERING_POTION), Ingredient.of(Items.ARROW), new ItemStackTemplate(Items.TIPPED_ARROW, 8)
2072
				)
2073
			)
2074
			.unlockedBy("has_lingering_potion", this.has(Items.LINGERING_POTION))
2075
			.save(this.output, "tipped_arrow");
2076
		SpecialRecipeBuilder.special(
2077
				() -> new BookCloningRecipe(
2078
					Ingredient.of(Items.WRITTEN_BOOK),
2079
					this.tag(ItemTags.BOOK_CLONING_TARGET),
2080
					BookCloningRecipe.DEFAULT_BOOK_GENERATION_RANGES,
2081
					new ItemStackTemplate(Items.WRITTEN_BOOK)
2082
				)
2083
			)
2084
			.save(this.output, "book_cloning");
2085
		SpecialRecipeBuilder.special(
2086
				() -> new FireworkRocketRecipe(
2087
					Ingredient.of(Items.PAPER), Ingredient.of(Items.GUNPOWDER), Ingredient.of(Items.FIREWORK_STAR), new ItemStackTemplate(Items.FIREWORK_ROCKET, 3)
2088
				)
2089
			)
2090
			.save(this.output, "firework_rocket");
2091
		SpecialRecipeBuilder.special(
2092
				() -> new FireworkStarRecipe(
2093
					Map.of(
2094
						FireworkExplosion.Shape.LARGE_BALL,
2095
						Ingredient.of(Items.FIRE_CHARGE),
2096
						FireworkExplosion.Shape.BURST,
2097
						Ingredient.of(Items.FEATHER),
2098
						FireworkExplosion.Shape.STAR,
2099
						Ingredient.of(Items.GOLD_NUGGET),
2100
						FireworkExplosion.Shape.CREEPER,
2101
						this.tag(ItemTags.SKULLS)
2102
					),
2103
					Ingredient.of(Items.DIAMOND),
2104
					Ingredient.of(Items.GLOWSTONE_DUST),
2105
					Ingredient.of(Items.GUNPOWDER),
2106
					this.tag(ItemTags.DYES),
2107
					new ItemStackTemplate(Items.FIREWORK_STAR)
2108
				)
2109
			)
2110
			.save(this.output, "firework_star");
2111
		SpecialRecipeBuilder.special(
2112
				() -> new FireworkStarFadeRecipe(Ingredient.of(Items.FIREWORK_STAR), this.tag(ItemTags.DYES), new ItemStackTemplate(Items.FIREWORK_STAR))
2113
			)
2114
			.save(this.output, "firework_star_fade");
2115
		TransmuteRecipeBuilder.transmute(RecipeCategory.MISC, this.tag(ItemTags.CLONABLE_MAPS), Ingredient.of(Items.MAP), TransmuteResult.KEEP_INPUT_ITEM)
2116
			.addMaterialCountToOutput()
2117
			.setMaterialCount(TransmuteRecipe.FULL_RANGE_MATERIAL_COUNT)
2118
			.group("map_cloning")
2119
			.unlockedBy("has_filled_map", this.has(Items.FILLED_MAP))
2120
			.save(this.output, "map_cloning");
2121
		SpecialRecipeBuilder.special(() -> new MapExtendingRecipe(this.tag(ItemTags.EXTENDABLE_MAPS), Ingredient.of(Items.PAPER), TransmuteResult.KEEP_INPUT_ITEM))
2122
			.save(this.output, "map_extending");
2123
		SpecialRecipeBuilder.special(RepairItemRecipe::new).save(this.output, "repair_item");
2124
		SpecialRecipeBuilder.special(() -> new ShieldDecorationRecipe(this.tag(ItemTags.BANNERS), Ingredient.of(Items.SHIELD), new ItemStackTemplate(Items.SHIELD)))
2125
			.save(this.output, "shield_decoration");
2126
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.POTATO), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.BAKED_POTATO, 0.35F, 200)
2127
			.unlockedBy("has_potato", this.has(Items.POTATO))
2128
			.save(this.output);
2129
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.CLAY_BALL), RecipeCategory.MISC, CookingBookCategory.MISC, Items.BRICK, 0.3F, 200)
2130
			.unlockedBy("has_clay_ball", this.has(Items.CLAY_BALL))
2131
			.save(this.output);
2132
		SimpleCookingRecipeBuilder.smelting(this.tag(ItemTags.LOGS_THAT_BURN), RecipeCategory.MISC, CookingBookCategory.MISC, Items.CHARCOAL, 0.15F, 200)
2133
			.unlockedBy("has_log", this.has(ItemTags.LOGS_THAT_BURN))
2134
			.save(this.output);
2135
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.CHORUS_FRUIT), RecipeCategory.MISC, CookingBookCategory.MISC, Items.POPPED_CHORUS_FRUIT, 0.1F, 200)
2136
			.unlockedBy("has_chorus_fruit", this.has(Items.CHORUS_FRUIT))
2137
			.save(this.output);
2138
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.BEEF), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.COOKED_BEEF, 0.35F, 200)
2139
			.unlockedBy("has_beef", this.has(Items.BEEF))
2140
			.save(this.output);
2141
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.CHICKEN), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.COOKED_CHICKEN, 0.35F, 200)
2142
			.unlockedBy("has_chicken", this.has(Items.CHICKEN))
2143
			.save(this.output);
2144
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.COD), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.COOKED_COD, 0.35F, 200)
2145
			.unlockedBy("has_cod", this.has(Items.COD))
2146
			.save(this.output);
2147
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.KELP), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.DRIED_KELP, 0.1F, 200)
2148
			.unlockedBy("has_kelp", this.has(Blocks.KELP))
2149
			.save(this.output, getSmeltingRecipeName(Items.DRIED_KELP));
2150
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.SALMON), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.COOKED_SALMON, 0.35F, 200)
2151
			.unlockedBy("has_salmon", this.has(Items.SALMON))
2152
			.save(this.output);
2153
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.MUTTON), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.COOKED_MUTTON, 0.35F, 200)
2154
			.unlockedBy("has_mutton", this.has(Items.MUTTON))
2155
			.save(this.output);
2156
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.PORKCHOP), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.COOKED_PORKCHOP, 0.35F, 200)
2157
			.unlockedBy("has_porkchop", this.has(Items.PORKCHOP))
2158
			.save(this.output);
2159
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.RABBIT), RecipeCategory.FOOD, CookingBookCategory.FOOD, Items.COOKED_RABBIT, 0.35F, 200)
2160
			.unlockedBy("has_rabbit", this.has(Items.RABBIT))
2161
			.save(this.output);
2162
		this.oreSmelting(COAL_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.COAL, 0.1F, 200, "coal");
2163
		this.oreSmelting(IRON_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.IRON_INGOT, 0.7F, 200, "iron_ingot");
2164
		this.oreSmelting(COPPER_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.COPPER_INGOT, 0.7F, 200, "copper_ingot");
2165
		this.oreSmelting(GOLD_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.GOLD_INGOT, 1.0F, 200, "gold_ingot");
2166
		this.oreSmelting(DIAMOND_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.DIAMOND, 1.0F, 200, "diamond");
2167
		this.oreSmelting(LAPIS_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.LAPIS_LAZULI, 0.2F, 200, "lapis_lazuli");
2168
		this.oreSmelting(REDSTONE_SMELTABLES, RecipeCategory.REDSTONE, CookingBookCategory.BLOCKS, Items.REDSTONE, 0.7F, 200, "redstone");
2169
		this.oreSmelting(EMERALD_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.EMERALD, 1.0F, 200, "emerald");
2170
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.RAW_IRON, RecipeCategory.BUILDING_BLOCKS, Items.RAW_IRON_BLOCK);
2171
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.RAW_COPPER, RecipeCategory.BUILDING_BLOCKS, Items.RAW_COPPER_BLOCK);
2172
		this.nineBlockStorageRecipes(RecipeCategory.MISC, Items.RAW_GOLD, RecipeCategory.BUILDING_BLOCKS, Items.RAW_GOLD_BLOCK);
2173
		SimpleCookingRecipeBuilder.smelting(this.tag(ItemTags.SMELTS_TO_GLASS), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.GLASS, 0.1F, 200)
2174
			.unlockedBy("has_smelts_to_glass", this.has(ItemTags.SMELTS_TO_GLASS))
2175
			.save(this.output);
2176
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.SEA_PICKLE), RecipeCategory.MISC, CookingBookCategory.MISC, Items.DYE.lime(), 0.1F, 200)
2177
			.unlockedBy("has_sea_pickle", this.has(Blocks.SEA_PICKLE))
2178
			.save(this.output, getSmeltingRecipeName(Items.DYE.lime()));
2179
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.CACTUS), RecipeCategory.MISC, CookingBookCategory.MISC, Items.DYE.green(), 1.0F, 200)
2180
			.unlockedBy("has_cactus", this.has(Blocks.CACTUS))
2181
			.save(this.output);
2182
		SimpleCookingRecipeBuilder.smelting(
2183
				Ingredient.of(
2184
					Items.GOLDEN_PICKAXE,
2185
					Items.GOLDEN_SHOVEL,
2186
					Items.GOLDEN_AXE,
2187
					Items.GOLDEN_HOE,
2188
					Items.GOLDEN_SWORD,
2189
					Items.GOLDEN_SPEAR,
2190
					Items.GOLDEN_HELMET,
2191
					Items.GOLDEN_CHESTPLATE,
2192
					Items.GOLDEN_LEGGINGS,
2193
					Items.GOLDEN_BOOTS,
2194
					Items.GOLDEN_HORSE_ARMOR,
2195
					Items.GOLDEN_NAUTILUS_ARMOR
2196
				),
2197
				RecipeCategory.MISC,
2198
				CookingBookCategory.MISC,
2199
				Items.GOLD_NUGGET,
2200
				0.1F,
2201
				200
2202
			)
2203
			.unlockedBy("has_golden_pickaxe", this.has(Items.GOLDEN_PICKAXE))
2204
			.unlockedBy("has_golden_shovel", this.has(Items.GOLDEN_SHOVEL))
2205
			.unlockedBy("has_golden_axe", this.has(Items.GOLDEN_AXE))
2206
			.unlockedBy("has_golden_hoe", this.has(Items.GOLDEN_HOE))
2207
			.unlockedBy("has_golden_sword", this.has(Items.GOLDEN_SWORD))
2208
			.unlockedBy("has_golden_spear", this.has(Items.GOLDEN_SPEAR))
2209
			.unlockedBy("has_golden_helmet", this.has(Items.GOLDEN_HELMET))
2210
			.unlockedBy("has_golden_chestplate", this.has(Items.GOLDEN_CHESTPLATE))
2211
			.unlockedBy("has_golden_leggings", this.has(Items.GOLDEN_LEGGINGS))
2212
			.unlockedBy("has_golden_boots", this.has(Items.GOLDEN_BOOTS))
2213
			.unlockedBy("has_golden_horse_armor", this.has(Items.GOLDEN_HORSE_ARMOR))
2214
			.unlockedBy("has_golden_nautilus_armor", this.has(Items.GOLDEN_NAUTILUS_ARMOR))
2215
			.save(this.output, getSmeltingRecipeName(Items.GOLD_NUGGET));
2216
		SimpleCookingRecipeBuilder.smelting(
2217
				Ingredient.of(
2218
					Items.COPPER_PICKAXE,
2219
					Items.COPPER_SHOVEL,
2220
					Items.COPPER_AXE,
2221
					Items.COPPER_HOE,
2222
					Items.COPPER_SWORD,
2223
					Items.COPPER_SPEAR,
2224
					Items.COPPER_HELMET,
2225
					Items.COPPER_CHESTPLATE,
2226
					Items.COPPER_LEGGINGS,
2227
					Items.COPPER_BOOTS,
2228
					Items.COPPER_HORSE_ARMOR,
2229
					Items.COPPER_NAUTILUS_ARMOR
2230
				),
2231
				RecipeCategory.MISC,
2232
				CookingBookCategory.MISC,
2233
				Items.COPPER_NUGGET,
2234
				0.1F,
2235
				200
2236
			)
2237
			.unlockedBy("has_copper_pickaxe", this.has(Items.COPPER_PICKAXE))
2238
			.unlockedBy("has_copper_shovel", this.has(Items.COPPER_SHOVEL))
2239
			.unlockedBy("has_copper_axe", this.has(Items.COPPER_AXE))
2240
			.unlockedBy("has_copper_hoe", this.has(Items.COPPER_HOE))
2241
			.unlockedBy("has_copper_sword", this.has(Items.COPPER_SWORD))
2242
			.unlockedBy("has_copper_spear", this.has(Items.COPPER_SPEAR))
2243
			.unlockedBy("has_copper_helmet", this.has(Items.COPPER_HELMET))
2244
			.unlockedBy("has_copper_chestplate", this.has(Items.COPPER_CHESTPLATE))
2245
			.unlockedBy("has_copper_leggings", this.has(Items.COPPER_LEGGINGS))
2246
			.unlockedBy("has_copper_boots", this.has(Items.COPPER_BOOTS))
2247
			.unlockedBy("has_copper_horse_armor", this.has(Items.COPPER_HORSE_ARMOR))
2248
			.unlockedBy("has_copper_nautilus_armor", this.has(Items.COPPER_NAUTILUS_ARMOR))
2249
			.save(this.output, getSmeltingRecipeName(Items.COPPER_NUGGET));
2250
		SimpleCookingRecipeBuilder.smelting(
2251
				Ingredient.of(
2252
					Items.IRON_PICKAXE,
2253
					Items.IRON_SHOVEL,
2254
					Items.IRON_AXE,
2255
					Items.IRON_HOE,
2256
					Items.IRON_SWORD,
2257
					Items.IRON_SPEAR,
2258
					Items.IRON_HELMET,
2259
					Items.IRON_CHESTPLATE,
2260
					Items.IRON_LEGGINGS,
2261
					Items.IRON_BOOTS,
2262
					Items.IRON_HORSE_ARMOR,
2263
					Items.CHAINMAIL_HELMET,
2264
					Items.CHAINMAIL_CHESTPLATE,
2265
					Items.CHAINMAIL_LEGGINGS,
2266
					Items.CHAINMAIL_BOOTS,
2267
					Items.IRON_NAUTILUS_ARMOR
2268
				),
2269
				RecipeCategory.MISC,
2270
				CookingBookCategory.MISC,
2271
				Items.IRON_NUGGET,
2272
				0.1F,
2273
				200
2274
			)
2275
			.unlockedBy("has_iron_pickaxe", this.has(Items.IRON_PICKAXE))
2276
			.unlockedBy("has_iron_shovel", this.has(Items.IRON_SHOVEL))
2277
			.unlockedBy("has_iron_axe", this.has(Items.IRON_AXE))
2278
			.unlockedBy("has_iron_hoe", this.has(Items.IRON_HOE))
2279
			.unlockedBy("has_iron_sword", this.has(Items.IRON_SWORD))
2280
			.unlockedBy("has_iron_spear", this.has(Items.IRON_SPEAR))
2281
			.unlockedBy("has_iron_helmet", this.has(Items.IRON_HELMET))
2282
			.unlockedBy("has_iron_chestplate", this.has(Items.IRON_CHESTPLATE))
2283
			.unlockedBy("has_iron_leggings", this.has(Items.IRON_LEGGINGS))
2284
			.unlockedBy("has_iron_boots", this.has(Items.IRON_BOOTS))
2285
			.unlockedBy("has_iron_horse_armor", this.has(Items.IRON_HORSE_ARMOR))
2286
			.unlockedBy("has_chainmail_helmet", this.has(Items.CHAINMAIL_HELMET))
2287
			.unlockedBy("has_chainmail_chestplate", this.has(Items.CHAINMAIL_CHESTPLATE))
2288
			.unlockedBy("has_chainmail_leggings", this.has(Items.CHAINMAIL_LEGGINGS))
2289
			.unlockedBy("has_chainmail_boots", this.has(Items.CHAINMAIL_BOOTS))
2290
			.unlockedBy("has_iron_nautilus_armor", this.has(Items.IRON_NAUTILUS_ARMOR))
2291
			.save(this.output, getSmeltingRecipeName(Items.IRON_NUGGET));
2292
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.CLAY), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.TERRACOTTA, 0.35F, 200)
2293
			.unlockedBy("has_clay_block", this.has(Blocks.CLAY))
2294
			.save(this.output);
2295
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.NETHERRACK), RecipeCategory.MISC, CookingBookCategory.MISC, Items.NETHER_BRICK, 0.1F, 200)
2296
			.unlockedBy("has_netherrack", this.has(Blocks.NETHERRACK))
2297
			.save(this.output);
2298
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Items.RESIN_CLUMP), RecipeCategory.MISC, CookingBookCategory.MISC, Items.RESIN_BRICK, 0.1F, 200)
2299
			.unlockedBy("has_resin_clump", this.has(Blocks.RESIN_CLUMP))
2300
			.save(this.output);
2301
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.NETHER_QUARTZ_ORE), RecipeCategory.MISC, CookingBookCategory.MISC, Items.QUARTZ, 0.2F, 200)
2302
			.unlockedBy("has_nether_quartz_ore", this.has(Blocks.NETHER_QUARTZ_ORE))
2303
			.save(this.output);
2304
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.WET_SPONGE), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.SPONGE, 0.15F, 200)
2305
			.unlockedBy("has_wet_sponge", this.has(Blocks.WET_SPONGE))
2306
			.save(this.output);
2307
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.STONE), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.SMOOTH_STONE, 0.1F, 200)
2308
			.unlockedBy("has_stone", this.has(Blocks.STONE))
2309
			.save(this.output);
2310
		SimpleCookingRecipeBuilder.smelting(
2311
				Ingredient.of(Blocks.SANDSTONE), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.SMOOTH_SANDSTONE, 0.1F, 200
2312
			)
2313
			.unlockedBy("has_sandstone", this.has(Blocks.SANDSTONE))
2314
			.save(this.output);
2315
		SimpleCookingRecipeBuilder.smelting(
2316
				Ingredient.of(Blocks.RED_SANDSTONE), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.SMOOTH_RED_SANDSTONE, 0.1F, 200
2317
			)
2318
			.unlockedBy("has_red_sandstone", this.has(Blocks.RED_SANDSTONE))
2319
			.save(this.output);
2320
		SimpleCookingRecipeBuilder.smelting(
2321
				Ingredient.of(Blocks.QUARTZ_BLOCK), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.SMOOTH_QUARTZ, 0.1F, 200
2322
			)
2323
			.unlockedBy("has_quartz_block", this.has(Blocks.QUARTZ_BLOCK))
2324
			.save(this.output);
2325
		DyeColor.VALUES
2326
			.forEach(
2327
				dyeColor -> SimpleCookingRecipeBuilder.smelting(
2328
						Ingredient.of(Blocks.DYED_TERRACOTTA.pick(dyeColor)),
2329
						RecipeCategory.DECORATIONS,
2330
						CookingBookCategory.BLOCKS,
2331
						Items.GLAZED_TERRACOTTA.pick(dyeColor),
2332
						0.1F,
2333
						200
2334
					)
2335
					.unlockedBy("has_" + dyeColor.getName() + "_terracotta", this.has(Blocks.DYED_TERRACOTTA.pick(dyeColor)))
2336
					.save(this.output)
2337
			);
2338
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.ANCIENT_DEBRIS), RecipeCategory.MISC, CookingBookCategory.MISC, Items.NETHERITE_SCRAP, 2.0F, 200)
2339
			.unlockedBy("has_ancient_debris", this.has(Blocks.ANCIENT_DEBRIS))
2340
			.save(this.output);
2341
		SimpleCookingRecipeBuilder.smelting(Ingredient.of(Blocks.BASALT), RecipeCategory.BUILDING_BLOCKS, CookingBookCategory.BLOCKS, Items.SMOOTH_BASALT, 0.1F, 200)
2342
			.unlockedBy("has_basalt", this.has(Blocks.BASALT))
2343
			.save(this.output);
2344
		SimpleCookingRecipeBuilder.smelting(this.tag(ItemTags.LEAVES), RecipeCategory.MISC, CookingBookCategory.BLOCKS, Items.LEAF_LITTER, 0.1F, 200)
2345
			.unlockedBy("has_leaves", this.has(ItemTags.LEAVES))
2346
			.save(this.output);
2347
		this.oreBlasting(COAL_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.COAL, 0.1F, 200, "coal");
2348
		this.oreBlasting(IRON_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.IRON_INGOT, 0.7F, 200, "iron_ingot");
2349
		this.oreBlasting(COPPER_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.COPPER_INGOT, 0.7F, 200, "copper_ingot");
2350
		this.oreBlasting(GOLD_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.GOLD_INGOT, 1.0F, 200, "gold_ingot");
2351
		this.oreBlasting(DIAMOND_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.DIAMOND, 1.0F, 200, "diamond");
2352
		this.oreBlasting(LAPIS_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.LAPIS_LAZULI, 0.2F, 200, "lapis_lazuli");
2353
		this.oreBlasting(REDSTONE_SMELTABLES, RecipeCategory.REDSTONE, CookingBookCategory.BLOCKS, Items.REDSTONE, 0.7F, 200, "redstone");
2354
		this.oreBlasting(EMERALD_SMELTABLES, RecipeCategory.MISC, CookingBookCategory.MISC, Items.EMERALD, 1.0F, 200, "emerald");
2355
		SimpleCookingRecipeBuilder.blasting(Ingredient.of(Blocks.NETHER_QUARTZ_ORE), RecipeCategory.MISC, CookingBookCategory.MISC, Items.QUARTZ, 0.2F, 200)
2356
			.unlockedBy("has_nether_quartz_ore", this.has(Blocks.NETHER_QUARTZ_ORE))
2357
			.save(this.output, getBlastingRecipeName(Items.QUARTZ));
2358
		SimpleCookingRecipeBuilder.blasting(
2359
				Ingredient.of(
2360
					Items.GOLDEN_PICKAXE,
2361
					Items.GOLDEN_SHOVEL,
2362
					Items.GOLDEN_AXE,
2363
					Items.GOLDEN_HOE,
2364
					Items.GOLDEN_SWORD,
2365
					Items.GOLDEN_SPEAR,
2366
					Items.GOLDEN_HELMET,
2367
					Items.GOLDEN_CHESTPLATE,
2368
					Items.GOLDEN_LEGGINGS,
2369
					Items.GOLDEN_BOOTS,
2370
					Items.GOLDEN_HORSE_ARMOR,
2371
					Items.GOLDEN_NAUTILUS_ARMOR
2372
				),
2373
				RecipeCategory.MISC,
2374
				CookingBookCategory.MISC,
2375
				Items.GOLD_NUGGET,
2376
				0.1F,
2377
				200
2378
			)
2379
			.unlockedBy("has_golden_pickaxe", this.has(Items.GOLDEN_PICKAXE))
2380
			.unlockedBy("has_golden_shovel", this.has(Items.GOLDEN_SHOVEL))
2381
			.unlockedBy("has_golden_axe", this.has(Items.GOLDEN_AXE))
2382
			.unlockedBy("has_golden_hoe", this.has(Items.GOLDEN_HOE))
2383
			.unlockedBy("has_golden_sword", this.has(Items.GOLDEN_SWORD))
2384
			.unlockedBy("has_golden_spear", this.has(Items.GOLDEN_SPEAR))
2385
			.unlockedBy("has_golden_helmet", this.has(Items.GOLDEN_HELMET))
2386
			.unlockedBy("has_golden_chestplate", this.has(Items.GOLDEN_CHESTPLATE))
2387
			.unlockedBy("has_golden_leggings", this.has(Items.GOLDEN_LEGGINGS))
2388
			.unlockedBy("has_golden_boots", this.has(Items.GOLDEN_BOOTS))
2389
			.unlockedBy("has_golden_horse_armor", this.has(Items.GOLDEN_HORSE_ARMOR))
2390
			.unlockedBy("has_golden_nautilus_armor", this.has(Items.GOLDEN_NAUTILUS_ARMOR))
2391
			.save(this.output, getBlastingRecipeName(Items.GOLD_NUGGET));
2392
		SimpleCookingRecipeBuilder.blasting(
2393
				Ingredient.of(
2394
					Items.COPPER_PICKAXE,
2395
					Items.COPPER_SHOVEL,
2396
					Items.COPPER_AXE,
2397
					Items.COPPER_HOE,
2398
					Items.COPPER_SWORD,
2399
					Items.COPPER_SPEAR,
2400
					Items.COPPER_HELMET,
2401
					Items.COPPER_CHESTPLATE,
2402
					Items.COPPER_LEGGINGS,
2403
					Items.COPPER_BOOTS,
2404
					Items.COPPER_HORSE_ARMOR,
2405
					Items.COPPER_NAUTILUS_ARMOR
2406
				),
2407
				RecipeCategory.MISC,
2408
				CookingBookCategory.MISC,
2409
				Items.COPPER_NUGGET,
2410
				0.1F,
2411
				200
2412
			)
2413
			.unlockedBy("has_copper_pickaxe", this.has(Items.COPPER_PICKAXE))
2414
			.unlockedBy("has_copper_shovel", this.has(Items.COPPER_SHOVEL))
2415
			.unlockedBy("has_copper_axe", this.has(Items.COPPER_AXE))
2416
			.unlockedBy("has_copper_hoe", this.has(Items.COPPER_HOE))
2417
			.unlockedBy("has_copper_sword", this.has(Items.COPPER_SWORD))
2418
			.unlockedBy("has_copper_spear", this.has(Items.COPPER_SPEAR))
2419
			.unlockedBy("has_copper_helmet", this.has(Items.COPPER_HELMET))
2420
			.unlockedBy("has_copper_chestplate", this.has(Items.COPPER_CHESTPLATE))
2421
			.unlockedBy("has_copper_leggings", this.has(Items.COPPER_LEGGINGS))
2422
			.unlockedBy("has_copper_boots", this.has(Items.COPPER_BOOTS))
2423
			.unlockedBy("has_copper_horse_armor", this.has(Items.COPPER_HORSE_ARMOR))
2424
			.unlockedBy("has_copper_nautilus_armor", this.has(Items.COPPER_NAUTILUS_ARMOR))
2425
			.save(this.output, getBlastingRecipeName(Items.COPPER_NUGGET));
2426
		SimpleCookingRecipeBuilder.blasting(
2427
				Ingredient.of(
2428
					Items.IRON_PICKAXE,
2429
					Items.IRON_SHOVEL,
2430
					Items.IRON_AXE,
2431
					Items.IRON_HOE,
2432
					Items.IRON_SWORD,
2433
					Items.IRON_SPEAR,
2434
					Items.IRON_HELMET,
2435
					Items.IRON_CHESTPLATE,
2436
					Items.IRON_LEGGINGS,
2437
					Items.IRON_BOOTS,
2438
					Items.IRON_HORSE_ARMOR,
2439
					Items.IRON_NAUTILUS_ARMOR,
2440
					Items.CHAINMAIL_HELMET,
2441
					Items.CHAINMAIL_CHESTPLATE,
2442
					Items.CHAINMAIL_LEGGINGS,
2443
					Items.CHAINMAIL_BOOTS
2444
				),
2445
				RecipeCategory.MISC,
2446
				CookingBookCategory.MISC,
2447
				Items.IRON_NUGGET,
2448
				0.1F,
2449
				200
2450
			)
2451
			.unlockedBy("has_iron_pickaxe", this.has(Items.IRON_PICKAXE))
2452
			.unlockedBy("has_iron_shovel", this.has(Items.IRON_SHOVEL))
2453
			.unlockedBy("has_iron_axe", this.has(Items.IRON_AXE))
2454
			.unlockedBy("has_iron_hoe", this.has(Items.IRON_HOE))
2455
			.unlockedBy("has_iron_sword", this.has(Items.IRON_SWORD))
2456
			.unlockedBy("has_iron_spear", this.has(Items.IRON_SPEAR))
2457
			.unlockedBy("has_iron_helmet", this.has(Items.IRON_HELMET))
2458
			.unlockedBy("has_iron_chestplate", this.has(Items.IRON_CHESTPLATE))
2459
			.unlockedBy("has_iron_leggings", this.has(Items.IRON_LEGGINGS))
2460
			.unlockedBy("has_iron_boots", this.has(Items.IRON_BOOTS))
2461
			.unlockedBy("has_iron_horse_armor", this.has(Items.IRON_HORSE_ARMOR))
2462
			.unlockedBy("has_chainmail_helmet", this.has(Items.CHAINMAIL_HELMET))
2463
			.unlockedBy("has_chainmail_chestplate", this.has(Items.CHAINMAIL_CHESTPLATE))
2464
			.unlockedBy("has_chainmail_leggings", this.has(Items.CHAINMAIL_LEGGINGS))
2465
			.unlockedBy("has_chainmail_boots", this.has(Items.CHAINMAIL_BOOTS))
2466
			.unlockedBy("has_iron_nautilus_armor", this.has(Items.IRON_NAUTILUS_ARMOR))
2467
			.save(this.output, getBlastingRecipeName(Items.IRON_NUGGET));
2468
		SimpleCookingRecipeBuilder.blasting(Ingredient.of(Blocks.ANCIENT_DEBRIS), RecipeCategory.MISC, CookingBookCategory.MISC, Items.NETHERITE_SCRAP, 2.0F, 200)
2469
			.unlockedBy("has_ancient_debris", this.has(Blocks.ANCIENT_DEBRIS))
2470
			.save(this.output, getBlastingRecipeName(Items.NETHERITE_SCRAP));
2471
		this.cookRecipes("smoking", SmokingRecipe::new, 200);
2472
		this.cookRecipes("campfire_cooking", CampfireCookingRecipe::new, 600);
2473
		this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, Blocks.POLISHED_BASALT, Blocks.BASALT);
2474
		this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, Blocks.SMOOTH_STONE_SLAB, Blocks.SMOOTH_STONE, 2);
2475
		WeatheringCopperCollection.zipApply(
2476
			Blocks.CUT_COPPER, Blocks.COPPER_BLOCK, (cutBlock, material) -> this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, cutBlock, material, 4)
2477
		);
2478
		WeatheringCopperCollection.zipApply(
2479
			Blocks.CUT_COPPER_STAIRS,
2480
			Blocks.COPPER_BLOCK,
2481
			(cutStairs, material) -> this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, cutStairs, material, 4)
2482
		);
2483
		WeatheringCopperCollection.zipApply(
2484
			Blocks.CUT_COPPER_SLAB, Blocks.COPPER_BLOCK, (cutSlab, material) -> this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, cutSlab, material, 8)
2485
		);
2486
		smithingTrims().forEach(trim -> this.trimSmithing(trim.template(), trim.patternId(), trim.recipeId()));
2487
		this.netheriteSmithing(Items.DIAMOND_CHESTPLATE, RecipeCategory.COMBAT, Items.NETHERITE_CHESTPLATE);
2488
		this.netheriteSmithing(Items.DIAMOND_LEGGINGS, RecipeCategory.COMBAT, Items.NETHERITE_LEGGINGS);
2489
		this.netheriteSmithing(Items.DIAMOND_HELMET, RecipeCategory.COMBAT, Items.NETHERITE_HELMET);
2490
		this.netheriteSmithing(Items.DIAMOND_BOOTS, RecipeCategory.COMBAT, Items.NETHERITE_BOOTS);
2491
		this.netheriteSmithing(Items.DIAMOND_NAUTILUS_ARMOR, RecipeCategory.COMBAT, Items.NETHERITE_NAUTILUS_ARMOR);
2492
		this.netheriteSmithing(Items.DIAMOND_HORSE_ARMOR, RecipeCategory.COMBAT, Items.NETHERITE_HORSE_ARMOR);
2493
		this.netheriteSmithing(Items.DIAMOND_SWORD, RecipeCategory.COMBAT, Items.NETHERITE_SWORD);
2494
		this.netheriteSmithing(Items.DIAMOND_SPEAR, RecipeCategory.COMBAT, Items.NETHERITE_SPEAR);
2495
		this.netheriteSmithing(Items.DIAMOND_AXE, RecipeCategory.TOOLS, Items.NETHERITE_AXE);
2496
		this.netheriteSmithing(Items.DIAMOND_PICKAXE, RecipeCategory.TOOLS, Items.NETHERITE_PICKAXE);
2497
		this.netheriteSmithing(Items.DIAMOND_HOE, RecipeCategory.TOOLS, Items.NETHERITE_HOE);
2498
		this.netheriteSmithing(Items.DIAMOND_SHOVEL, RecipeCategory.TOOLS, Items.NETHERITE_SHOVEL);
2499
		this.copySmithingTemplate(Items.NETHERITE_UPGRADE_SMITHING_TEMPLATE, Items.NETHERRACK);
2500
		this.copySmithingTemplate(Items.SENTRY_ARMOR_TRIM_SMITHING_TEMPLATE, Items.COBBLESTONE);
2501
		this.copySmithingTemplate(Items.DUNE_ARMOR_TRIM_SMITHING_TEMPLATE, Items.SANDSTONE);
2502
		this.copySmithingTemplate(Items.COAST_ARMOR_TRIM_SMITHING_TEMPLATE, Items.COBBLESTONE);
2503
		this.copySmithingTemplate(Items.WILD_ARMOR_TRIM_SMITHING_TEMPLATE, Items.MOSSY_COBBLESTONE);
2504
		this.copySmithingTemplate(Items.WARD_ARMOR_TRIM_SMITHING_TEMPLATE, Items.COBBLED_DEEPSLATE);
2505
		this.copySmithingTemplate(Items.EYE_ARMOR_TRIM_SMITHING_TEMPLATE, Items.END_STONE);
2506
		this.copySmithingTemplate(Items.VEX_ARMOR_TRIM_SMITHING_TEMPLATE, Items.COBBLESTONE);
2507
		this.copySmithingTemplate(Items.TIDE_ARMOR_TRIM_SMITHING_TEMPLATE, Items.PRISMARINE);
2508
		this.copySmithingTemplate(Items.SNOUT_ARMOR_TRIM_SMITHING_TEMPLATE, Items.BLACKSTONE);
2509
		this.copySmithingTemplate(Items.RIB_ARMOR_TRIM_SMITHING_TEMPLATE, Items.NETHERRACK);
2510
		this.copySmithingTemplate(Items.SPIRE_ARMOR_TRIM_SMITHING_TEMPLATE, Items.PURPUR_BLOCK);
2511
		this.copySmithingTemplate(Items.SILENCE_ARMOR_TRIM_SMITHING_TEMPLATE, Items.COBBLED_DEEPSLATE);
2512
		this.copySmithingTemplate(Items.WAYFINDER_ARMOR_TRIM_SMITHING_TEMPLATE, Items.TERRACOTTA);
2513
		this.copySmithingTemplate(Items.SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE, Items.TERRACOTTA);
2514
		this.copySmithingTemplate(Items.RAISER_ARMOR_TRIM_SMITHING_TEMPLATE, Items.TERRACOTTA);
2515
		this.copySmithingTemplate(Items.HOST_ARMOR_TRIM_SMITHING_TEMPLATE, Items.TERRACOTTA);
2516
		this.copySmithingTemplate(Items.FLOW_ARMOR_TRIM_SMITHING_TEMPLATE, Items.BREEZE_ROD);
2517
		this.copySmithingTemplate(
2518
			Items.BOLT_ARMOR_TRIM_SMITHING_TEMPLATE, Ingredient.of(Items.COPPER_BLOCK.weathering().unaffected(), Items.COPPER_BLOCK.waxed().unaffected())
2519
		);
2520
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.BAMBOO_BLOCK, Items.BAMBOO);
2521
		this.planksFromLogs(Blocks.BAMBOO_PLANKS, ItemTags.BAMBOO_BLOCKS, 2);
2522
		this.mosaicBuilder(RecipeCategory.DECORATIONS, Blocks.BAMBOO_MOSAIC, Blocks.BAMBOO_SLAB);
2523
		this.woodenBoat(Items.BAMBOO_RAFT, Blocks.BAMBOO_PLANKS);
2524
		this.chestBoat(Items.BAMBOO_CHEST_RAFT, Items.BAMBOO_RAFT);
2525
		this.shaped(RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_BOOKSHELF)
2526
			.define('#', ItemTags.PLANKS)
2527
			.define('X', ItemTags.WOODEN_SLABS)
2528
			.pattern("###")
2529
			.pattern("XXX")
2530
			.pattern("###")
2531
			.unlockedBy("has_book", this.has(Items.BOOK))
2532
			.save(this.output);
2533
		this.oneToOneConversionRecipe(Items.DYE.orange(), Blocks.TORCHFLOWER, "orange_dye");
2534
		this.oneToOneConversionRecipe(Items.DYE.cyan(), Blocks.PITCHER_PLANT, "cyan_dye", 2);
2535
		this.planksFromLog(Blocks.CHERRY_PLANKS, ItemTags.CHERRY_LOGS, 4);
2536
		this.woodFromLogs(Blocks.CHERRY_WOOD, Blocks.CHERRY_LOG);
2537
		this.woodFromLogs(Blocks.STRIPPED_CHERRY_WOOD, Blocks.STRIPPED_CHERRY_LOG);
2538
		this.woodenBoat(Items.CHERRY_BOAT, Blocks.CHERRY_PLANKS);
2539
		this.chestBoat(Items.CHERRY_CHEST_BOAT, Items.CHERRY_BOAT);
2540
		this.oneToOneConversionRecipe(Items.DYE.pink(), Items.PINK_PETALS, "pink_dye", 1);
2541
		this.shaped(RecipeCategory.TOOLS, Items.BRUSH)
2542
			.define('X', Items.FEATHER)
2543
			.define('#', Items.COPPER_INGOT)
2544
			.define('I', Items.STICK)
2545
			.pattern("X")
2546
			.pattern("#")
2547
			.pattern("I")
2548
			.unlockedBy("has_copper_ingot", this.has(Items.COPPER_INGOT))
2549
			.save(this.output);
2550
		this.shaped(RecipeCategory.DECORATIONS, Items.DECORATED_POT)
2551
			.define('#', Items.BRICK)
2552
			.pattern(" # ")
2553
			.pattern("# #")
2554
			.pattern(" # ")
2555
			.unlockedBy("has_brick", this.has(ItemTags.DECORATED_POT_INGREDIENTS))
2556
			.save(this.output, "decorated_pot_simple");
2557
		SpecialRecipeBuilder.special(() -> new DecoratedPotRecipe(this.tag(ItemTags.DECORATED_POT_INGREDIENTS), new ItemStackTemplate(Items.DECORATED_POT)))
2558
			.save(this.output, "decorated_pot");
2559
		this.shaped(RecipeCategory.REDSTONE, Blocks.CRAFTER)
2560
			.define('#', Items.IRON_INGOT)
2561
			.define('C', Items.CRAFTING_TABLE)
2562
			.define('R', Items.REDSTONE)
2563
			.define('D', Items.DROPPER)
2564
			.pattern("###")
2565
			.pattern("#C#")
2566
			.pattern("RDR")
2567
			.unlockedBy("has_dropper", this.has(Items.DROPPER))
2568
			.save(this.output);
2569
		WeatheringCopper.WeatherState.forEach(
2570
			state -> {
2571
				this.stonecutterResultFromBase(
2572
					RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_COPPER.weathering().pick(state), Blocks.COPPER_BLOCK.weathering().pick(state), 4
2573
				);
2574
				this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_COPPER.waxed().pick(state), Blocks.COPPER_BLOCK.waxed().pick(state), 4);
2575
				this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, Blocks.CHISELED_COPPER.waxed().pick(state), Blocks.CUT_COPPER.waxed().pick(state), 1);
2576
			}
2577
		);
2578
		WeatheringCopperCollection.zipApply(Blocks.COPPER_GRATE, Blocks.COPPER_BLOCK, (x$0, x$1) -> this.grate(x$0, x$1));
2579
		WeatheringCopperCollection.zipApply(Blocks.COPPER_BULB, Blocks.COPPER_BLOCK, (x$0, x$1) -> this.copperBulb(x$0, x$1));
2580
		WeatheringCopper.WeatherState.forEach(state -> this.waxedChiseled(Blocks.CHISELED_COPPER.waxed().pick(state), Blocks.CUT_COPPER_SLAB.waxed().pick(state)));
2581
		WeatheringCopperCollection.zipApply(
2582
			Blocks.COPPER_GRATE, Blocks.COPPER_BLOCK, (grate, block) -> this.stonecutterResultFromBase(RecipeCategory.BUILDING_BLOCKS, grate, block, 4)
2583
		);
2584
		this.shapeless(RecipeCategory.MISC, Items.WIND_CHARGE, 4)
2585
			.requires(Items.BREEZE_ROD)
2586
			.unlockedBy("has_breeze_rod", this.has(Items.BREEZE_ROD))
2587
			.save(this.output);
2588
		this.shaped(RecipeCategory.COMBAT, Items.MACE, 1)
2589
			.define('I', Items.BREEZE_ROD)
2590
			.define('#', Blocks.HEAVY_CORE)
2591
			.pattern(" # ")
2592
			.pattern(" I ")
2593
			.unlockedBy("has_breeze_rod", this.has(Items.BREEZE_ROD))
2594
			.unlockedBy("has_heavy_core", this.has(Blocks.HEAVY_CORE))
2595
			.save(this.output);
2596
		this.doorBuilder(Blocks.COPPER_DOOR.weathering().unaffected(), Ingredient.of(Items.COPPER_INGOT))
2597
			.unlockedBy(getHasName(Items.COPPER_INGOT), this.has(Items.COPPER_INGOT))
2598
			.save(this.output);
2599
		this.twoByTwoPacker(RecipeCategory.REDSTONE, Blocks.COPPER_TRAPDOOR.weathering().unaffected(), Items.COPPER_INGOT);
2600
		this.shaped(RecipeCategory.TOOLS, Items.BUNDLE)
2601
			.define('-', Items.STRING)
2602
			.define('#', Items.LEATHER)
2603
			.pattern("-")
2604
			.pattern("#")
2605
			.unlockedBy("has_string", this.has(Items.STRING))
2606
			.save(this.output);
2607
		this.threeByThreePacker(RecipeCategory.BUILDING_BLOCKS, Blocks.POTENT_SULFUR, Items.SULFUR);
2608
		ColorCollection.zipApply(Items.DYE, Items.DYED_BUNDLE, (x$0, x$1) -> this.dyedBundleRecipe(x$0, x$1));
2609
		ColorCollection.zipApply(Items.WOOL_SLAB, Items.CUSHION, (x$0, x$1) -> this.cushionRecipe(x$0, x$1));
2610
		this.brewingProvider.buildRecipes();
2611
	}
2612
2613
	public static Stream<VanillaRecipeProvider.TrimTemplate> smithingTrims() {
2614
		return Stream.of(
2615
				Pair.of(Items.BOLT_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.BOLT),
2616
				Pair.of(Items.COAST_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.COAST),
2617
				Pair.of(Items.DUNE_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.DUNE),
2618
				Pair.of(Items.EYE_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.EYE),
2619
				Pair.of(Items.FLOW_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.FLOW),
2620
				Pair.of(Items.HOST_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.HOST),
2621
				Pair.of(Items.RAISER_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.RAISER),
2622
				Pair.of(Items.RIB_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.RIB),
2623
				Pair.of(Items.SENTRY_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.SENTRY),
2624
				Pair.of(Items.SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.SHAPER),
2625
				Pair.of(Items.SILENCE_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.SILENCE),
2626
				Pair.of(Items.SNOUT_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.SNOUT),
2627
				Pair.of(Items.SPIRE_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.SPIRE),
2628
				Pair.of(Items.TIDE_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.TIDE),
2629
				Pair.of(Items.VEX_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.VEX),
2630
				Pair.of(Items.WARD_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.WARD),
2631
				Pair.of(Items.WAYFINDER_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.WAYFINDER),
2632
				Pair.of(Items.WILD_ARMOR_TRIM_SMITHING_TEMPLATE, TrimPatterns.WILD)
2633
			)
2634
			.map(itemAndPattern -> {
2635
				Item item = (Item)itemAndPattern.getFirst();
2636
				ResourceKey<TrimPattern> patternId = (ResourceKey<TrimPattern>)itemAndPattern.getSecond();
2637
				ResourceKey<Recipe<?>> recipeId = ResourceKey.create(Registries.RECIPE, Identifier.withDefaultNamespace(getItemName(item) + "_smithing_trim"));
2638
				return new VanillaRecipeProvider.TrimTemplate(item, patternId, recipeId);
2639
			});
2640
	}
2641
2642
	public record TrimTemplate(Item template, ResourceKey<TrimPattern> patternId, ResourceKey<Recipe<?>> recipeId) {
2643
	}
2644
}
2645

Decompiled Minecraft 26.3 source of VanillaRecipeProvider (net/minecraft/data/recipes/packs/VanillaRecipeProvider.java) with Mojang official mappings, stored verbatim on the site.