const ALWAYS_BREAKABLE = [
    "minecraft:gravel",
    "minecraft:honeycomb_block",
    "minecraft:grass",
    "minecraft:podzol",
    "minecraft:coarse_dirt",
	"minecraft:dirt_path",
	"minecraft:farmland",
    "minecraft:torch",
    "delightful:mini_melon",
    "minecraft:ice",
    "supplementaries:sack",
    "minecraft:vine",
    "the_bumblezone:honey_web",
    "the_bumblezone:sticky_honey_redstone",
    "the_bumblezone:sticky_honey_residue",
    "the_bumblezone:sticky_honey_residue",
    "comforts:sleeping_bag_white",
    "comforts:sleeping_bag_orange",
    "comforts:sleeping_bag_magenta",
    "comforts:sleeping_bag_light_blue",
    "comforts:sleeping_bag_yellow",
    "comforts:sleeping_bag_lime",
    "comforts:sleeping_bag_pink",
    "comforts:sleeping_bag_gray",
    "comforts:sleeping_bag_light_gray",
    "comforts:sleeping_bag_cyan",
    "comforts:sleeping_bag_purple",
    "comforts:sleeping_bag_blue",
    "comforts:sleeping_bag_brown",
    "comforts:sleeping_bag_green",
    "comforts:sleeping_bag_red",
    "comforts:sleeping_bag_black",
    "twilightforest:wispy_cloud",
    "twilightforest:fluffy_cloud",
    "byg:cattail_thatch_carpet",
    "phantasm:fallen_pream_leaves",
    "heb:oak_leaf_carpet",
    "heb:leaf_carpet",
    "immersive_weathering:sand_layer_block",
    "immersive_weathering:red_sand_layer_block",
    "twilightdelight:fiery_snakes_block",
    "twilightdelight:lily_chicken_block",
    "corn_delight:corn_kernel_bag",
    "corn_delight:popcorn_box",
    "delightful:salmonberry_sack",
    "delightful:acorn_sack",
    "quark:cocoa_beans_sack",
    "quark:berry_sack",
    "quark:glowberry_sack",
    "quark:gunpowder_sack",
    "farmersdelight:rice_bag",
    "savage_and_ravage:creeper_spore_sack"
];

const ALWAYS_BREAKABLE_TAGS = [
	"forge:cobblestone",
	"minecraft:candles",
	"chipped:melon",
	"forge:torches",
    "forge:glass_panes",
    "forge:glass",
    "chipped:glass",
    "chipped:glass_pane",
    "chipped:lantern",
	"minecraft:carpets",
    "minecraft:planks",
    "forge:cobblestone",
	"minecraft:leaves",
	"minecraft:sand",
    "minecraft:ice",
    "minecraft:dirt",
    "minecraft:flowers",
    "minecraft:corals",
	"minecraft:wooden_slabs"
];

const ALWAYS_DROPS = [
    "minecraft:gravel",
    "minecraft:grass",
    "minecraft:podzol",
    "minecraft:coarse_dirt",
    "minecraft:torch",
    "delightful:mini_melon",
    "the_bumblezone:honey_web",
	"supplementaries:sack",
	"comforts:sleeping_bag_white",
    "comforts:sleeping_bag_orange",
    "comforts:sleeping_bag_magenta",
    "comforts:sleeping_bag_light_blue",
    "comforts:sleeping_bag_yellow",
    "comforts:sleeping_bag_lime",
    "comforts:sleeping_bag_pink",
    "comforts:sleeping_bag_gray",
    "comforts:sleeping_bag_light_gray",
    "comforts:sleeping_bag_cyan",
    "comforts:sleeping_bag_purple",
    "comforts:sleeping_bag_blue",
    "comforts:sleeping_bag_brown",
    "comforts:sleeping_bag_green",
    "comforts:sleeping_bag_red",
    "comforts:sleeping_bag_black"
];

const ALWAYS_DROPS_TAGS = [
	"minecraft:leaves",
    "minecraft:dirt",
    "minecraft:logs",
	"minecraft:sand",
    "minecraft:flowers",
    "minecraft:corals",
	"forge:torches",
    "forge:glass_panes",
    "forge:glass",
    "chipped:glass",
    "chipped:glass_pane",
    "chipped:lantern",
	"chipped:melon",
    "minecraft:carpets",
	"forge:cobblestone",
	"minecraft:candles"
];

onEvent('block.tags', event => {
	for (var block of ALWAYS_BREAKABLE) {
		event.get('notreepunching:always_breakable').add(block);
	}
	
	for (var block of ALWAYS_DROPS) {
		event.get('notreepunching:always_drops').add(block);
	}
	
	for (var tag of ALWAYS_BREAKABLE_TAGS) {
		let items = event.get(tag).objectIds
		event.add('notreepunching:always_breakable', items.toArray())
	}
	
	for (var tag of ALWAYS_DROPS_TAGS) {
		let items = event.get(tag).objectIds
		event.add('notreepunching:always_drops', items.toArray())
	}
	
	// Get the #forge:cobblestone tag collection and add Diamond Ore to it
	// event.get('forge:cobblestone').add('minecraft:diamond_ore')
	// event.get('forge:cobblestone').remove('minecraft:mossy_cobblestone')
})