Minecraft:Commands/blockdata
From SAS Gaming Wiki
More actions
Template:Outdated feature Template:Infobox command
Modifies the Minecraft: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 Minecraft:tilde notation to identify a position relative to the command's execution.
- dataTag
- Specifies the Minecraft:data tag elements to be added to, or overwrite elements of, the specified block. Must be a compound Minecraft:NBT tag (for example,
{CustomName:Steve}).
- Specifies the Minecraft:data tag elements to be added to, or overwrite elements of, the specified block. Must be a compound Minecraft:NBT tag (for example,
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 Minecraft:Haste:
blockdata 0 64 0 {Primary:3}.
History
See also
- Minecraft:Block entity format — defined data tags for tile entity blocks
- Template:Cmd — changes an entity's data tag
- Template:Cmd — replaces items in a block's inventory
- Template:Cmd – places a new block at a position
- Template:Cmd — sets a block's Template:Cd
Minecraft:de:Befehl/blockdata Minecraft:es:Comandos/blockdata Minecraft:ja:コマンド/blockdata Minecraft:pt:Comandos/blockdata Minecraft:ru:Команды консоли/blockdata Minecraft:zh:命令/blockdata