Skip to main content
Version: 26.1.2 (Latest)

Recipe Pages

Recipe Pages

Page types:

  • modonomicon:crafting_recipe
  • modonomicon:smelting_recipe
  • modonomicon:blasting_recipe
  • modonomicon:smoking_recipe
  • modonomicon:campfire_cooking_recipe
  • modonomicon:stonecutting_recipe
  • modonomicon:smithing_recipe

Displays one or two recipes, optionally titles for each recipe and an optional text.

tip

Each page type only supports recipes of the matching recipe type. If you want to display recipes of mixed types, use multiple recipe pages.

Attributes

recipe_id_1 (ResourceLocation, mandatory)

The ResourceLocation of the first recipe to display. Make sure to match the recipe type to the page type.

recipe_id_2 (ResourceLocation, optional)

The ResourceLocation of the second recipe to display. Make sure to match the recipe type to the page type.

text (DescriptionId or Component JSON, optional)

The page text. Can be styled using markdown.

Usage Examples

<entry>.json:

{
...
"pages": [
{
"type": "modonomicon:crafting_recipe",
"recipe_id_1": "minecraft:crafting_table",
"recipe_id_2": "minecraft:oak_planks",
"text": "book.modonomicon.demo.features.recipe.crafting.text",
"title1": "",
"title2": ""
},
{
"type": "modonomicon:smelting_recipe",
"recipe_id_1": "minecraft:charcoal",
"recipe_id_2": "minecraft:cooked_beef",
"text": "",
"title1": "",
"title2": ""
},
{
"type": "modonomicon:smoking_recipe",
"recipe_id_1": "minecraft:cooked_beef_from_smoking",
"text": "book.modonomicon.demo.features.recipe.smoking.text",
"title1": "",
"title2": ""
},
{
"type": "modonomicon:blasting_recipe",
"recipe_id_2": "minecraft:iron_ingot_from_blasting_iron_ore",
"text": "",
"title1": "",
"title2": ""
},
{
"type": "modonomicon:campfire_cooking_recipe",
"recipe_id_1": "minecraft:cooked_beef_from_campfire_cooking",
"text": "",
"title1": "",
"title2": ""
},
{
"type": "modonomicon:stonecutting_recipe",
"recipe_id_1": "minecraft:andesite_slab_from_andesite_stonecutting",
"text": "",
"title1": "",
"title2": ""
},
{
"type": "modonomicon:smithing_recipe",
"recipe_id_1": "minecraft:netherite_axe_smithing",
"text": "",
"title1": "",
"title2": ""
}
]
}

/lang/*.json:

{
"book.modonomicon.demo.features.recipe.crafting.text": "A sample recipe page.",
"book.modonomicon.demo.features.recipe.smoking.text": "A smoking recipe page with one recipe and some text.",
}