mirror of
https://github.com/barkeser2002/minecraft-data.git
synced 2026-11-24 08:26:28 +03:00
23 lines
642 B
JavaScript
23 lines
642 B
JavaScript
var recipes = require('../enums/recipes');
|
|
|
|
var shapeCount = 0, shapelessCount = 0;
|
|
var outShapeCount = 0;
|
|
for (var key in recipes) {
|
|
var list = recipes[key];
|
|
for (var i = 0; i < list.length; ++i) {
|
|
var recipe = list[i];
|
|
if (recipe.inShape != null) {
|
|
shapeCount += 1;
|
|
} else if (recipe.ingredients != null) {
|
|
shapelessCount += 1;
|
|
} else {
|
|
console.log("inShape or ingredients required:", key);
|
|
}
|
|
if (recipe.outShape) outShapeCount += 1;
|
|
}
|
|
}
|
|
|
|
console.log("normal recipes:", shapeCount);
|
|
console.log("shapeless recipes:", shapelessCount);
|
|
console.log("how many have an outShape:", outShapeCount);
|