mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Make renewable lava optional
Lava used to be renewable until 0.4.5. The default was changed in 2013
(a4426e4bd4
), but making it renewable
again is a relatively frequent request, with known workarounds. This
change makes the renewability of lava a game configuration option,
allowing the server administrator to enable it without having to go
outside of the standard game.
This commit is contained in:
parent
e6aec880de
commit
09fd3f2aa1
2 changed files with 4 additions and 1 deletions
|
@ -37,6 +37,9 @@
|
||||||
# Whether lavacooling should be enabled.
|
# Whether lavacooling should be enabled.
|
||||||
#enable_lavacooling = true
|
#enable_lavacooling = true
|
||||||
|
|
||||||
|
# Whether lava sources are renewable or not.
|
||||||
|
#renewable_lava = false
|
||||||
|
|
||||||
# Whether the stuff in initial_stuff should be given to new players.
|
# Whether the stuff in initial_stuff should be given to new players.
|
||||||
#give_initial_stuff = false
|
#give_initial_stuff = false
|
||||||
#initial_stuff = default:pick_steel,default:axe_steel,default:shovel_steel,
|
#initial_stuff = default:pick_steel,default:axe_steel,default:shovel_steel,
|
||||||
|
|
|
@ -2406,7 +2406,7 @@ minetest.register_node("default:lava_source", {
|
||||||
liquid_alternative_flowing = "default:lava_flowing",
|
liquid_alternative_flowing = "default:lava_flowing",
|
||||||
liquid_alternative_source = "default:lava_source",
|
liquid_alternative_source = "default:lava_source",
|
||||||
liquid_viscosity = 7,
|
liquid_viscosity = 7,
|
||||||
liquid_renewable = false,
|
liquid_renewable = minetest.settings:get_bool("renewable_lava") or false,
|
||||||
damage_per_second = 4 * 2,
|
damage_per_second = 4 * 2,
|
||||||
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
|
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
|
||||||
groups = {lava = 3, liquid = 2, igniter = 1},
|
groups = {lava = 3, liquid = 2, igniter = 1},
|
||||||
|
|
Loading…
Add table
Reference in a new issue