The vanilla tag tags and recipe tags confuse me a bit; i'm writing a script that lets me smelt items in my hand like a spell, is there a tag that i could filter through to determine if an item in hand has a furnace recipe? an example would be if i were holding cobblestone, and a tag would return stone, the cobblestone being the only ingredient to creating the stone via furnace
#(Behr) Recipe tags
33 messages · Page 1 of 1 (latest)
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Possible Confusion
Did you mean to search for itemtag.recipe_ids?
If the item is a scripted item, returns a list of all recipe IDs created by the item script.
Others, returns a list of all recipe IDs that the server lists as capable of crafting the item.
Returns a list in the Namespace:Key format, for example "minecraft:gold_nugget".
Optionally, specify a recipe type (CRAFTING, FURNACE, COOKING, BLASTING, SHAPED, SHAPELESS, SMOKING, STONECUTTING, BREWING)
to limit to just recipes of that type.
Brewing recipes are only supported on Paper, and only custom ones are available.
Returns
ListTag
!t recipe_result
Returns the item that a recipe will create when crafted.
Brewing recipes are only supported on Paper, and only custom ones are available.
Returns
ItemTag
!t recipe_input
Possible Confusion
Did you mean to search for itemtag.recipe_ids?
!t recipe_items
Returns a list of the items used as input to the recipe within the input ID.
This is formatted equivalently to the item script recipe input, with "material:" for non-exact matches, and a full ItemTag for exact matches.
Note that this won't represent all recipes perfectly (primarily those with multiple input choices per slot).
Brewing recipes are only supported on Paper, and only custom ones are available.
For brewing recipes, currently "matcher:<item matcher>" input options are only supported in...
Returns
ListTag(ItemTag)
Could get the item's smelting/blasting recipes, check their ingredients, and switch the item with the result if it matches
mmm
Tag parse results for <item[cobblestone].recipe_ids[furnace]>: https://paste.denizenscript.com/View/123880
li@
i think i confused myself, if i have cobblestone, how do i get to stone?
Tag parse results for <server.recipe_ids.filter_tag[<server.recipe_result[<[filter_value]>].contains_text[cobblestone]>].separated_by[<n>]>: https://paste.denizenscript.com/View/123882
Newline spam, refused.```
oof
Tag parse results for <item[cobblestone].recipe_ids>: https://paste.denizenscript.com/View/123888
li@
Well, monkey not updating the tag parser server could be related lol - can try and test it on a updated server
oo wait no my bad, recipe_ids is recipes that make the item
I guess you would use
!t server.recipe_ids
Returns a list of all recipe IDs on the server.
Returns a list in the Namespace:Key format, for example "minecraft:gold_nugget".
Optionally, specify a recipe type (CRAFTING, FURNACE, COOKING, BLASTING, SHAPED, SHAPELESS, SMOKING, CAMPFIRE, STONECUTTING, SMITHING, BREWING)
to limit to just recipes of that type.
Brewing recipes are only supported on Paper, and only custom ones are available.
Note: this will produce an error if all recipes of any one type have been removed from the server, due to an error in Spigot.
Returns
ListTag
Get all furnace recipes and get ones matching the item in their hand
<server.recipe_result[<server.recipe_ids[furnace].filter_tag[<server.recipe_items[<[filter_value]>].first.after[material:].equals[<player.item_in_hand.material.name>]>].first>]> here's a 1 tag version
- define recipes <server.recipe_ids[furnace]>
- define item <player.item_in_hand>
- define item_name material:<[item].material.name>
- foreach recipes as:recipe:
- if <server.recipe_items[<[recipe]>].contains_any[<[item]>|<[item_name]>]>:
- define result <server.recipe_result[<[recipe]>]>
- stop
Wrote it in Discord, but something like that
May want to keep a cache in a server flag and clear it on restart or something, that way you don't have to do the entire lookup every time
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@true oak