#How do i get a list of all items on `ServerEvents.recipes(event => {})`?

13 messages · Page 1 of 1 (latest)

next wigeon
#

how can i do it?

lean coralBOT
#

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

boreal valve
#

I think it's Ingredients.all

runic ruin
#

and if you want to iterate through them, its Ingredient.all.itemIds.forEach(id => ...)

next wigeon
runic ruin
#
Ingredient.of('#my_tag').itemIds.forEach(....)
next wigeon
# boreal valve what are you trying to do?

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
          }
        ]
      })
    });
next wigeon
#

well, worked, but the texture didnt, how do i put nbt on the result?

runic ruin
#

texture? what texture?

#

oh

#

youre gonna have to check Create and see how to add nbt