"smelting" page show only text
timearrow03 opened this issue ยท 5 comments
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"
}
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
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"