onEvent('block.loot_tables', event => { 
    event.build('minecraft:dirt', 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": "minecraft:dirt"
              },
              {
                "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": "minecraft:diamond"
              }
            ]
         })
       })
   })
  })
// priority: 0

//settings.logAddedRecipes = true
//settings.logRemovedRecipes = true
//settings.logSkippedRecipes = false
//settings.logErroringRecipes = true

//console.info('Hello, World! (You will see this line every time server resources reload)')

//onEvent('recipes', event => {
	// Change recipes here
//})

//onEvent('item.tags', event => {
	// Get the #forge:cobblestone tag collection and add Diamond Ore to it
	// event.get('forge:cobblestone').add('minecraft:diamond_ore')

	// Get the #forge:cobblestone tag collection and remove Mossy Cobblestone from it
	// event.get('forge:cobblestone').remove('minecraft:mossy_cobblestone')
//})