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

Hello normally in 1.17.1 i call BiomeLoadingEvent for add some Structure from BiomeGenerationSettingsBuilder#getStructures() but when i modding on 1.18.1 getStructures() method is missing.

Don't ask me what I want, you should know what I want.

Edited by zlappedx3

you need to add your custom Structures to the StructureSettings.configuredStructures in FMLCommonSetupEvent,
this requires an AT or you need to use Reflection, since it's a ImmutableMap and you need to replace the Map with a new ImmutableMap.

Note: you need to copy the old Map into the new Map, if you don't do that, the vanilla structures won't be generated

Edited by Luis_ST

  • Author

If StructureSettings#configuredStructures is private variable how to add to the StructureSettings#configuredStructures ?

  • Author

@Luis_ST 2 Finally Quastion if i use StructureFeatures#registerStructures it's static method can it working ?, and the what is @mixin(something.class) and how to use it ?

PS. Sorry now i'm so stupid but if you example about this i will thank you so mush.

Edited by zlappedx3

4 hours ago, zlappedx3 said:

if i use StructureFeatures#registerStructures it's static method can it working ?

with mixin/core modding yes, else no

 

4 hours ago, zlappedx3 said:

and the what is @mixin(something.class) and how to use it ?

mixin/core modding is not supported on this Forum, there are some use cases where you need mixin.
but this case is possible without mixin, so you don't ge support.
if you have a other use case for that you can ask on the Forge discord in the non-api-modding chanel, but only if this a true case

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.