function createOres(id, color, hardness, level, oreOption) {
let condStone = oreOption == 'stone' ? `unify:${id}_ore` : `unify:${id}_${oreOption}_ore`
event.create(condStone)
.hardness(hardness)
.material('stone')
.tagBlock(level)
.tagBlock('minecraft:mineable/pickaxe')
.tagItem('forge:ores')
.tagItem(`forge:ores/${id}`)
.tagItem('unify:ores')
.tagItem(`unify:ores/${id}`)
.color(1, color)
.item(item => item.color(1, color))
.modelJson = {
parent: 'unify:block/ore',
textures: {
all: `unify:ores_variant/${oreOption}`,
particle: `unify:ores_variant/${oreOption}`,
overlay: 'unify:ores_variant/ore_overlay'
}
}
}
createOres('iridium', '#A1E4E4', 20, 'forge:needs_netherite_tool', 'moon')
createOres('osmium', '#3232FF', 7, 'minecraft:needs_iron_tool', 'stone')
These are the 2 examples I'm giving