decrease generation depth, and make it configurable (I got frustrated)

This commit is contained in:
Benjie 2024-03-26 18:01:01 +00:00
parent a4a9b007bc
commit 0004c59ee9
2 changed files with 4 additions and 1 deletions

@ -213,7 +213,7 @@ minetest.register_decoration({ -- sponges are found deep in the sea
spawn_by = "default:water_source",
num_spawn_by = 3,
fill_ratio = 0.0003,
y_max = -12,
y_max = minetest.settings:get("sponge_generation_depth") or -9,
flags = "force_placement",
decoration = modname..":soggy_sponge",
})

@ -18,3 +18,6 @@ sponge_shape_sphere (Sphere shape) bool true
# Replace liquids with air instead of liquid blocking nodes.
# This causes water to flow back immediately after placing the sponge
sponge_replace_with_air (Replace with air) bool false
# Depth at which sponges start generating
sponge_generation_depth (Generation depth) int -9