#How do i get a list of all items on `ServerEvents.recipes(event => {})`?
13 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I think it's Ingredients.all
and if you want to iterate through them, its Ingredient.all.itemIds.forEach(id => ...)
I tried using this with regex to do what I'm trying to do, but it didn't work.
Is there a way to iterate through all the items in a specific tag?
what are you trying to do?
Ingredient.of('#my_tag').itemIds.forEach(....)
I'm trying to create an application item recipe for each log type so that the result has the texture of the specific log.
Ingredient.tag.itemIds.map(i => { /^[a-z_]+:[a-z_]*log$/.test(i) }).forEach(i => {
event.custom({
"type": "create:item_application",
"ingredients": [
{
"item": i
},
{
"item": "tconstruct:pattern"
}
],
"results": [
{
"item": "tconstruct:crafting_station",
"texture": i
}
]
})
});
ty
well, worked, but the texture didnt, how do i put nbt on the result?