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!  Is there a way that I can access a Village structure so I can create new buildings?  I DO NOT mean adding new modded buildings to a village:  I want to be able to essentially "expand" villages that have been generated.  I've looked through the events, but I couldn't find one that pertains to my situation.  Any ideas?

  • Author

I don't think that's what I need.... I was thinking of just saving the mapping or whatever villages use when they generate for the modulation and then just referencing that whenever I need it, but I'm not entirely sure that this is something that you can do without editing base classes...... :P  I might be able to do it with reflection whenever a village generates but I'm not entirely sure if this would work.

Villages don't save the buildings, only the center. The system regularly check for doors to spawn villagers or golem.

  • Author

It has to have some sort of modular expansion, as the villages are modular.  I need to access whatever is used to modulate the village.

It is modulated by randomness and bounding boxes.

A village is built from a start piece, then the generator iterates over a list of weighted structure pieces.

See StructureVillagePieces class.

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.