diff --git a/minecraft/kubejs/server_scripts/recipedump.js b/minecraft/kubejs/server_scripts/recipedump.js index 39f1f65..fc19c92 100644 --- a/minecraft/kubejs/server_scripts/recipedump.js +++ b/minecraft/kubejs/server_scripts/recipedump.js @@ -1,6 +1,34 @@ -const toggle = true; +const toggle = false; ServerEvents.recipes(e => { + + + + + 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); + }) + + + + + + + + + + + + + + + if (toggle) { console.warn("RECIPE DUMPING IS TURNED ON, THIS WILL DUMP JSON DATA OF ALL OF THE RECIPES IN THE GAME, WILL LAG"); let rec = e.getRecipes();