Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flower Cyan configuredfeature is not registered #1607

Closed
TelepathicGrunt opened this issue Dec 2, 2020 · 2 comments
Closed

Flower Cyan configuredfeature is not registered #1607

TelepathicGrunt opened this issue Dec 2, 2020 · 2 comments

Comments

@TelepathicGrunt
Copy link
Contributor

Hello! I was test running my mod called Blame with a bunch of mods and it seemed to have found that cyclic does not register the ConfiguredFeatures form of flower_cyan. This can be an issue for mod compatibility as under certain conditions, unregistered ConfiguredFeatures can basically prevent other mod's registered ConfiguredFeatures from spawning if in the same generation stage.

By that I mean, if mod A adds an unregistered CF to the ore generation stage and the biome's codec reaches it first, it will choke and basically nuke mob B's registered CFs afterwards. Here's a case where BetterCaves forgot to register their CF and caused several CFs from Oh The Biomes You'll Go to stop spawning in the world: YUNG-GANG/YUNGs-Better-Caves#75

Here's a more detailed explanation of why this happens in the biome's codec:
image

Specifically, when you call .withConfiguration on a Feature, you create a ConfiguredFeature. This is what should be registered to the WorldgenRegisties at mod init (you can do it in FMLCommonSetupEvent so you have your config ready too if it is needed).

Anyway here's an example from my mod RepurposedStructures of me registering all my ConfiguredFeatures.
https://github.com/TelepathicGrunt/RepurposedStructures/blob/a4e3365e3867b8510952ebf658c415de6e412927/src/main/java/com/telepathicgrunt/repurposedstructures/RSConfiguredFeatures.java#L184-L185

I hope this helps!

@trunksbomb
Copy link

Duplicate of #1543 but we should have enough information now to resolve.

@Lothrazar
Copy link
Owner

Thanks for the link to the sample.

Forge has zero documentation for this, becuase of course https://mcforge.readthedocs.io/en/1.16.x/search.html?q=feature

@Lothrazar Lothrazar self-assigned this Dec 3, 2020
Lothrazar added a commit that referenced this issue Dec 3, 2020
… add it in. no json needed. from wednesday night
@Lothrazar Lothrazar removed their assignment Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants