#Items of a Specific Tag
22 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I believe there may be, but I can't remember it at this very moment. worst case scenario, you can run /kubejs export and the item, block, entity type, worldgen biome, mob effect, damage type, etc. tags will be exported in .minecraft/local/kubejs/export/tags/...
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
Or you can do them in code without saving it, if that’s what you need 
I believe it is
In the tag event its just the itemIDs property
i couldnt write it out cuz i was on my phone
let items = Ingredient.of('#tag').itemIds
Oh sorry, not a capitalised d, that always trips me up
i usually write ID capitalized in my code too
I'm looking to be able to run a command in game that gives me the items that have a certain tag. I want to write a custom function (or maybe the functionality already exists) like /giveitemsundertag #minecraft:logs and then it gives 1 of each item under the tag
Did you ever find it? 🙏
ok thought so
/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.)
Awesome. Thank you
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.
