Go to file
Lemente bdad2c5c1d
air check fix + added wave LBM
2022-09-02 10:59:39 +02:00
LICENSE.md Create LICENSE.md 2022-08-31 20:38:04 +02:00
README.md Update README.md 2022-08-29 00:32:33 +02:00
abm.lua flood based on drawtype and groups 2022-08-22 17:09:53 +02:00
init.lua flood based on drawtype and groups 2022-08-22 17:09:53 +02:00
lbm.lua air check fix + added wave LBM 2022-09-02 10:59:39 +02:00
mod.conf Update mod.conf 2022-07-25 12:23:51 +02:00
nodes.lua changed liquidtype from "none" to "source" 2022-08-22 16:52:11 +02:00
waterlily.lua include waterlily_waving 2022-08-22 16:30:29 +02:00

README.md

tides & floods - Work in Progress

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.

(previously the command was /tide, now it is /sealevel)

https://user-images.githubusercontent.com/27686967/181780041-55fcae91-813f-4605-8ac4-0f45167a755d.mp4

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

https://user-images.githubusercontent.com/27686967/181780172-42193b2a-f621-4290-a7fa-0ac9d0f1ff4f.mp4

To Do

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?

https://user-images.githubusercontent.com/27686967/181776097-257afdd9-03cc-4dd6-96d9-9ea23b6b80a6.mp4

Futur plans

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