#(Behr) Recipe tags

33 messages · Page 1 of 1 (latest)

true oak
#

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

grave raptorBOT
#

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.

cold dust
#

Well, there are tags like

#

!t recipe_ides

fading flareBOT
#
Possible Confusion

Did you mean to search for itemtag.recipe_ids?

fading flareBOT
# cold dust !t recipe_ides

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

cold dust
#

!t recipe_result

fading flareBOT
cold dust
#

!t recipe_input

fading flareBOT
#
Possible Confusion

Did you mean to search for itemtag.recipe_ids?

cold dust
#

!t recipe_items

fading flareBOT
# cold dust !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)

cold dust
#

Could get the item's smelting/blasting recipes, check their ingredients, and switch the item with the result if it matches

true oak
#

mmm

terse vigilBOT
true oak
#

i think i confused myself, if i have cobblestone, how do i get to stone?

terse vigilBOT
true oak
#

oof

terse vigilBOT
cold dust
#

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

fading flareBOT
# cold dust !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

cold dust
#

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

cold dust
#

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

ebon cradleBOT
#
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