#Change Recipe Energy

10 messages · Page 1 of 1 (latest)

viscid adder
#

Is there a way to bulk edit recipe's time taken?

#

e.g. i want to shorten the time for all machines to make items

mortal marsh
#

or set all to the same amount

#

I could throw together somethin

viscid adder
#

thx for trying to help

viscid adder
# mortal marsh you want to shorten all by the same amount?

uh i found out how, thx for trying to help tho

ServerEvents.recipes(event => {
    event.forEachRecipe({ mod: 'gtceu' }, recipe => {
        try {
            var newDuration = recipe.get("duration");
            recipe.set("duration", newDuration/10);
        } catch (err) {
            console.log(recipe.id + " has no duration field, skipped.");
        }
    })
})
mortal marsh
#

Neat I was kinda doing the same thing but instead of trying and catching I was just checking if a recipe used energy

#

But recipes just like wouldn't change for me for whatever reason so I stopped