#torch recipe with data gen

5 messages · Page 1 of 1 (latest)

frigid kernel
#

can anyone help me figure out how to overwrite / update the current torch recipe? fabric for mc 1.20.1

obviously the torch recipe has either coal or charcoal as input. I would like to add another input which is my custom item AND also make the recipe output 6 torches instead of 4. how could i do that?

This is what I tried but it doesn't work

ShapedRecipeJsonBuilder.create(RecipeCategory.MISC, Items.TORCH, 6)
                .pattern("C")
                .pattern("S")
                .input('C', Items.COAL)
                .input('C', Items.CHARCOAL)
                .input('C', ModItems.MYITEM)
                .input('S', Items.STICK)
                .criterion(hasItem(Items.STICK), conditionsFromItem(Items.STICK))
                .criterion(hasItem(Items.COAL), conditionsFromItem(Items.COAL))
                .criterion(hasItem(Items.CHARCOAL), conditionsFromItem(Items.CHARCOAL))
                .offerTo(exporter);`
rough fern
frigid kernel
rough fern
frigid kernel