mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
add API documentation to flowlib (part 5)
This commit is contained in:
parent
39ac3f208d
commit
52939ff6a4
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,6 @@ Return true if a sphere of <radius> at <realpos> collide with node at <nodepos>.
|
||||||
* nodepos: position
|
* nodepos: position
|
||||||
* radius: number
|
* radius: number
|
||||||
|
|
||||||
|
|
||||||
## flowlib.is_water(pos)
|
## flowlib.is_water(pos)
|
||||||
Return true if node at <pos> is water, false overwise.
|
Return true if node at <pos> is water, false overwise.
|
||||||
* pos: position
|
* pos: position
|
||||||
|
@ -38,7 +37,9 @@ Return direction where the water is flowing (to be use to push mobs, items...).
|
||||||
* node: node
|
* node: node
|
||||||
|
|
||||||
## flowlib.move_centre(pos, realpos, node, radius)
|
## flowlib.move_centre(pos, realpos, node, radius)
|
||||||
|
Return the pos of the nearest not water block near from <pos> in a sphere of <radius> at <realpos>.
|
||||||
|
WARNING: This function is never used in mcl2, use at your own risk. The informations described here may be wrong.
|
||||||
* pos: position
|
* pos: position
|
||||||
* realpos: position
|
* realpos: position, position of the entity
|
||||||
* node: node
|
* node: node
|
||||||
* radius: number
|
* radius: number
|
Loading…
Reference in a new issue