ServerEvents.recipes(event => {
    event.custom({
  "type": "minecraft:crafting_shaped",
  "key": {
    "C": {
      "item": "rusticdelight:coffee"
    },
    "E": {
      "item": "minecraft:egg"
    },
    "M": {
      "item": "farmersdelight:milk_bottle"
    },
    "S": {
      "item": "minecraft:sugar"
    },
    "D": {
      "item": "farmersdelight:wheat_dough"
    },
    "B": {
      "item": "rusticdelight:roasted_coffee_beans"
    }
  },
  "pattern": [
    "MCM",
    "SES",
    "BDB"
  ],
  "result": {
    "item": "farmersrespite:coffee_cake"
  }
    })
    event.remove({id:'farmersrespite:coffee_cake'})
})