Jump to content

Recommended Posts

Posted (edited)

So, I have just started 1.12 modding, and immediately I notice the lack of tutorials, and after about 15-30 minutes of searching, I couldn't find a single thing about making structures, not in the forge docs, not on youtube, google, etc... so I decided to try and make a tread because of the lack of available knowledge. I am pretty sure I need to implement IWorldGenerator, but have no idea on the needed methods. Other mods that did this were outdated, not on github, or super complex, so that was all I could get. I would appreciate any help : )

Edited by Big_Bad_E
English Grammar stuff
Posted

Use Minecraft's Structure Blocks to save a structure to NBT, which you can then use in code to load the structure.

 

Create a new Template instance with the resource location of your structure.nbt file, and call Template#addBlocksToWorld to spawn the structure. You can do this in your WorldGenerator class.

  • Like 4
  • Confused 1

Developer of Levels and Lost Eclipse

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.