parkolz.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

This also means that they should be registered in the corresponding registry event using IForgeRegistry#register. Recipes are now stored in a Forge registry, so each one has a unique registry name. Instead of storing a collection of items and comparing the contents of a crafting grid against them, recipes now store a collection of Ingredient objects and ask each one whether the contents of the crafting grid match. Since adding smelting and brewing recipes is straightforward and already described above, the rest of the information below relates to crafting recipes (both shaped and shapeless).

  • Brewing recipes can be added using the BrewingRecipeRegistry.addRecipe() method.
  • 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.
  • how to change crafting recipes in minecraft mods 1.7.10

    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.

    how to change crafting recipes in minecraft mods 1.7.10

    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. Note: Most information on this page is related to the 1.12+ version JSON recipe system.








    How to change crafting recipes in minecraft mods 1.7.10