Topic category: Help with Minecraft modding (Java Edition)
I am trying to figure out how to make a special item with custom nbt data that only results from a specific recipe. I've looked all over the place online and found no one with an example of how to format nbt data for an item as either an ingredient or a result.
How would one go about doing this?
The item's registry name is "owls_infection:dna_extractor". I need to add a custom nbt text tag with type "mob_registry" and value of "infection_source". I need a second nbt tag on the same item with a type of "mob_name" and value of "The Infection".
Does anyone know how to format that in a recipe? The most I have right now is
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "owls_infection:dna_extractor"
},
{
"tag": "owls_infection:infection_dna_sources"
}
],
"result": {
"item": "owls_infection:dna_extractor",
"count": 1
}
}
https://drive.google.com/file/d/13ISv2pLW2P5Q_bFEKIsnPN2mvR2JTZ5N/view?usp=sharing
So basically what these two procedure blocks in this image (linked) do, except only in the results of this specific recipe. Does anyone know how I would apply these text nbt tags to these items?