1
0
Fork 0

add API documentation to flowlib (part 5)

This commit is contained in:
AFCMS 2021-03-28 00:32:52 +01:00
parent 39ac3f208d
commit 52939ff6a4
1 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,6 @@ Return true if a sphere of <radius> at <realpos> collide with node at <nodepos>.
* nodepos: position
* radius: number
## flowlib.is_water(pos)
Return true if node at <pos> is water, false overwise.
* pos: position
@ -38,7 +37,9 @@ Return direction where the water is flowing (to be use to push mobs, items...).
* node: node
## 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
* realpos: position
* realpos: position, position of the entity
* node: node
* radius: number