kvminvestor.blogg.se

How to change crafting recipes in minecraft mods 1.7.10
How to change crafting recipes in minecraft mods 1.7.10











how to change crafting recipes in minecraft mods 1.7.10

Brewing recipes can be added using the BrewingRecipeRegistry.addRecipe() method.

how to change crafting recipes in minecraft mods 1.7.10

Many can be flipped horizontally and if they don't fill the 3x3 grid can also be shifted within the grid.Many are somewhat complex and require the 3x3 crafting table.These require the ingredients to be placed in specific positions within the crafting grid.Examples are dyed wool and granite blocks.Most are simpler recipes and usually fit in the 2x2 player crafting grid. These allow the ingredients to be placed in any position within the crafting grid.This is guaranteed to run after all your blocks and items for your mod are registered. Tip: I put my smelting recipes in the initialize() method in my item registry class.one beef will create one cooked beef, it is possible to have different numbers of inputs and outputs based on the ItemStack passed into the addSmeltingRecipe() method. Note that while vanilla furnace recipes give a one for one transformation - i.e.A furnace recipe takes a single ItemStack in, gives a single ItemStack out and gives some experience for doing the smelting.The actual recipes are contained in the FurnaceRecipe.instance() and you can add recipes by calling the addSmeltingRecipe() method from that instance.These need a furnace block and are used for making ingots out of ore, cooking meat, etc.There are actually many types of recipes in Minecraft: This isn't as simple as simply creating classes that extend those vanilla things (although you might want to do that) because a lot of functionality in Minecraft will compare for exact match with the specific instance including metadata. Many mods want to add variety and so might create variations on things, but still want them to act similarly to vanilla "ore" when used in recipes. One of the basic ideas of Minecraft game play is the idea that you mine "ore" and then use that to smelt and craft things. At the end of the page is some tips related to the older system. ], exampleShapedRecipeVarFunction ) craftingTable.Note: Most information on this page is related to the 1.12+ version JSON recipe system. addShaped ( "shapeed_func_example_3", , , ], ( usualOut as IItemStack, inputs as IItemStack ) => craftingTable. addShaped ( "shapeed_func_example_1", , , See Using Recipe Functions for examples on how to use recipe functions.Ĭopy import crafttweaker. addShapedMirrored ( "shaped_mirror_example_1", * 2, , ] ) // Adding a shaped mirrored recipe craftingTable. ] ) // Adding a shaped 2x2 recipe (this can also be done as mirrored) craftingTable. Copy // Adding a shaped recipe craftingTable.













How to change crafting recipes in minecraft mods 1.7.10