Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/blockdata

From SAS Gaming Wiki
Revision as of 15:43, 9 April 2026 by SyncBot (talk | contribs) (Remove broken links to missing pages)

Template:Outdated feature Template:Infobox command

Modifies the data tag of a Minecraft:block.

Syntax

blockdata <x> <y> <z> <dataTag> <UserCreator>

Arguments

x y z
Specifies the Minecraft:coordinates of the block to be modified. May be provided in tilde notation to identify a position relative to the command's execution.
dataTag
Specifies the data tag elements to be added to, or overwrite elements of, the specified block. Must be a compound NBT tag (for example, {CustomName:Steve}).

Result

Fails if the arguments are not specified correctly, or if the block is "not a data holder block," as in it is not associated with a Minecraft:block entity.

On success, modifies the data tag of the targeted block.

Examples

  • To change the primary power of the Minecraft:beacon at (0,64,0) to Haste: blockdata 0 64 0 {Primary:3}.

History

Template:HistoryTable

See also

Navigation

Template:Navbox commands

de:Befehl/blockdata es:Comandos/blockdata ja:コマンド/blockdata pt:Comandos/blockdata ru:Команды консоли/blockdata zh:命令/blockdata