VoxeLibre/mods/CORE/flowlib/API.md

744 B

flowlib

Simple flow functions.

flowlib.is_touching()

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)

  • pos: position
  • node: node

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