trying something else for recipe dump
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user