Jump to content

Recommended Posts

Posted (edited)

Alright so I found this outstanding thread here on the forums: 

That basically provides perfect examples of how to intergrate the ability to spawn structures using NBT data. It is excellent and it works wonderfully. I am having an issue with it though. a post in that thread provided sample code which I utilized to spawn my own structures. Here is the class:

https://pastebin.com/RjzU1Zbs  - generateStructure

 

And here is my worldGen class: https://pastebin.com/Z64VDCKR (Line 52 is where the alter spawn is)

 

So it works great and the log does indicate the location that my structures are spawning (yes they are supposed to be rare so that spawn chance of 1 is intentional). However, the issue I am running across is the structures are not spreading out. They are spawning in a consolidated area and sometimes ontop of each other.

 

Here is the log: https://pastebin.com/7ZEtK4iD

 

As you can tell the coords are basically on top of each other. I am aware that this is likely beause on my worldGen class my X, Y and Z are in relatively close range of each other. But this is the first time I am working with structures so I can't be too sure. Any ideas on how to spread this out and maybe only make this happen once per chunk so they are not spawning on top of each other and how to make it so they are much more spread out coordiante wise?

Edited by HalestormXV

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.