{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:item_used_on_block",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:location_check",
            "predicate": {
              "biomes": "survivalplus:backrooms"
            }
          }
        ],
        "location": [
          {
            "condition": "minecraft:block_state_property",
            "block": "minecraft:cake"
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "survivalplus:tools/food/badcake"
  }
}