1
0
Fork 0

Compare commits

..

3 Commits

Author SHA1 Message Date
Bram van den Heuvel 7eb8014057 Code style fixes 2024-04-25 15:34:13 +02:00
Bram van den Heuvel 3cbeab5899 Add everness mineral water as dynamic liquid 2024-04-25 15:26:22 +02:00
FaceDeer 7bdc95c60a
Mineclone compatibility (#8)
* splitting up and genericizing some code, localizing default-dependent stuff in one file

* make cooling lava an API as well

* split out spring code, start roughing in mineclone support

* ooh, at some point altitude checking was added to ABM definitions. Awesome.

* fix crash in flow through

* adding mapgen spring clay. Mineclone2 and Mineclone5 both need to accept pull requests fixing bugs before this will work
2022-09-17 17:53:19 -06:00
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.