// kubejs/server_scripts/remove_minerals_tools_all_containers.js
LootJS.modifiers(event => {
  const ANY_CONTAINER = new RegExp("^(.*chests\\/.*|terralith:.*|loonium:.*)$");

  event.addLootTableModifier(ANY_CONTAINER)
    .removeLoot([
      // === Vanilla items to remove ===
      'minecraft:raw_iron', 'minecraft:raw_copper', 'minecraft:raw_gold',
      'minecraft:iron_ingot', 'minecraft:copper_ingot', 'minecraft:gold_ingot', 'minecraft:netherite_ingot',
      'minecraft:iron_nugget', 'minecraft:gold_nugget',
      'minecraft:diamond', 'minecraft:emerald', 'minecraft:lapis_lazuli', 'minecraft:redstone', 'minecraft:quartz',
      'minecraft:wooden_sword', 'minecraft:stone_sword', 'minecraft:iron_sword',
      'minecraft:golden_sword', 'minecraft:diamond_sword', 'minecraft:netherite_sword',
      'minecraft:wooden_pickaxe', 'minecraft:stone_pickaxe', 'minecraft:iron_pickaxe',
      'minecraft:golden_pickaxe', 'minecraft:diamond_pickaxe', 'minecraft:netherite_pickaxe',
      'minecraft:wooden_axe', 'minecraft:stone_axe', 'minecraft:iron_axe',
      'minecraft:golden_axe', 'minecraft:diamond_axe', 'minecraft:netherite_axe',
      'minecraft:wooden_shovel', 'minecraft:stone_shovel', 'minecraft:iron_shovel',
      'minecraft:golden_shovel', 'minecraft:diamond_shovel', 'minecraft:netherite_shovel',
      'minecraft:wooden_hoe', 'minecraft:stone_hoe', 'minecraft:iron_hoe',
      'minecraft:golden_hoe', 'minecraft:diamond_hoe', 'minecraft:netherite_hoe',
      'minecraft:bow', 'minecraft:crossbow', 'minecraft:trident','minecraft:iron_block',
      'minecraft:copper_block','minecraft:gold_block','minecraft:netherite_block',
      'minecraft:raw_iron_block','minecraft:raw_copper_block','minecraft:raw_gold_block',
      'minecraft:diamond_block','minecraft:emerald_block','minecraft:lapis_block','minecraft:redstone_block',
      '#minecraft:creeper_igniters',
      // === Tag coverage for modded stuff ===
      '#forge:ores', '#forge:ingots', '#forge:gems', '#forge:nuggets',
      '#forge:tools', '#forge:swords',
      '#c:ores', '#c:ingots', '#c:gems', '#c:nuggets',
      '#c:tools', '#c:swords'
    ]);
});
