2021-03-27 23:12:41 +00:00
|
|
|
# flowlib
|
|
|
|
Simple flow functions.
|
|
|
|
|
2021-03-27 23:18:19 +00:00
|
|
|
## flowlib.is_touching(realpos, nodepos, radius)
|
|
|
|
Return true if a sphere of <radius> at <realpos> collide with node at <nodepos>.
|
|
|
|
* realpos: position
|
|
|
|
* nodepos: position
|
|
|
|
* radius: number
|
2021-03-27 23:12:41 +00:00
|
|
|
|
|
|
|
## flowlib.is_water(pos)
|
|
|
|
Return true if node at <pos> is water, false overwise.
|
|
|
|
* pos: position
|
|
|
|
|
|
|
|
## flowlib.node_is_water(node)
|
|
|
|
Return true if <node> is water, false overwise.
|
|
|
|
* node: node
|
|
|
|
|
|
|
|
## flowlib.is_lava(pos)
|
|
|
|
Return true if node at <pos> is lava, false overwise.
|
|
|
|
* pos: position
|
|
|
|
|
|
|
|
## flowlib.node_is_lava(node)
|
|
|
|
Return true if <node> is lava, false overwise.
|
|
|
|
* node: node
|
|
|
|
|
|
|
|
## flowlib.is_liquid(pos)
|
|
|
|
Return true if node at <pos> is liquid, false overwise.
|
|
|
|
* pos: position
|
|
|
|
|
|
|
|
## flowlib.node_is_liquid(node)
|
|
|
|
Return true if <node> is liquid, false overwise.
|
|
|
|
* node: node
|
|
|
|
|
|
|
|
## flowlib.quick_flow(pos, node)
|
2021-03-27 23:23:57 +00:00
|
|
|
Return direction where the water is flowing (to be use to push mobs, items...).
|
2021-03-27 23:12:41 +00:00
|
|
|
* pos: position
|
|
|
|
* node: node
|
|
|
|
|
2021-03-27 23:25:54 +00:00
|
|
|
## flowlib.move_centre(pos, realpos, node, radius)
|
2021-03-27 23:32:52 +00:00
|
|
|
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.
|
2021-03-27 23:25:54 +00:00
|
|
|
* pos: position
|
2021-03-27 23:32:52 +00:00
|
|
|
* realpos: position, position of the entity
|
2021-03-27 23:25:54 +00:00
|
|
|
* node: node
|
|
|
|
* radius: number
|