{
  "type": "minecraft:condition",
  "if_true": {
    "type": "minecraft:stone_depth",
    "add_surface_depth": false,
    "offset": 0,
    "secondary_depth_range": 0,
    "surface_type": "floor"
  },
  "then_run": {
    "type": "minecraft:sequence",
    "sequence": [
      {
        "type": "minecraft:condition",
        "if_true": {
          "type": "minecraft:stone_depth",
          "add_surface_depth": false,
          "offset": 0,
          "secondary_depth_range": 0,
          "surface_type": "ceiling"
        },
        "then_run": {
          "type": "minecraft:block",
          "result_state": %s
        }
      },
      {
        "type": "minecraft:block",
        "result_state": %s
      }
    ]
  }
}
