#how come it seems to place random resources as locked?

18 messages · Page 1 of 1 (latest)

brave ermine
#
ServerEvents.recipes(event => {
    event.forEachRecipe({mod: "create", not: {
                input: ["create:brass_ingot", "create:brass_sheet", "create:precision_mechanism", "create:brass_casing", "create:railway_casing", "create:sturdy_sheet", "create:powdered_obsidian", "create:electron_tube",  "create:track"]
        }}, recipe => {
        let output = recipe.originalRecipeResult
        AStages.addRestrictionForItem("stages_" + output, "medieval_age", output)
    })
})

It seems to place all the vanilla ores (minus netherite) and stripped logs and whatnot which does not make sense to me.

remote crownBOT
#

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

brave ermine
#

oh nvm I see why now

#

how would I even do this

#

I could just filter the items if they are actually from create maybe

brave ermine
#

but how

#

output.id.namespace always returns minecraft

#

maybe I can split a string with ":"

warped tusk
#

namespace is the mod id

#

path is the other part of the id

brave ermine
#

yes

#

but the thing is

#

it returns minecraft even tho it's a create item

warped tusk
brave ermine
#
let namespace = output.id.split(":")[0]
#

this works but like

#

very odd

#

it might be a bug