Better Commands
Better Commands
  • Home
  • Commands
    • /ability
    • /bc
    • /clear
    • /clearspawnpoint
    • /damage
    • /enchant
    • /execute
    • /forceenchant
    • /gamemode
    • /gamerule
    • /give
    • /kill
    • /me
    • /msg
    • /old
    • /playsound
    • /remove
    • /say
    • /scoreboard
    • /setblock
    • /spawnpoint
    • /summon
    • /team
    • /teammsg
    • /teleport
    • /time
    • /trigger
  • Target Selectors
  • Data types
  • Entity Aliases
  • Scoreboard
Powered by GitBook
On this page
  • Syntax
  • Arguments
  • History
Edit on GitHub
  1. Commands

/setblock

Places a node (aliases: /setnode)

Previous/scoreboardNext/spawnpoint

Last updated 1 year ago

Syntax

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

Arguments

<pos>

Specifies the position of the block to be changed.

<node>

Specifies the new node.

[keep|replace]

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

Position
Node
String