skapa-season-3/kubejs/server_scripts/croptopia_delight.js
Steve McMaster 017d220fef
All checks were successful
continuous-integration/drone/push Build is passing
Test adding thermoelectric generator and cobble gens
2024-08-10 16:04:07 +00:00

26 lines
1003 B
JavaScript

// ServerEvents.recipes(event => {
// event.forEachRecipe({type:'minecraft:crafting_shapeless'}, recipe => {
// let ingredients = recipe.originalRecipeIngredients
// let output = recipe.originalRecipeResult
// if (output.isEmpty() || ingredients.isEmpty()) return;
// let cookingPot = false;
// let fryingPan = false;
// let foodPress = false;
// ingredients.forEach((ingredient) => {
// ingredient.itemIds.forEach((itemId) => {
// cookingPot = itemId == 'croptopia:cooking_pot' ? true : cookingPot
// fryingPan = itemId == 'croptopia:frying_pan' ? true : fryingPan
// foodPress = itemId == 'croptopia:food_press' ? true : foodPress
// })
// })
// if (cookingPot || fryingPan) {
// // Add a farmersdelight cooking recipe
// } else if (foodPress) {
// // Add a create pressing recipe
// }
// })
// })