Configurable Lava Level
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Is your feature request related to a problem?
Yes.
So I wrote a datapack, which pulls my world's lowest Y to -256.
After many attempts and asking a few AIs to help me with figuring out lava, lava kept pooling around -54Y.
Turns out Mojang hardcoded this value.
I reported it as a bug, and it was closed saying "request a feature, this isn't a bug"
Which I find funny, they give us the control in a datapack to go down to -2032Y, but our caves will be full of lava.
My bug MC-307994
Someone commented stating another bug MC-237017
This one (same issue as mine) remains open, so that's good news that its not closed, but bad news is in 5 years it hasn't been fixed.
Describe the solution you'd like.
In net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator:
This is the hardcoded value. Id love to see a config option for this, or another alternative if someone has a better idea.
Even if you took the world's min y + 10, would be better than what they have here. But I'm thinking config might be better?!?!?!
Describe alternatives you've considered.
I did a quick patch, changing this value to -245 for my own testing server.
I'd rather not have to patch this for my own server, I'd prefer to see a configurable value.
Other
Just a food for thought idea:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator and the hardcoded lava level identified in the issue. Compare the requested configuration approach with the existing world-height behavior and the linked reports MC-307994 and MC-237017. Done means servers can control the lava level without patching the server, while generation remains correct for custom minimum Y values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100