{
  "format_version": "1.13.0",
  "minecraft:feature_rules": {
    "description": {
      "identifier": "minecraft:mangrove_swamp_mangrove_tree_feature",
      "places_feature": "minecraft:random_mangrove_tree_feature"
    },
    "conditions": {
      "placement_pass": "surface_pass",
      "minecraft:biome_filter": [
        { "test": "has_biome_tag", "value": "mangrove_swamp" }
      ]
    },
    "distribution": {
      "iterations": 25,
      "x": {
        "distribution": "uniform",
        "extent": [ 0, 16 ]
      },
      "y": "math.max(query.above_top_solid(variable.worldx, variable.worldz), query.heightmap(variable.worldx, variable.worldz) - 4)",
      "z": {
        "distribution": "uniform",
        "extent": [ 0, 16 ]
      }
    }
  }
}
