#Using regex to blacklist a mod from custom crafting recipe?

8 messages · Page 1 of 1 (latest)

exotic carbon
#

Hello, I am requesting help with trying to add all items from Sophisticated Storage to a blacklist, which prevents any item from the mod from being duplicated with a custom recipe.

Attached is file I'm using to apply the tags

hollow nexusBOT
#

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

naive heathBOT
#

Paste version of tags.js from @exotic carbon

drowsy bobcat
#
    Ingredient.all.itemIds.forEach(item => {
        if (!dupeBlacklist.includes(item) && !/sophisticatedstorage:.*/.test(item))
            event.add('kubejs:duplicatable', item)
    })
exotic carbon
#

seems to still be applying the tag

drowsy bobcat
#

edited the snippet above ^

exotic carbon
#

heya, just woke up and revised the script. works now!

#

thank you for your help