{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1,
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:alternatives",
          "children": [
            {
              "type": "minecraft:item",
              "name": "minecraft:deepslate_emerald_ore",
              "conditions": [
                {
                  "condition": "minecraft:match_tool",
                  "predicate": {
                    "predicates": {
                      "minecraft:enchantments": [
                        {
                          "enchantments": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                }
              ]
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:emerald",
              "functions": [
                {
                  "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:ore_drops"
                },
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 3,
                    "max": 6
                  }
                },
                {
                  "function": "minecraft:explosion_decay"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:flawless_emerald"
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:random_chance_with_enchanted_bonus",
          "unenchanted_chance": 0.015,
          "enchanted_chance": {
            "type": "minecraft:linear",
            "base": 0.015,
            "per_level_above_first": 0.015
          },
          "enchantment": "minecraft:fortune"
        },
        {
          "condition": "minecraft:inverted",
          "term": {
            "condition": "minecraft:match_tool",
            "predicate": {
              "predicates": {
                "minecraft:enchantments": [
                  {
                    "enchantments": "minecraft:silk_touch"
                  }
                ]
              }
            }
          }
        },
        {
          "condition": "minecraft:entity_scores",
          "entity": "this",
          "scores": {
            "hardmode": 1
          }
        }
      ]
    }
  ],
  "random_sequence": "minecraft:blocks/deepslate_emerald_ore"
}