//priority: 50

// List of all blocks that should drop themselves
const selfDropList = [
	'better_diving:limestone_outcrop',
	'better_diving:sandstone_outcrop',
	'better_diving:shale_outcrop',
	'byg:blue_nether_quartz_ore',
	'byg:brimstone_nether_quartz_ore'
];

// Changed block drops: from -> to
const changeDropList = [
	[ 'minecraft:iron_ore', 'unearthed:iron_ore' ],
	[ 'minecraft:gold_ore', 'unearthed:gold_ore' ],
	[ 'minecraft:nether_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:sandstone_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:smooth_sandstone_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:red_sandstone_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:smooth_red_sandstone_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:terracotta_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:white_terracotta_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:orange_terracotta_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:yellow_terracotta_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:light_gray_terracotta_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:brown_terracotta_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:red_terracotta_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:ice_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:blackstone_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:basalt_iron_ore', 'unearthed:iron_ore' ],
	[ 'subwild:sandstone_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:smooth_sandstone_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:red_sandstone_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:smooth_red_sandstone_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:terracotta_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:white_terracotta_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:orange_terracotta_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:yellow_terracotta_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:light_gray_terracotta_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:brown_terracotta_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:red_terracotta_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:ice_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:blackstone_gold_ore', 'unearthed:gold_ore' ],
	[ 'subwild:basalt_gold_ore', 'unearthed:gold_ore' ], 
]

onEvent('block.loot_tables', event => {
	for (block of selfDropList) {
		event.addSimpleBlock(block);
	}

	for (block of changeDropList) {
		event.addSimpleBlock(block[0], block[1]);
	}
});
