Skip to content

Conversation

@Oleg4260
Copy link
Contributor

@Oleg4260 Oleg4260 commented Apr 20, 2025

Just a small change to the generation of farmlands:

  • Increased the space between water blocks from 7 to 8
  • Cleaned the code up a little bit, probably making it a little faster, because there were a lot of useless parts that just took extra time

@Oleg4260 Oleg4260 changed the title Fix space between water blocks (meant to be 8) Minor improvements to farmland code Apr 20, 2025
"farmland" => FARMLAND,
"farmland" => {
if args.winter {
DIRT
Copy link
Contributor Author

@Oleg4260 Oleg4260 Apr 20, 2025

Choose a reason for hiding this comment

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

Speaking of this, I intentionally did not place a SNOW_BLOCK here to make the world look a little more realistic, I'm thinking of refactoring the winter mode to remove all the SNOW_BLOCKs and put SNOW_LAYER everywhere. In my opinion, the map should generate in the way to look similar to a normal minecraft world.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with this. We should open a separate discussion on how to implement that, since I imagine you'd do the snow layer last after all the normal blocks are placed... 🤷🏼‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, we can now proceed in #415

@Oleg4260
Copy link
Contributor Author

Decided to do one more thing: I noticed that the Ground Level option is ignored when Terrain is enabled, and the MIN_Y = -62 const is used as the lowest terrain point. So I removed the const and this option is used instead, it's also -62 by default but this allows to elevate the map if needed, for example when you want to do some digging
ground_level = -62:
2025-04-22_17 50 09
ground_level = -40:
2025-04-22_17 50 46
ground_level = -40 with ground filling enabled:
2025-04-22_17 53 23

@louis-e
Copy link
Owner

louis-e commented Apr 22, 2025

LGTM, thanks!

@louis-e louis-e merged commit 4271dc3 into louis-e:main Apr 22, 2025
3 checks passed
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.

3 participants