Places a node (aliases: /setnode)
setblock <pos> <node> [keep|replace]
<pos> Position
<pos>
Specifies the position of the block to be changed.
<node> Node
<node>
Specifies the new node.
[keep|replace] String
[keep|replace]
Specifies how to handle the node change. Must be one of:
keep - Only air blocks are changed (non-air blocks are unchanged).
keep
replace - The node is set no matter what.
replace
If not specified, defaults to replace.
Nodes are set with minetest.set_node, meaning that they do not activate the same callbacks as they would if placed by a player.
minetest.set_node
v1.0
Added /setblock and /setnode
/setblock
/setnode
Last updated 1 year ago