1
0
Fork 0

Add everness mineral water as dynamic liquid

master
Bram van den Heuvel 2024-04-25 15:26:22 +02:00
parent 7bdc95c60a
commit 3cbeab5899
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.