// Copper ore: mineable with wood tools, drops raw_copper

ServerEvents.tags('block', event => {
  const copperOres = [
    'minecraft:copper_ore',
    'minecraft:deepslate_copper_ore'
  ]

  event.add('minecraft:mineable/pickaxe', copperOres)
  event.add('minecraft:needs_wood_tool', copperOres)
  event.remove('minecraft:needs_stone_tool', copperOres)
})

LootJS.modifiers(event => {
  event.addBlockLootModifier('minecraft:copper_ore')
    .removeLoot(Ingredient.all)
    .addLoot('minecraft:raw_copper')
})
