Jump to content

Recommended Posts

Posted (edited)

2018-10-16_10_29_35.png.20e90a97a305c64bf949235ab6e4819a.png
There's any way to check when those small islands is generated and then do something with them? (E.g. generate ores, structures, etc. on them?)

Edited by Insane96MCP
Fixed image
Posted
1 hour ago, Insane96MCP said:

E.g. generate ore on them?)

Use an IWorldGenerator instance like you would normally, but check if it is not within x amount of blocks of 0, 0(I think that is the location of the main island).

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

Well I'm not sure how well it would perform, but I think you can scan for them. It is even easier if you don't have to find absolutely all of them, but just want to find ones that for example are mostly round. What you could do is have a loop through x, z that jumps in amounts that are half of the size of smallest island you want to detect. At that location you would loop down from the sky (or some decent height) until you find a block (if you find nothing then jump to the next location) and if you find one you'd run a method that checks the area around it to find the min and max x and z that are connected (again if you're not concerned with finding every weird shape you can simplify the concept of "connected"). If the span (difference of max and min) in both the x and y are less than some value then you would declare that you've found a "small" floating island.

 

It is admittedly slightly complicated and requires some nested loops. But I think it is generally possible to find islands that are somewhat regular in shape.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.