MineClone2/mods/CORE/flowlib/API.md

986 B

flowlib

Simple flow functions.

flowlib.is_touching(realpos, nodepos, radius)

Return true if a sphere of at collide with node at .

  • realpos: position
  • nodepos: position
  • radius: number

flowlib.is_water(pos)

Return true if node at is water, false overwise.

  • pos: position

flowlib.node_is_water(node)

Return true if is water, false overwise.

  • node: node

flowlib.is_lava(pos)

Return true if node at is lava, false overwise.

  • pos: position

flowlib.node_is_lava(node)

Return true if is lava, false overwise.

  • node: node

flowlib.is_liquid(pos)

Return true if node at is liquid, false overwise.

  • pos: position

flowlib.node_is_liquid(node)

Return true if is liquid, false overwise.

  • node: node

flowlib.quick_flow(pos, node)

Return direction where the water is flowing (to be use to push mobs, items...).

  • pos: position
  • node: node

flowlib.move_centre(pos, realpos, node, radius)