To start off I wanna mention this is more of a "Im frankly incompetent and google doesnt help" problem rather than a crafttweaker problem. The core of the issue is that Im attempting to add custom recipes for seeds from the mod Animal Crops. However with the seeds sharing the same item ID and no specific data values that would differentiate them the only difference would be the NBT tags,that I can only assume are the tags of the mobs the seeds spawn. So Ive tried my very best trying to add the NBT tag into the recipe.. Ive spent a good 40 minutes searching for a way to make it all work. and Im frankly somewhat stuck.
Sometimes you want your ingredients to need a specific NBT-Tag. The recipe doesn’t care if your item has NBT-Tags other than the ones specified, So a pickaxe with a specific lore may also be enchanted!
If you use withTag jei will display it properly, if you use onlyWithTag, jei will only display a tagless item!
Here’s how you do it: NBTTag is your NBT Data
item.withTag(NBTData);
item.onlyWithTag(NBTTag);
<minecraft.iron_pickaxe>.onlyWithTag({display: {Name: "Pickle the Pickleberry"}});
<minecraft.iron_pickaxe>.withTag({display: {Name: "Pickle the Pickleberry"}});
Sadly enough the CTGUI recipes completely ignore tags and Ive so far been unsuccessful with adding the tag manually since it seems I need to write it in differently than with enchantment or name tags.
Ohh, probably it's just a matter of getting the right nbt tags or even the sintax... how are you getting the nbt tags for your items? Mind to share your zenscript?
To start off I wanna mention this is more of a "Im frankly incompetent and google doesnt help" problem rather than a crafttweaker problem. The core of the issue is that Im attempting to add custom recipes for seeds from the mod Animal Crops. However with the seeds sharing the same item ID and no specific data values that would differentiate them the only difference would be the NBT tags,that I can only assume are the tags of the mobs the seeds spawn. So Ive tried my very best trying to add the NBT tag into the recipe.. Ive spent a good 40 minutes searching for a way to make it all work. and Im frankly somewhat stuck.
Hello, have you tried editing the recipe using the CTGUI command?
If that doesn't help, you can add the NBT tags manually to the recipe:
https://docs.blamejared.com/1.12/en/#Vanilla/Items/Item_Conditions/#nbt-tags
NBT-Tags[/header]
Sometimes you want your ingredients to need a specific NBT-Tag. The recipe doesn’t care if your item has NBT-Tags other than the ones specified, So a pickaxe with a specific lore may also be enchanted!
If you use withTag jei will display it properly, if you use onlyWithTag, jei will only display a tagless item!
Here’s how you do it: NBTTag is your NBT Data
Sadly enough the CTGUI recipes completely ignore tags and Ive so far been unsuccessful with adding the tag manually since it seems I need to write it in differently than with enchantment or name tags.
Thanks for the info anyways
Ohh, probably it's just a matter of getting the right nbt tags or even the sintax... how are you getting the nbt tags for your items? Mind to share your zenscript?
Yeah this is what I used:
recipes.addShaped(<animalcrops:seeds>.withTag({entity: "minecraft:chicken"}), [[<minecraft:feather>, null, null],[null, null, null], [null, null, null]]);
Not sure where I messed up but its rather likely that I just didnt put in the mob tag correctly.
This recipe crafts the seeds item without the tag thus making it literally useless.
I'm actually having the same issue on 1.16. Spent hours trying different syntaxes since it's different from 1.12. Some even crashed my game.
craftingTable.addShaped("seed_chicken", <item:animalcrops:seeds>.withTag({entity:"minecraft:chicken"}), [
This is the answer for anyone having issues on 1.16.