ServerEvents.recipes(event => {
    event.custom({
  "type": "minecraft:crafting_shaped",
  "key": {
    "D": {
      "item": "trailandtales_delight:dried_cherry_petal"
    },
    "C": {
      "item": "trailandtales_delight:cherry_cheese_slice"
    },
    "P": {
      "item": "farmersdelight:pie_crust"
    },
    "S": {
      "item": "minecraft:sugar"
    },
    "E": {
      "item": "minecraft:egg"
    },
    "W": {
      "item": "minecraft:wheat"
    }
  },
  "pattern": [
    "DED",
    "WCW",
    "SPS"
  ],
  "result": {
    "item": "trailandtales_delight:cherry_cheese_pie"
  }
    })
    event.remove({id:'trailandtales_delight:cherry_cheese_pie'})
})