Difference between revisions of "Liquid"

From Luanti Wiki
Jump to navigation Jump to search
(More general explanations)
(→‎Liquids in Minetest Game: Add snow factoid)
Line 71: Line 71:
 
|}
 
|}
  
Liquids in Minetest Game can be collected by a [[bucket]].
+
Quick facts:
 
 
  
 +
* Liquids in can be collected by a [[bucket]].
 +
* Liquids can flow into and destroy [[snow]].
  
 
[[Category:Liquid]]
 
[[Category:Liquid]]

Revision as of 05:28, 21 November 2016

Languages Language: English • Deutsch • français
Mbox important.png This article is incomplete.
Please help expand this article to include more useful information.

Liquids are special dynamic blocks in Minetest. They behave quite differently than in real life. Liquids like to spread and flow to their surrounding blocks and players can swim and drown in them.

Liquid forms

Liquids usually come in two forms: In source form and in flowing form.

Liquid source

Liquid sources have the shape of a full cube. A liquid source will generate flowing liquids around it from time to time, and, if the liquid is renewable, it also generates liquid sources (see below). A liquid source can sustain itself. If no special event happens, a liquid source will keep its place forever and it will never drain out.

Flowing liquid

Flowing liquids take a “sloped” form and never the shape of a cube. Flowing liquids spread around the map until they drain. A flowing liquid can not sustain itself and always comes from a liquid source, either directly or indirectly. Without a liquid source, a flowing liquid will eventually drain out and disappear.

Liquid properties

A liquid with a flowing range of 2, viewed from above

All liquids share the following properties:

  • All properties of blocks
  • Renewability: Renewable liquids have the property that new sources can be created (see below)
  • Flowing range: How many flowing liquids are created at maximum per liquid source, it determines how far the liquid will “spread”. This is a number ranging from 0 to 8. If 0, no flowing liquids are generated at all. Usually, liquids have a flowing range of 8
  • Viscosity: How slow players move through it and how fast new flowing liquids are created (i.e. how fast the liquid spreads)
  • Drowning damage: If set, it will a) reduce your breath (“bubbles”) while you are inside and b) will cause this amount of damage to you every 2 seconds if you ran out of breath while inside

Interaction with liquids

Creation of liquid sources

Renewable liquid create new liquid sources at open spaces. A new liquid source is created when:

  • Two renewable liquid blocks of the same type touch each other diagonally
  • These blocks are also on the same height
  • One of the two “corners” is open space which allows liquids to flow in

When those criteria are met, the open space is filled with a new liquid source of the same type.

Pointing to liquids

Liquids are usually not pointable. However, all liquids can be pointed by special items. In [Games/Minetest Game|Minetest Game]], one example is the bucket. For a full list of items which are able to point to liquids, see Category:Liquid pointers.

Liquids in Minetest Game

The following liquids exist in Minetest Game:

Liquid Renewable? Flowing range Viscosity Drowning damage
Water.png Water Yes 8 1 Half heart.png
River Water.png River Water No 2 1 Half heart.png
Lava.png Lava No 8 7 Half heart.png

Quick facts:

  • Liquids in can be collected by a bucket.
  • Liquids can flow into and destroy snow.