tides & floods

[WIP] [Warning: read full description] Adds the /sealevel command to rise/lower the sealevel.

Work in Progress Creative Environment / Weather

Download (21 KB)

How do I install this?

tides & floods - Work in Progress

Disclaimers

This mod is a WIP. It replaces all the default water with custom water nodes. Removing the mod will cause these nodes to become unknown nodes. The water nodes from the mod are not compatible with the buckets, or any mechanics involving default:water. Hence this mod is not recommanded in a survival world.

How to use

In its current state, the tide level has to be changed with the /sealevel [height] command. Raising or lowering the sea level by more than one node is possible, but not necessarily the goal of the mod.

Goal

The goal of this mod is to make simulation of water level rising and lowering in realtime in a visually pleasant way. It uses multiple liquid nodes :

  • seawater : the main water node that fills the ocean. Doesn't contain any ABM.

  • shorewater : a node generated where the sea meets the land. It contains a slow ABM that will start the receding tide process

  • offshorewater : a node generated at the surface, at every cmapblock corner. It uses a slow ABM too trigger rising tides starting at the edge of the map (when it neighbours a "ignore" node)

  • waves : a flowing liquid node with a fast ABM that takes care of everything inbetween and disappear once it is finished.

Some of those nodes contain an LBM so loading mapblocks will "catchup" instantaneously to to current sea level

To Do

(any help or advice will be greatly appreciated!)

high-priority

  • replace water during terrain gen (still keep LBMs as an option to support already loaded worlds)
  • re-implement filling "pools" that stays filled at low tide

low priority

  • fixe shorewater forming around vegetation
  • fixe shorewater lines forming with LBMs

next

  • re-implement naturally occurring tides
  • load visible mapblock once to update their tide levels (avoid messy looking horizon)
  • add plantmatter layer node
  • make plants turn into plantmatter layer, make it float, react to moving water, deposit as wrack lines
  • or turn plants into items
  • trigger falling lilypads/float group

later/maybe

  • tweak texture colors
  • make all water nodes work with the bucket
  • create new seawater node not affected by tides
  • add sound
  • add mechanic to allow formation of pockets of air in coastal caves
  • make game agnostic?
  • add tidal currents/water currents?
  • improve river connections?
  • settingtype option for tidal range, supertide events, water continuously rising, speed

Futur plans

  • adapt mod for lava and eruptions
  • make it work with dynamic liquid?

Reviews

Review

Do you recommend this mod?

  • Very nice

    I've thought about making something like this before.

    For the water level at mapgen time you might want to look at the on_generated in my climate change mod as it does more or less the same (except just in 1 direction hehe).

    https://git.minetest.land/cora/climate_change/src/branch/master/init.lua#L207

    1 comments