Patchouli

Patchouli

168M Downloads

"smelting" page show only text

timearrow03 opened this issue ยท 5 comments

commented

I was trying to add a smelting page to my book but it doesn't show any graphics or recipe only an empty space followed by the page text ("sand smelt into glass")

This is my page json:

    {
        "type": "smelting",
        "recipe": "minecraft:sand",
        "title": "smelt  sand",
        "text": "sand smelt into glass"
    }
commented

full json + version info please

commented

this is a snap of what the pages look like in the book:

snap

commented

This is the page, I've tested blasting too with the same result:

{
    "name": "test page",
    "icon": "minecraft:sand",
    "category": "examplemod:test",
    "read_by_default": true,
    "pages": [
        {
            "type": "smelting",
            "recipe": "minecraft:sand",
            "title": "smelt sand",
            "text": "sand smelt into glass"
        },
        {
            "type": "blasting",
            "recipe": "minecraft:emerald_ore",
            "title": "blast sand",
            "text": "emerald ore blast into emeralds"
        }
    ]
}

I'm using patchouli version1.16.4-48-SNAPSHOT. No errors in the log

commented

It's a documentation problem.

Because of how Patchouli load the recipe from MC RecipeManager, the ResourceLocation (recipe, recipe2) need to be the id of that particular recipe, not an "itemstack" containing the item being smelted.

So, for your example, "minecraft:glass"

commented

with minecraft:glass it works! thank you