{
    "type": "minecraft:block",
    "pools": [
      {
        "rolls": 1.0,
        "entries": [
          {
            "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:block_state_property",
                    "block": "croptopia:onion_crop",
                    "properties": {
                      "age": "7"
                    }
                  }
                ],
                "name": "farmersdelight:onion"
              },
              {
                "type": "minecraft:item",
                "name": "farmersdelight:onion"
              }
            ]
          }
        ]
      },
      {
        "rolls": 1.0,
        "entries": [
          {
            "type": "minecraft:item",
            "functions": [
              {
                "function": "minecraft:apply_bonus",
                "enchantment": "minecraft:fortune",
                "formula": "minecraft:binomial_with_bonus_count",
                "parameters": {
                  "extra": 1,
                  "probability": 0.2714286
                }
              }
            ],
            "name": "farmersdelight:onion"
          }
        ],
        "conditions": [
          {
            "condition": "minecraft:block_state_property",
            "block": "croptopia:onion_crop",
            "properties": {
              "age": "7"
            }
          }
        ]
      }
    ],
    "functions": [
      {
        "function": "minecraft:explosion_decay"
      }
    ]
  }