const MINEABLE_AXE = [
    `minecraft:cactus`,
    `creeperoverhaul:tiny_cactus`,
    `byg:barrel_cactus`,
    `byg:flowering_barrel_cactus`,
    `byg:carved_barrel_cactus`,
    `heb:large_cactus`,
	`immersiveengineering:balloon`,
    `decorative_blocks:chandelier`,
    `decorative_blocks:soul_chandelier`,
    `twilightdelight:fiery_snakes_block`,
    `twilightdelight:lily_chicken_block`,
    `corn_delight:corn_kernel_bag`,
    `corn_delight:popcorn_box`,
    `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`,
    `delightful:salmonberry_sack`
];

const MINEABLE_PICKAXE = [
    `minecraft:glowstone`,
    `minecraft:redstone_lamp`,
    `minecraft:honeycomb_block`,
    `minecraft:candle`,
    `minecraft:lever`,
    `minecraft:beacon`,
    `minecraft:sea_lantern`,
	`minecraft:skeleton_skull`,
	`minecraft:player_head`,
	`minecraft:wither_skeleton_skull`,
    `the_bumblezone:porous_honeycomb_block`,
    `the_bumblezone:filled_porous_honeycomb_block`,
    `the_bumblezone:empty_honeycomb_brood_block`,
    `the_bumblezone:honeycomb_brood_block`,
    `the_bumblezone:honey_crystal`,
    `the_bumblezone:honey_crystal`,
	`minerslung:safety_lantern`,
	`twilightforest:firefly_jar`,
	`twilightforest:firefly_particle_spawner`,
	`twilightforest:cicada_jar`,
	`twilightforest:zombie_skull_candle`,
	`twilightforest:skeleton_skull_candle`,
	`twilightforest:wither_skeleton_skull_candle`,
	`twilightforest:creeper_skull_candle`,
	`twilightforest:player_skull_candle`,
    `malum:spirit_jar`,
    `immersiveengineering:balloon`,
    `minecraft:zombie_head`,
    `minecraft:dragon_head`,
    `supplementaries:skull_pile`,
    `born_in_chaos_v1:cursed_scarlet_ornate_glass_pane`,
    `born_in_chaos_v1:purple_stained_glass_panel`,
    `born_in_chaos_v1:purple_stained_glass`,
    `born_in_chaos_v1:green_stained_glass_panel`,
    `born_in_chaos_v1:green_stained_glass`,
    `born_in_chaos_v1:orange_stained_glass_panel`,
    `born_in_chaos_v1:orange_stained_glass`,
    `born_in_chaos_v1:scarlet_stained_glass_panel`,
	`additionaladditions:amethyst_lamp`,
	`phantasm:smooth_obsidian_lamp`,
    `byg:glowstone_lamp`,
    `born_in_chaos_v1:argillite_lamp`
];

const MINEABLE_PICKAXE_TAGS = [
    `forge:glass_panes`,
    `forge:glass`,
    `chipped:glass`,
    `chipped:glowstone`,
    `chipped:sea_lantern`,
    `chipped:redstone_lamp`,
    `chipped:glass_pane`,
    `chipped:lantern`,
    `forge:heads`
];

const MINEABLE_AXE_TAGS = [
    `minecraft:beds`
];

const MINEABLE_SHOVEL = [];
const MINEABLE_HOE = [];

const MINEABLE_SWORD = [
    `minecraft:honeycomb_block`,
	`the_bumblezone:porous_honeycomb_block`,
    `the_bumblezone:filled_porous_honeycomb_block`,
    `the_bumblezone:empty_honeycomb_brood_block`,
    `the_bumblezone:honeycomb_brood_block`
];

const MINEABLE_SHEARS = [
    `minecraft:honeycomb_block`,
	`the_bumblezone:porous_honeycomb_block`,
    `the_bumblezone:filled_porous_honeycomb_block`,
    `the_bumblezone:empty_honeycomb_brood_block`,
    `the_bumblezone:honeycomb_brood_block`,
	`byg:barrel_cactus`,
    `byg:flowering_barrel_cactus`,
    `byg:carved_barrel_cactus`
];

onEvent('block.tags', event => {
	for (var block of MINEABLE_AXE) {
		event.get('minecraft:mineable/axe').add(block);
	}
	
	for (var block of MINEABLE_PICKAXE) {
		event.get('minecraft:mineable/pickaxe').add(block);
	}
	
	for (var tag of MINEABLE_PICKAXE_TAGS) {
		let items = event.get(tag).objectIds
		event.add('minecraft:mineable/pickaxe', items.toArray())
	}	
	
	for (var tag of MINEABLE_AXE_TAGS) {
		let items = event.get(tag).objectIds
		event.add('minecraft:mineable/axe', items.toArray())
	}
	
	for (var block of MINEABLE_SWORD) {
		event.get('minecraft:mineable/sword').add(block);
	}
	
	for (var block of MINEABLE_SHOVEL) {
		event.get('minecraft:mineable/shovel').add(block);
	}
	
	for (var block of MINEABLE_HOE) {
		event.get('minecraft:mineable/hoe').add(block);
	}
	
	for (var block of MINEABLE_SHEARS) {
		event.get('minecraft:mineable/shears').add(block);
	}
	
	// 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')
})