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

So I have already created the custom classes needed to specify how a the structure is randomly generated ("InfernalFortressStructure.java" & "InfernalFortressPieces.java"). It is in simple terms, the Fortress structure, but using different blocks...

I have also registered the structure ("VisionaryStructures.java) as well as its pieces in an interface ("IVisionaryStructurePieceType.java")

Questions:

1) Since the Nether Fortress does not use nbt data in it's creation (as seen in the Referenced Libraries -> client-extra.jar), do I still have to in order for my variant of it to generate properly?

2) Are my methods of registering the InfernalFortress structure and it's pieces acceptable?

3) What else is required to get a custom structure to generate in the world?

InfernalFortressPieces.java

InfernalFortressStructure.java

IVisionaryStructurePieceType.java

VisionaryStructures.java

 

I would have attached these as code if it wasn't for the fact it didn't lag me out of my explorer... l blame my Mac :P

Edited by A-Game

Very new to modding, so I'm not sure about the first two questions.

For the last one though, what I did was using Biome#addStructure to add my structure to the structures of a given Biome,

then Biome#createDecoratedFeature to specify how your feature should be generated,

and finally use the returned value in Biome#addFeature.

 

I'm not sure it is necessary to use both addFeature and addStructure, seems a little weird. Anyway, hope that'll help you

  • Author

In other worlds, similar to how ores generate in the world, except rewritten for structures...

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.