I'm trying to add the TFC rock types, as mentioned, to GTCEu's tag prefix for it to auto-generate ore variants so that I can then create custom veins. This is the code that I am using to do this:
global.TFC_ROCKS.forEach(rock => {
evt.create(rock, 'ore') //
.stateSupplier(() => Block.getBlock(tfc:rock/raw/${rock}).defaultBlockState()) //
.baseModelLocation(tfc:block/stone/${rock}) //
.unificationEnabled(true)
.materialIconType(GTMaterialIconType.ore)
.generationCondition(ItemGenerationCondition.hasOreProperty)
});
*global.TFC_ROCKS is a separately defined constant in startup scripts that is literally just a list of rock types in TFC
The issue is that the generated ores have no(?) hardness, as in no matter what mining tool I use regardless of mining level, they take the same time (very long) to break. They also don't drop anything, even when using LootJS. I've tried switching thetfc:rock/raw/${rock} to gtceu:${ore}_ore (using a separate constant that lists all GTCEu raw ores) but I get this message:
[ERROR] ! Error in 'GTCEuStartupEvents.registry': Duplicate key 'gtceu:andesite' in registry 'gtceu:tag_prefix'
*andesite is the first entry, no matter which is the first, they seem to all have this issue.
Sorry this may be a little specific. If anyone can help at all, it makes my life easier lol