ProjectE Integration

ProjectE Integration

3M Downloads

Get recipes from kubejs and mapping the emc

gjmhmm8 opened this issue ยท 3 comments

commented

Get recipes from kubejs and mapping the emc

commented

I don't believe this will be possible due to the open ended api that KubeJS suppplies.

commented

kubejs can export all recipes easily and it can be useful in modpack

ServerEvents.recipes(event => {
let recipes=[]
event.forEachRecipe({},r=>{
// console.log("recipe",r.json.toString())
recipes.push(JSON.parse(r.json.toString()))
})
let recipe=JSON.stringify(recipes)
console.log(recipe)
})

commented

When I was creating a feature, I found that this method had an issue of incomplete export, but after replacing recipes with afterRecipes, there was no for each recipe method