Liquid Physics

Description

Liquid Physics 🔗

This Luanti mod adds physics to liquids.

This mod is in early alpha.

What NOT to expect 🔗

  • Proper water equalization and water pressure *
  • Removing weeds and other wall mounted items *
  • Interaction of different liquid types, e.g. lava and water *
  • Interaction with pistons or pipes
  • Perfect performance
  • Integration with any other mods *
  • A smooth liquid surface
  • Viscosity for different liquid types

*only to an extend

What to expect 🔗

  • Water leveling for flat surfaces
  • Settling water
  • Multi-level liquids from 1 to 8
  • Draining all oceans in a jiffy

API 🔗

  • Other developers may chose to support this mod by using the API.
--Example: Register default:water_source
liquid_physics.register_liquid("default", "water_source", "water_flowing")

--Example: Register bucket:bucket_water to scoop up liquids
liquid_physics.register_bucket("bucket:bucket_water")

--Example: Check if block underneath is liquid and then proceed to reduce its level
local id_water = liquid_physics.get_liquid_id("default:water_source")
local liquid = liquid_physics.get_liquid_at(pos)

if liquid and liquid.liquid_id == id_water then
    liquid_physics.set_liquid_at(pos, id_water, liquid.liquid_level - 1)
end

Reviews

Review

Do you recommend this mod?

  • Español

    Nice

    Interesting idea, but I think it would be more useful to be able to replicate what MC does, putting water on the step of a staircase or covering a slab. From what I saw, they created a block of water the size of half a slab, put a slab in a hole and put the water on top. The result is, the slab covered in water, and the same with the staircase and what could be microblocks like the inner or outer blocks. You could make pools with submerged stairs or mini sinks. Greetings.-

    0 comments

Releases

2025-01-13 20:16 UTC

Workaround VoxeLibre Buckets 🔗

  • Settings Default to True
  • Workaround Multiple Sources for VoxeLibre
2025-01-13 19:46 UTC

Added Wear to Buckets 🔗

  • Added wear to buckets, corresponding to the liquid level
  • Added setting to enable liquid scooping via punching/using/left mouse button in VoxeLibre
2025-01-11 22:05 UTC

Bucket Support 🔗

Added Bucket Support

2025-01-08 15:55 UTC

Update API and Add Settings 🔗

Adds Settings to enable or disable physics for water and lava. Note: You may have to toggle though these settings after updating this mod

2025-01-08 13:53 UTC

Liquid Duplication Update 🔗

Fixed a bug that allowed for liquid duplication due to the base liquids (e.g. "default:water_source") still spreading occasionally as they would in vanilla.

All releases