minetest.check_for_falling

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.check_for_falling(pos)

Description

Helper function which causes nodes to detach (drop as items) or fall, in the case of falling nodes. This code not only makes the node at pos fall or drop, but also adjacent nodes that needs to fall or drop. This can potentially update thousands of nodes with a single call to this function.

The function performs no action if the considered node at pos is not ready to fall down, or is not detached.

Nothing is returned.

Parameters:

  • pos — Position of node to update.

Example

minetest.check_for_falling({x = 0, y = 0, z = 0})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox