Jump to content

Custom Structures Generation in 1.14.4


zenek1290

Recommended Posts

1 hour ago, zenek1290 said:

Hi, recently I was looking for some Strucutre Generation Tutorial for 1.14.4, but sadly there is none. 1.14.4 Structure Generation is totally different from 1.12.2. Can You guys help me with this?

Try by see the Vanilla code.

New in Modding? == Still learning!

Link to comment
Share on other sites

Looking at your code, your structure piece does not add anything, and the chunks for your structure to spawn in is set to null. I suggest looking at vanilla structures as reference. As for your registries, the structures aren't registered in a valid way, I'd recommend looking at either event registries, deferred register, or object holder registries as a way to register your objects.

Link to comment
Share on other sites

Ok, this is what I came up to.

ExampleMod.java

ModStructureTypes.java

ModStructurePieces.java

CubePiece.java

CubeStructure.java

Good is that I finally was able to register my structure.

Structure is still not generating in overworld.

And I still got this Info in console,

 

[16:54:30] [Client thread/DEBUG] [ne.mi.re.ObjectHolderRef/]: Unable to lookup examplemod:cube_structure for public static net.minecraft.world.gen.feature.structure.Structure com.example.examplemod.world.gen.ModStructureTypes.CUBE_STRUCTURE. This means the object wasn't registered. It's likely just mod options.


 

Edited by zenek1290
Link to comment
Share on other sites

  • 3 weeks later...

Did you work this out?

 

From what I can tell, the main reason you aren't adding anything to the world, is that no code exists in your Piece to actually add blocks.

 

Have a look at SwampHutPiece, or the IglooPieces (The later uses the TemplateStructurePiece)..

 

 

 

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.