Make Hephaestus_forge/Rituals accept Items with NBT as Input/main_ingredient
Sagenseele opened this issue ยท 2 comments
Minecraft Version 1.20.1
Is your feature request related to a problem? Please describe.
Hephaestus Rituals inputs and main_ingredient don't accept Items with NBT as an Input, result does accept NBT data.
Describe the solution you'd like
I would like to ask you, if you could make the changes in, I suppose the RitualBuilder or the ModRituals to make inputs and main_ingredient accept NBT Items.
Describe alternatives you've considered
I could make a dummy Item, which takes the NBT Items and use this NBT-less item to craft the desired Item. But I think it would be cooler, if I could use the NBT item directly.
Additional context
Example Recipe for NBT Data:
{
"additional_requirements": {
"forge_tier": 1
},
"essences": {
"aureal": 82,
"blood": 1000,
"experience": 0,
"souls": 1
},
"inputs": [
{
"amount": 1,
"ingredient": {
"item": "minecraft:diamond_sword",
"nbt": "{Enchantments:[{id:"minecraft:bane_of_arthropods",lvl:3s}]}"
}
},
{
"amount": 4,
"ingredient": {
"tag": "minecraft:planks"
}
}
],
"main_ingredient": {
"item": "minecraft:diamond_sword",
"nbt": "{Enchantments:[{id:"minecraft:sharpness",lvl:5s}]}"
},
"result": {
"type": "forbidden_arcanus:create_item",
"result_item": {
"Count": 1,
"id": "ironjetpacks:jetpack",
"tag": {
"Id": "ironjetpacks:wood"
}
}
}
}
Thank you in advance, I hope you have a pleasant day.
Hi, hephaestus forge inputs and the main_ingredient use the ingredient system which already allows matching nbt strictly or partially.
See https://docs.neoforged.net/docs/1.20.4/resources/server/recipes/ingredients/
Hey, thank you for clarification. ๐
Very nice dev, very cool. ๐ฏ
If anybody is looking at this, adding "type": "forge:nbt" in the inputs/main_ingredient object solves the problem.
{
"additional_requirements": {
"forge_tier": 1
},
"essences": {
"aureal": 82,
"blood": 1000,
"experience": 0,
"souls": 1
},
"inputs": [
{
"amount": 1,
"ingredient": {
"type": "forge:nbt",
"item": "minecraft:diamond_sword",
"nbt": "{Enchantments:[{id:"minecraft:bane_of_arthropods",lvl:3s}]}"
}
},
{
"amount": 4,
"ingredient": {
"tag": "minecraft:planks"
}
}
],
"main_ingredient": {
"type": "forge:nbt",
"item": "minecraft:diamond_sword",
"nbt": "{Enchantments:[{id:"minecraft:sharpness",lvl:5s}]}"
},
"result": {
"type": "forbidden_arcanus:create_item",
"result_item": {
"Count": 1,
"id": "ironjetpacks:jetpack",
"tag": {
"Id": "ironjetpacks:wood"
}
}
}
}