summaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-10-01 14:21:24 +0000
committerGitHub <noreply@github.com>2021-10-01 16:21:24 +0200
commit21113ad4105dd3fb181b3d0638b907af94a352ab (patch)
tree9cd1346f6aff8968c23e2447e50d4469b888b01b /doc/client_lua_api.txt
parentf5040707fe7cf9f24274379598527d6298c5818c (diff)
downloadminetest-21113ad4105dd3fb181b3d0638b907af94a352ab.tar.gz
minetest-21113ad4105dd3fb181b3d0638b907af94a352ab.tar.bz2
minetest-21113ad4105dd3fb181b3d0638b907af94a352ab.zip
Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r--doc/client_lua_api.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 24d23b0b5..32be8c849 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -1030,8 +1030,8 @@ Methods:
* returns true if player is in a liquid (This oscillates so that the player jumps a bit above the surface)
* `is_in_liquid_stable()`
* returns true if player is in a stable liquid (This is more stable and defines the maximum speed of the player)
-* `get_liquid_viscosity()`
- * returns liquid viscosity (Gets the viscosity of liquid to calculate friction)
+* `get_move_resistance()`
+ * returns move resistance of current node, the higher the slower the player moves
* `is_climbing()`
* returns true if player is climbing
* `swimming_vertical()`
@@ -1233,7 +1233,7 @@ It can be created via `Raycast(pos1, pos2, objects, liquids)` or
liquid_type = <string>, -- A string containing "none", "flowing", or "source" *May not exist*
liquid_alternative_flowing = <string>, -- Alternative node for liquid *May not exist*
liquid_alternative_source = <string>, -- Alternative node for liquid *May not exist*
- liquid_viscosity = <number>, -- How fast the liquid flows *May not exist*
+ liquid_viscosity = <number>, -- How slow the liquid flows *May not exist*
liquid_renewable = <boolean>, -- Whether the liquid makes an infinite source *May not exist*
liquid_range = <number>, -- How far the liquid flows *May not exist*
drowning = bool, -- Whether the player will drown in the node
@@ -1248,6 +1248,7 @@ It can be created via `Raycast(pos1, pos2, objects, liquids)` or
},
legacy_facedir_simple = bool, -- Whether to use old facedir
legacy_wallmounted = bool -- Whether to use old wallmounted
+ move_resistance = <number>, -- How slow players can move through the node *May not exist*
}
```