Jump to content

(1.14.4) Generating Structures


A-Game

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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