获取所有配方json并保存为文件
完整代码
ServerEvents.recipes(event=>{
event.forEachRecipe({},recipe=>{
JsonIO.write("./recipes/" + String(recipe.getId()).replace(/:|\//g, '_') + ".json",recipe.json)
})
})Last updated
ServerEvents.recipes(event=>{
event.forEachRecipe({},recipe=>{
JsonIO.write("./recipes/" + String(recipe.getId()).replace(/:|\//g, '_') + ".json",recipe.json)
})
})Last updated