I tried many times in different versions to set up the World Generation for ores, etc., in Fabric and Forge it works, but not in NeoForge.
Example code, that I use, which works in Fabric and Forge:
BiomeModifications.addProperties((biomeContext, mutable) -> {
if (biomeContext.hasTag(BiomeTags.IS_END)) {
mutable.getGenerationProperties().addFeature(
GenerationStep.Decoration.UNDERGROUND_DECORATION,
ResourceKey.create(Registries.PLACED_FEATURE,
new ResourceLocation(EXAMPLE.MOD_ID "example_placed"))
);
}
});
And a question: there is another addFeture methode, where you need to but a PlacedFeature inside a Holder, but how can I use that? In Forge's dategen you never need a Holder with a PlacedFeature.
Only that for BiomeModifers:
Another thing, that is annoying is a feature in the CreativeTabRegistry.
Here you need to give a CreativeModeTab, but If you want to use it like that: 'CreativeModeTabs.COMBAT', it does not work.
I get around the problem by using this: 'CreativeModeTabs.allTabs().get(7)'
I tried many times in different versions to set up the World Generation for ores, etc., in Fabric and Forge it works, but not in NeoForge.
Example code, that I use, which works in Fabric and Forge:
And a question: there is another addFeture methode, where you need to but a PlacedFeature inside a Holder, but how can I use that? In Forge's dategen you never need a Holder with a PlacedFeature. Only that for BiomeModifers:
Another thing, that is annoying is a feature in the CreativeTabRegistry. Here you need to give a CreativeModeTab, but If you want to use it like that: 'CreativeModeTabs.COMBAT', it does not work. I get around the problem by using this: 'CreativeModeTabs.allTabs().get(7)'
In Forge, you can use 'CreativeModeTabs.COMBAT':
Hopefully you can implement or fix this, that would be very great!