Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ores generation in quarries #337

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

Oleg4260
Copy link
Contributor

@Oleg4260 Oleg4260 commented Jan 25, 2025

In my previous pull I only added landuse for quarries and landfills, so there would be stone in quarries, but I did not add ores as said in #330, now I added ores as well

Fixes #330

@Oleg4260
Copy link
Contributor Author

Oleg4260 commented Feb 3, 2025

I just added another feature that can be enabled in the settings. It fills the underground space with stone, I think it can be useful for many users, but it also should be disabled by default because it increases generation time significantly. Only applies when terrain is enabled. Also now there's bedrock at level -64 for both modes.
image
image

Copy link
Contributor

@benjamin051000 benjamin051000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't review the JS but it looks fine. The Rust is fine as well but consider using fill_blocks() to make it a little simpler

Comment on lines 175 to 177
for y in MIN_Y + 1..max_y - 2 {
editor.set_block(STONE, x, y, z, None, None);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use editor.fill_blocks() instead.

Comment on lines 369 to 371
for y in MIN_Y + 1..ground_level {
editor.set_block(STONE, x, y, z, None, None);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

editor.fill_blocks()

Copy link
Contributor

@benjamin051000 benjamin051000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash the last commit into the previous one. You can do this with an interactive rebase (git rebase -i HEAD~2). Do either a squash or a fixup on the last one so that the previous 2 commits get combined

@Oleg4260
Copy link
Contributor Author

Oleg4260 commented Feb 4, 2025

I am not sure if I did it right, let's just hope I didn't break anything...

@Oleg4260
Copy link
Contributor Author

Oleg4260 commented Feb 4, 2025

@benjamin051000 thank you for your advice, this is really better and also ground generation feels faster now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Implement quarries with stone and ore
2 participants