{
  "condition": "minecraft:all_of",
  "terms": [
    {
      "condition": "minecraft:location_check",
      "predicate": {
        "block": {
          "blocks": "minecraft:air"
        }
      }
    },
    {
      "condition": "minecraft:location_check",
      "offsetY": -1,
      "predicate": {
        "block": {
          "blocks": "#minecraft:dirt"
        }
      }
    },
    {
      "condition": "minecraft:random_chance",
      "chance": 0.005
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "type": "minecraft:item",
        "nbt": "{Item:{count:1}}",
        "flags": {
          "is_on_ground": true
        }
      }
    }
  ]
}