PaperMC / PaperMC/Paper

Configurable Lava Level

Open
#13,878 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage
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:

Image

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:

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.