{
  "processors": [
    {
      "processor_type": "minecraft:rule",
      "rules": [
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:grass_block",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_slab",
            "Properties": {
                "type": "top",
                "waterlogged": "true"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block":  "minecraft:coarse_dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_slab",
            "Properties": {
                "type": "top",
                "waterlogged": "true"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block":  "minecraft:rooted_dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_slab",
            "Properties": {
                "type": "top",
                "waterlogged": "true"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:grass_block",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_trapdoor",
            "Properties": {
                "waterlogged": "true",
                "facing": "north",
                "half": "top"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:coarse_dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_trapdoor",
            "Properties": {
                "waterlogged": "true",
                "facing": "north",
                "half": "top"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:rooted_dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_trapdoor",
            "Properties": {
                "waterlogged": "true",
                "facing": "north",
                "half": "top"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:grass_block",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_trapdoor",
            "Properties": {
                "waterlogged": "true",
                "facing": "west",
                "half": "top"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:coarse_dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_trapdoor",
            "Properties": {
                "waterlogged": "true",
                "facing": "west",
                "hald": "top"
            }
          }
        },
        {
          "location_predicate": {
            "predicate_type": "minecraft:block_match",
            "block": "minecraft:water"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:rooted_dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:spruce_trapdoor",
            "Properties": {
                "waterlogged": "true",
                "facing": "west",
                "half": "top"
            }
          }
        }
      ]
    }
  ]
}