#Items of a Specific Tag

22 messages · Page 1 of 1 (latest)

mellow scroll
#

Is there a way to run a custom command in game that gives all items of a specific tag?

blissful vergeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

cyan creek
#

just make sure you don't have any active scripts when you use the export command

#

i.e. no scripts that affect tags, recipes, etc. are currently in the .minecraft/kubejs folder

cosmic steppe
#

Or you can do them in code without saving it, if that’s what you need thinking_lex

lethal talon
#

In the tag event its just the itemIDs property

cosmic steppe
#

i couldnt write it out cuz i was on my phone

#
let items = Ingredient.of('#tag').itemIds
lethal talon
#

Oh sorry, not a capitalised d, that always trips me up

cosmic steppe
#

i usually write ID capitalized in my code too

mellow scroll
cyan creek
#

I swear a command like that exists

#

I’ll have to find it when I get on my pc

mellow scroll
cyan creek
#

aw shucks I forgot weeping

#

I'll make it a priority tomorrow

cyan creek
#

/forge tags <item,block,entity_type,worldgen/biome,...> get <tag> gives you all of the items under one tag
/forge tags <item,block,entity_type,worldgen/biome,...> query <id> gives you all of the tags under a particular type of thing (items, entities, blocks, etc.)

frank roseBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.