//create_copper_ore
onEvent('block.loot_tables', event => { 
    event.build('create:copper_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "create:copper_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "cavesandcliffs:raw_copper"
              }
            ]
         })
       })
   })
  })
//DARKER DEPHTS
//aridrock_gold_ore
onEvent('block.loot_tables', event => { 
    event.build('darkerdepths:aridrock_gold_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "darkerdepths:aridrock_gold_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "cavesandcliffs:raw_gold"
              }
            ]
         })
       })
   })
  })
//arid_rock_iron
onEvent('block.loot_tables', event => { 
    event.build('darkerdepths:aridrock_iron_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "darkerdepths:aridrock_iron_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "cavesandcliffs:raw_iron"
              }
            ]
         })
       })
   })
  })
//aridrock_silver_ore
onEvent('block.loot_tables', event => { 
    event.build('darkerdepths:aridrock_silver_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "darkerdepths:aridrock_silver_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "kubejs:raw_silver"
              }
            ]
         })
       })
   })
  })
//limestone_gold_ore
onEvent('block.loot_tables', event => { 
    event.build('darkerdepths:limestone_gold_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "darkerdepths:limestone_gold_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "cavesandcliffs:raw_gold"
              }
            ]
         })
       })
   })
  })
//limestone_iron_ore
onEvent('block.loot_tables', event => { 
    event.build('darkerdepths:limestone_iron_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "darkerdepths:limestone_iron_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "cavesandcliffs:raw_iron"
              }
            ]
         })
       })
   })
  })
//limestone_silver_ore
onEvent('block.loot_tables', event => { 
    event.build('darkerdepths:limestone_silver_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "darkerdepths:limestone_silver_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "kubejs:raw_silver"
              }
            ]
         })
       })
   })
  })
//I&F_silver_ore
onEvent('block.loot_tables', event => { 
    event.build('iceandfire:silver_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "iceandfire:silver_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "kubejs:raw_silver"
              }
            ]
         })
       })
   })
  })
//I&F copper_ore
onEvent('block.loot_tables', event => { 
    event.build('iceandfire:copper_ore', table => {
       table.pool(pool => {
         pool.survivesExplosion()
         pool.addEntry({
           "type": "minecraft:alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "conditions": [
                  {
                    "condition": "minecraft:match_tool",
                    "predicate": {
                      "enchantments": [
                        {
                          "enchantment": "minecraft:silk_touch",
                          "levels": {
                            "min": 1
                          }
                        }
                      ]
                    }
                  }
                ],
                "name": "iceandfire:copper_ore"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "function": "minecraft:apply_bonus",
                  "enchantment": "minecraft:fortune",
                  "formula": "minecraft:binomial_with_bonus_count",
                  "parameters": {
                    "extra": 0,
                    "probability": 0.25
                    }
                  },
                  {
                    "function": "minecraft:explosion_decay"
                  }
                ],
                "name": "cavesandcliffs:raw_copper"
              }
            ]
         })
       })
   })
  })