This is how the game itself shows it /help setblock: in angle brackets - what to substitute, in square brackets - optional, through a line - one of.
On page 6 sections
Briefly
Examples are verified by the game - copy
-
The chest is where you stand
/setblock ~ ~ ~ minecraft:chest -
Block of Diamond underfoot
/setblock ~ ~-1 ~ minecraft:diamond_block replace
Rights - game master.
/setblock <pos> <block> [destroy|keep|replace|strict]
We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands. It's written in server consoles without a cross-section.
| What | Meaning |
|---|---|
| command | /setblock |
| Rights | Playmaster (2) |
| Where is | on the server and in single player with cheats |
How to use command /setblock?
Syntax: /setblock <pos> <block> [destroy\keepäreplace\strict]. For example, /setbloc ~ ~ ∙ minor:chest is the trunk where you stand.
What rights are needed for /setblock?
We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands.
Does /setblock work in the command block?
Yeah, the command unit's doing right-level 2 commands, and this one doesn't need any more. You don't have to write a line in the block.
- /clone
- /difficulty
- /fill
- /fillbiome
- /forceload
- /gamerule
- /locate
- /place
- /seed
- /setworldspawn
- /spreadplayers
- /tick
- /time
- /weather
- /worldborder
All commands Generator /setblockMob spawner
According to Minecraft 26.3, the syntax is a clue to /help from the game itself, right from her command report, each example is checked by a review of the game's commands.