{
  "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:dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:stripped_spruce_wood",
            "Properties": {
                "axis": "y"
            }
          }
        },
        {
          "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: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:air"
          },
          "input_predicate": {
            "predicate_type": "minecraft:random_block_match",
            "block": "minecraft:dirt",
            "probability": 0.8
          },
          "output_state": {
            "Name": "minecraft:stripped_spruce_wood",
            "Properties": {
                "axis": "y"
            }
          }
        }
      ]
    }
  ]
}