Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

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

 

  • 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 by zlappedx3

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 by Luis_ST

  • 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 by zlappedx3

10 hours ago, zlappedx3 said:

By the way, HEIGHTMAP_WORLD_SURFACE is the same as HEIGHTMAP_SQUARE, right?

yeah should be

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.