minetest.swap_node

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.swap_node(pos, node)

Description

Sets a node at pos, but keeps its metadata

NOTE: No node callbacks will be triggered for either the old node or the new one.

Example

minetest.swap_node({x=4, y=12, z=-400}, {name = "example:some_block" })
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox