#Registering TFC Rock Types for GTCEu

14 messages · Page 1 of 1 (latest)

undone root
#

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

undone root
#

Small update: Also noticed that trying to give the new ore variants block tags doesn't work either

bleak flume
#

cuz gt has andesite as a oretype alr

#

maybe thats conflicting

undone root
#

It seems to occur even with "chalk", which gt doesn't already have as an oretype. I think part of that particular issue is that I'm wrapping the example code in global.GTCEU_ORES.forEach and then putting global.TFC_ROCKS.forEach inside, which seems to be creating double the tag prefixes no matter which one I specify.

As for the main issue, I still can't figure out what the problem is. I think it's creating a material form, and is missing the block factory, so they aren't actually "real" blocks? Not sure how to actually make them modifiable, though

undone root
#

after much more experimentation I'm basically stumped. I just hope someone with an answer reads this and can help, I want to get this out of the way first before I start working on the rest of the pack

floral lantern
#

I think I saw an addon mod that does that

undone root
# floral lantern I think I saw an addon mod that does that

If you're talking about Terrafirmagreg core, then yes, it does do this. Although it is available for public use I've attempted to use it before and it's very finicky. I do want to try and make this from scratch (original plan was for 1.21.1 but that won't be fixed for a while lol)

floral lantern
#

There's some other mod that just does ores

#

It has small ores and everything

undone root
floral lantern
#

Sorry that I couldn't help

undone root
undone root
#

Good news; block modification works on them, so I'm trying to get something done through there. Maybe someday it'll get done, but I do have a quiz to study for