#Looking for Modpack Utility Scripts

14 messages · Page 1 of 1 (latest)

scarlet token
#

Would anyone be able to share modpack utility scripts? Currently, I'd like scripts that are capable of:

  1. Logging all pairs of recipes that have the same inputs (recipe conflicts)
  2. Logging all recipes that have inputs from a given tag(s) (e.g. a #kubejs:disabled tag)

Ideally, these should be able to take into account the effects of scripts using the event architecture, i.e. ServerEvents.recipes and ServerEvents.tags.

cyan juncoBOT
#

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

oblique geyser
#

polymorph can dump to file all your conflicts

scarlet token
#

Ah, neat. I may just use that then.

oblique geyser
#

it's a mod specifically built for conflicting recipes and allowing the player to choose which output they want

leaden gate
#

for the second you can use forEach recipe and get all the ingredients with recipe.originalRecipeIngredients This only works on supported recipe types

oblique geyser
#

but it does have a / command to dump conflicts so you can choose to fix as many as possible

scarlet token
#

Assuming that this will be enough, what'd be the best way to check if they're in the target tag?

oblique geyser
#
event.forEachRecipe({input:"#kubejs:disabled"}, recipe => {
  // the rest of the owl
})
scarlet token
#

Would that check for anything in that tag, or just recipes where that tag itself is the input?

oblique geyser
#

something as simple as console.log(recipe.id) would tell you all the recipes with those items

#

anything a part of the tag and the tag itself