Options
All
  • Public
  • Public/Protected
  • All
Menu

Extension for InnerCore's Recipes module adding new methods to register recipes of other types, not supported before.

since

3.0

Index

Functions

  • addSmithingTableRecipe(baseID: number, additionID: number, resultID: number): void
  • Adds new custom smithing table recipe

    since

    3.0

    Parameters

    • baseID: number

      numeric ID of the item to put in the left slot of the smithing table

    • additionID: number

      numeric ID of the item to put in the central slot of the smithing table

    • resultID: number

      numeric ID of the item that will appear in the right slot of the smithing table. If the first ingredient has any NBT data, like custom name, enchantments, ItemExtraData etc., this data will be copied into the result item instance.

    Returns void

  • since

    3.0

    Parameters

    • baseID: number

    Returns SmithingTableRecipe[]

    list of all registered smithing table recipes having the item with given numeric ID as a first ingredient

  • since

    3.0

    Parameters

    • resultID: number

    Returns SmithingTableRecipe[]

    list of all registered smithing table recipes having the item with given numeric ID as a result

  • removeSmithingTableRecipe(baseID: number, additionID: number): void
  • Removes smithing table recipe by given two ingredients' numeric IDs, if the recipe with this ingredients exists.

    since

    3.0

    Parameters

    • baseID: number
    • additionID: number

    Returns void

Generated using TypeDoc