#How to get World generation feature ID?

10 messages · Page 1 of 1 (latest)

versed breach
#

Hi all, I don't have a script that needs debugging, I'm just not even sure how to find what I'm looking for. I'm making a modpack that has Create: The Factory Must Grow, and it has Ad Astra, I really don't like Ad Astra's oil geysers and I would prefer to only have Create: TFMG's oil deposits as the only source of oil. Trouble is, Ad Astra has no config for that. I know we can remove features from world gen by their ID, but I don't even know how to find that ID. Any help would be appreciated!

ocean mangoBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

versed breach
#

Oh! I have a lead.
/kubejs dump_registry minecraft:worldgen/[I think it's in one of these]
This command dumps the registry. I'll consider this solved ^-^

versed breach
#

For anyone who's also trying to remove it, pretty sure it's registered as a structure, so minecraft:worldgen/structure ad_astra:oil_well

#

face palm The Oil Well generation is configurable via JSON with a data pack. Woops! But again, if you want to do it through kubejs, this should work:

WorldgenEvents.remove(event => {
  // Removes Ad Astra Oil Wells
  event.removeFeatureById('surface_structures', ['ad_astra:oil_well'])
})
versed breach
#

....Huh. That actually did not work at all. I'll just use the data pack method. Keeping this ticket closed since the original question is answered

grizzled juniper
#

well, sending a message in a ticket actually reopens it

#

so technically it's not closed heh

versed breach
#

Oh, didn't know that woops.