#How would I add everything in a custom tag to another custom tag except for one item?

13 messages · Page 1 of 1 (latest)

livid cove
#

I tried using the blacklist example on the wiki, but it didn't work:

const white_mats = e.get("modpack:dye_materials/white").getObjectIds()
    const blacklist = Item.of("minecraft:bone_meal")
      white_mats.forEach(white_mat => {
      if (!blacklist.test(white_mats))
         e.add("modpack:dye_materials/white_flower", white_mats)
    })

it should add everything with my custom dye_materials/white tag to the dye_materials/white_flower tag, but exclude Bone Meal.

just says it can't find bone meal.

copper anchorBOT
#

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

hushed storm
#

assuming blacklist is a regex?

livid cove
#

i dunno ¯_(ツ)_/¯

hushed storm
#

oh wait wtf i didnt see you defined it earlier

#
Ingredient.of('modpack:dye_materials/white').itemIds.forEach(id => {
  if(id != 'minecraft:bone_meal')
  e.add('modpack:dye_materials/white_flower', id)
}}
#

im too tired to think

livid cove
#

lol it's ok

#

noice, it worked.

#

thanks a ton!

hushed storm
#

^^