Jump to content

Mod Help Request: Custom Recipes


Recommended Posts

Posted

I am trying to write my first and maybe only mod. Where I can take 9 (3x3) small stones of the same type eg granite to produce a matching granite block.

I would like to have this be an all-in-one mod, ie it can handle all the variants and produce the correct block.

Maybe there has to be one recipe per stone variant?

Can this, custom recipes like this, even be done?

Thanks in advance :)

Posted

Figured it out. This works for me, meaning the recipe. If any one else wants to use it/change it etc ...

 

[
    {
        ingredientPattern: "FFF	FFF	FFF",
        ingredients: {
            "F": { type: "item", code: "game:stone-*", name: "rock", allowedVariants: ["obsidian", "andesite", "chalk", "chert", "conglomerate", "limestone", "claystone", "granite", "sandstone", "shale", "basalt", "peridotite", "phyllite", "slate"] }
        },
        width: 3,
        height: 3,
        output: { type: "block", code: "game:rock-{rock}", quantity: 1 }
    },
	{
		ingredientPattern: "F",
		ingredients: {
			"F": { type: "item", code: "game:stone-*", quantity: 9, name: "rock", allowedVariants: ["obsidian", "andesite", "chalk", "chert", "conglomerate", "limestone", "claystone", "granite", "sandstone", "shale", "basalt", "peridotite", "phyllite", "slate"] }
		},
		width: 1,
		height: 1,
		shapeless: true,
		output: { type: "block", code: "game:rock-{rock}", quantity: 1  }
	}

]
    

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.