Skip to content

Files

Latest commit

201d642 · May 10, 2024

History

History
36 lines (21 loc) · 859 Bytes

setblock.md

File metadata and controls

36 lines (21 loc) · 859 Bytes
description
Places a node (aliases: /setnode)

/setblock

Syntax

setblock <pos> <node> [keep|replace]

Arguments

<pos> Position

Specifies the position of the block to be changed.

<node> Node

Specifies the new node.

[keep|replace] String

Specifies how to handle the node change. Must be one of:

  • keep - Only air blocks are changed (non-air blocks are unchanged).
  • replace - The node is set no matter what.

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.

History

Version Action
v1.0 Added /setblock and /setnode