@@ -1804,7 +1804,7 @@ to games.
18041804 - (14) -- constant tolerance
18051805 Negative damage values are discarded as no damage.
18061806* `falling_node`: if there is no walkable block under the node it will fall
1807- * `float`: the node will not fall through liquids
1807+ * `float`: the node will not fall through liquids (`liquidtype ~= "none"`)
18081808* `level`: Can be used to give an additional sense of progression in the game.
18091809 * A larger level will cause e.g. a weapon of a lower level make much less
18101810 damage, and get worn out much faster, or not be able to get drops
@@ -4147,7 +4147,7 @@ differences:
41474147
41484148### Other API functions operating on a VoxelManip
41494149
4150- If any VoxelManip contents were set to a liquid node,
4150+ If any VoxelManip contents were set to a liquid node (`liquidtype ~= "none"`) ,
41514151`VoxelManip:update_liquids()` must be called for these liquid nodes to begin
41524152flowing. It is recommended to call this function only after having written all
41534153buffered data back to the VoxelManip object, save for special situations where
@@ -4958,8 +4958,8 @@ Call these functions only at load time!
49584958 * You should have joined some channels to receive events.
49594959 * If message comes from a server mod, `sender` field is an empty string.
49604960* `minetest.register_on_liquid_transformed(function(pos_list, node_list))`
4961- * Called after liquid nodes are modified by the engine's liquid transformation
4962- process.
4961+ * Called after liquid nodes (`liquidtype ~= "none"`) are modified by the
4962+ engine's liquid transformation process.
49634963 * `pos_list` is an array of all modified positions.
49644964 * `node_list` is an array of the old node that was previously at the position
49654965 with the corresponding index in pos_list.
@@ -5301,7 +5301,8 @@ Environment access
53015301 * `pos1`: start of the ray
53025302 * `pos2`: end of the ray
53035303 * `objects`: if false, only nodes will be returned. Default is `true`.
5304- * `liquids`: if false, liquid nodes won't be returned. Default is `false`.
5304+ * `liquids`: if false, liquid nodes (`liquidtype ~= "none"`) won't be
5305+ returned. Default is `false`.
53055306* `minetest.find_path(pos1,pos2,searchdistance,max_jump,max_drop,algorithm)`
53065307 * returns table containing path that can be walked on
53075308 * returns a table of 3D points representing a path from `pos1` to `pos2` or
@@ -5325,7 +5326,7 @@ Environment access
53255326* `minetest.spawn_tree (pos, {treedef})`
53265327 * spawns L-system tree at given `pos` with definition in `treedef` table
53275328* `minetest.transforming_liquid_add(pos)`
5328- * add node to liquid update queue
5329+ * add node to liquid flow update queue
53295330* `minetest.get_node_max_level(pos)`
53305331 * get max available level for leveled node
53315332* `minetest.get_node_level(pos)`
@@ -6978,7 +6979,8 @@ It can be created via `Raycast(pos1, pos2, objects, liquids)` or
69786979* `pos1`: start of the ray
69796980* `pos2`: end of the ray
69806981* `objects`: if false, only nodes will be returned. Default is true.
6981- * `liquids`: if false, liquid nodes won't be returned. Default is false.
6982+ * `liquids`: if false, liquid nodes (`liquidtype ~= "none"`) won't be
6983+ returned. Default is false.
69826984
69836985### Methods
69846986
@@ -7462,6 +7464,8 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and
74627464 range = 4.0,
74637465
74647466 liquids_pointable = false,
7467+ -- If true, item points to all liquid nodes (`liquidtype ~= "none"`),
7468+ -- even those for which `pointable = false`
74657469
74667470 light_source = 0,
74677471 -- When used for nodes: Defines amount of light emitted by node.
@@ -7647,14 +7651,21 @@ Used by `minetest.register_node`.
76477651
76487652 climbable = false, -- If true, can be climbed on (ladder)
76497653
7654+ move_resistance = 0,
7655+ -- Slows down movement of players through this node (max. 7).
7656+ -- If this is nil, it will be equal to liquid_viscosity.
7657+ -- Note: If liquid movement physics apply to the node
7658+ -- (see `liquid_move_physics`), the movement speed will also be
7659+ -- affected by the `movement_liquid_*` settings.
7660+
76507661 buildable_to = false, -- If true, placed nodes can replace this node
76517662
76527663 floodable = false,
76537664 -- If true, liquids flow into and replace this node.
76547665 -- Warning: making a liquid node 'floodable' will cause problems.
76557666
7656- liquidtype = "none", -- specifies liquid physics
7657- -- * "none": no liquid physics
7667+ liquidtype = "none", -- specifies liquid flowing physics
7668+ -- * "none": no liquid flowing physics
76587669 -- * "source": spawns flowing liquid nodes at all 4 sides and below;
76597670 -- recommended drawtype: "liquid".
76607671 -- * "flowing": spawned from source, spawns more flowing liquid nodes
@@ -7668,12 +7679,26 @@ Used by `minetest.register_node`.
76687679
76697680 liquid_alternative_source = "", -- Source version of flowing liquid
76707681
7671- liquid_viscosity = 0, -- Higher viscosity = slower flow (max. 7)
7682+ liquid_viscosity = 0,
7683+ -- Controls speed at which the liquid spreads/flows (max. 7).
7684+ -- 0 is fastest, 7 is slowest.
7685+ -- By default, this also slows down movement of players inside the node
7686+ -- (can be overridden using `move_resistance`)
76727687
76737688 liquid_renewable = true,
76747689 -- If true, a new liquid source can be created by placing two or more
76757690 -- sources nearby
76767691
7692+ liquid_move_physics = nil, -- specifies movement physics if inside node
7693+ -- * false: No liquid movement physics apply.
7694+ -- * true: Enables liquid movement physics. Enables things like
7695+ -- ability to "swim" up/down, sinking slowly if not moving,
7696+ -- smoother speed change when falling into, etc. The `movement_liquid_*`
7697+ -- settings apply.
7698+ -- * nil: Will be treated as true if `liquidype ~= "none"`
7699+ -- and as false otherwise.
7700+ -- Default: nil
7701+
76777702 leveled = 0,
76787703 -- Only valid for "nodebox" drawtype with 'type = "leveled"'.
76797704 -- Allows defining the nodebox height without using param2.
0 commit comments