trying something else for recipe dump

This commit is contained in:
APEX FIGHT
2026-01-16 16:00:54 -05:00
parent 04e80f0ce4
commit e27aed77ef

View File

@@ -1,6 +1,34 @@
const toggle = true; const toggle = false;
ServerEvents.recipes(e => { 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) { if (toggle) {
console.warn("RECIPE DUMPING IS TURNED ON, THIS WILL DUMP JSON DATA OF ALL OF THE RECIPES IN THE GAME, WILL LAG"); 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(); let rec = e.getRecipes();