Posted January 2, 20223 yr Normally in 1.17.1 i use BiomeLoadingEvent#getGeneration()#getFeatures() then and add some Supplier ConfiguredFeature<?, ?> But in 1.18.1 it want PlacedFeature and i look ConfiguredFeature class i see placed() method. Ummmmm Let's go back to 1.17.1 on decorated() method by put this parameter .decorated(Features.Decorators.HEIGHTMAP_SQUARE).decorated(FeatureDecorator.COUNT_EXTRA.configured(new FrequencyWithExtraChanceDecoratorConfiguration(1, 0.1F, 1))) Okay now coming to 1.18.1 i use placed() method by put this parameter. .placed(PlacementUtils.HEIGHTMAP_WORLD_SURFACE, PlacementUtils.countExtra(1, 0.1F, 1)) but there are no trees, Is there a way to make a tree spawn?
January 2, 20223 yr the Features class from 1.17 has been split into separate classes, the Tree Features are now in net.minecraft.data.worldgen.features.TreeFeatures in 1.18 you need also a PlacedFeature for each ConfiguredFeature, you can find the vanilla Tree examples in net.minecraft.data.worldgen.placement.TreePlacements
January 2, 20223 yr Author @Luis_ST I check ConfiguredFeature class from vanilla i see method placed() has new PlacedFeature() object if i use @Override from placed() method and return some PlacedFeature from TreePlacements can it working ? Edit : Maybe give me an example ? Edited January 2, 20223 yr by zlappedx3
January 2, 20223 yr why did you not create the Features (ConfiguredFeature and PlacedFeature), in the same way how vanilla does it? you don't need to extends/overwrite something also the classes i told you above has a lot of examples Edited January 2, 20223 yr by Luis_ST
January 2, 20223 yr Author I like to do things not like the locals. sorry for bothering. By the way, HEIGHTMAP_WORLD_SURFACE is the same as HEIGHTMAP_SQUARE, right? Edited January 2, 20223 yr by zlappedx3
January 3, 20223 yr 10 hours ago, zlappedx3 said: By the way, HEIGHTMAP_WORLD_SURFACE is the same as HEIGHTMAP_SQUARE, right? yeah should be
January 3, 20223 yr Author Thank you for direction, The next time i have plan for create some world. But now I will haven't asked yet.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.