ServerEvents.recipes(event => {
    event.custom({
  "type": "minecraft:crafting_shaped",
  "key": {
    "D": {
      "item": "farmersdelight:wheat_dough"
    },
    "M": {
      "item": "farmersdelight:milk_bottle"
    },
    "E": {
      "item": "minecraft:egg"
    },
    "S": {
      "item": "minecraft:sugar"
    },
    "C": {
      "item": "trailandtales_delight:cherry_cheese_slice"
    },
    "P": {
      "item": "trailandtales_delight:cherry_petal"
    }
  },
  "pattern": [
    "CMC",
    "SES",
    "PDP"
  ],
  "result": {
    "item": "trailandtales_delight:cherry_cake"
  }
    })
    event.remove({id:'trailandtales_delight:cherry_cake'})
})