#Non [a-z0-9_.-] character in namespace of location:

9 messages · Page 1 of 1 (latest)

molten quarry
#

Hello, could someone help me with this error? [ERROR] ! Error in 'ServerEvents.recipes': Non [a-z0-9_.-] character in namespace of location: 1x thermal:gold_coin. This is not my code because I am trying to add the import mechanics from create above and boyond to my modpack on 1.20.1 forge

I think there is a problem here
function trading(event) {
let trade = (card_id, ingredient, output) => {
event.custom({
type: 'thermal:press',
ingredients: [
Ingredient.of(ingredient).toJson(),
Ingredient.of(card_id).toJson(),
],
result: [
Item.of(output).toResultJson()
],
energy: 1000
})
}

global.trades.forEach(element => {
    if (global.transactions[element])
        global.transactions[element].forEach(transaction => {
            trade(KJ('tradecard' + element), transaction.in, transaction.out)
        })
});

global.professions.forEach(element => {
    if (global.transactions[element])
        global.transactions[element].forEach(transaction => {
            trade(KJ('professioncard' + element), transaction.in, transaction.out)
        })
}); 

} and this is the whole code

kind heartBOT
#

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

cobalt mistBOT
#

Paste version of SPOILER_message_2.txt from @molten quarry

thin inlet
#

Error in 'ServerEvents.recipes': Non [a-z0-9_.-] character in namespace of location: 1x thermal:gold_coin
This means you are passing "1x thermal" as the modid/namespace to something which is invalid.
Try splitting up the code and test it step by step to find where exactly the error happens.

#

also between kubejs 1.16.5 and 1.20 there were a lot of changes to recipes. You can't just copy it over

past wasp
#

i mean you shouldnt need to specify one item for a recipe, it should do one by default