Add everness mineral water as dynamic liquid (#9)

* Add everness mineral water as dynamic liquid

* Code style fixes
This commit is contained in:
BramvdnHeuvel 2024-05-05 21:11:50 +02:00 committed by GitHub
parent 7bdc95c60a
commit c82e3094c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 1 deletions

15
everness.lua Normal file
View File

@ -0,0 +1,15 @@
local water_probability = dynamic_liquid.config.water_probability
if dynamic_liquid.config.water then
-- mineral water is already not renewable,
-- so it is not necessary to override it
-- local override_def = {liquid_renewable = false}
-- minetest.override_item("everness:mineral_water_source", override_def)
-- minetest.override_item("everness:mineral_water_flowing", override_def)
dynamic_liquid.liquid_abm(
"everness:mineral_water_source",
"everness:mineral_water_flowing",
water_probability
)
end

View File

@ -56,3 +56,7 @@ end
if minetest.get_modpath("mcl_core") then if minetest.get_modpath("mcl_core") then
dofile(modpath.."/mineclone.lua") dofile(modpath.."/mineclone.lua")
end end
if minetest.get_modpath("everness") then
dofile(modpath.."/everness.lua")
end

View File

@ -1,3 +1,3 @@
name = dynamic_liquid name = dynamic_liquid
optional_depends = default, doc, xpanes, carts, mcl_core, mclx_core, mcl_mapgen_core, mcl_mapgen optional_depends = default, doc, xpanes, carts, mcl_core, mclx_core, mcl_mapgen_core, mcl_mapgen, everness
description = Flowing dynamic liquids and ocean-maintenance springs. description = Flowing dynamic liquids and ocean-maintenance springs.