Thanks for the explanation.
After a bit of testing, i managed to register and spawn the biome without using json, but now the problem is another.
In this biome i spawn a custom tree that worked until now. Instead of randomly place tree, like vanilla ones, they are placed in a grid (i attached a screenshot).
Nothing has changed in my code since 1.16.1.
This is the code that i use to add the tree to my biome
withFeature(
GenerationStage.Decoration.VEGETAL_DECORATION, Feature.TREE.withConfiguration(MyTree.treeConfig)
.withPlacement(Placement.field_242902_f.configure(AtSurfaceWithExtraConfig(9, 0.1f, 1)))
)
And this is the tree code:
val treeConfig: BaseTreeFeatureConfig = BaseTreeFeatureConfig.Builder(
SimpleBlockStateProvider(MyBlocks.log.defaultState),
SimpleBlockStateProvider(MyBlocks.leaves.defaultState),
BlobFoliagePlacer(FeatureSpread.func_242252_a(2), FeatureSpread.func_242252_a(0), 3),
StraightTrunkPlacer(4, 2, 0),
TwoLayerFeature(1, 0, 1))
.setIgnoreVines()
.build()
This happen with Forge 34.1.17, if i update to the latest Forge version they don't spawn at all.