TagnumElite / ProjectE-Integration

ProjectE Support for selected mods
https://www.curseforge.com/minecraft/mc-mods/projecte-integration
Other
11 stars 13 forks source link

Get recipes from kubejs and mapping the emc #107

Open gjmhmm8 opened 8 months ago

gjmhmm8 commented 8 months ago

Get recipes from kubejs and mapping the emc

TagnumElite commented 8 months ago

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

gjmhmm8 commented 8 months ago

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) })

xinxinsuried commented 3 weeks ago

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