Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Commands/blockdata

From Minecraft Wiki
Jump to: navigation, search
Grass Block Revision 2.png
This page describes content that is no longer in the game.
This command was superseded by the data command in Java version 1.13
blockdata
Restrictions

Operator

First introduced

Java Edition 1.8 (Java Edition 14w02a)

Removed

Java Edition 17w47a

Modifies the data tag of a block.

Syntax
blockdata <x> <y> <z> <dataTag>
Arguments
x y z
Specifies the 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:Fred}).
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 block entity.
On success, modifies the data tag of the targeted block.
Examples
To change the primary power of the beacon at (0,64,0) to Haste:
blockdata 0 64 0 {Primary:3}
See also

History[edit]

Java Edition
1.814w02aAdded /blockdata.
1.1317w47aRemoved /blockdata.