All checks were successful
continuous-integration/drone/push Build is passing
26 lines
1003 B
JavaScript
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
|
|
// }
|
|
// })
|
|
// })
|