This page contains information about features that have been removed in the latest development versions of Minecraft.
These features are present in the current version, but may be removed when the next update is released.
Commands/infobox
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
- 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
- Chunk format#Block entity format — defined data tags for tile entity blocks
/entitydata
— changes an entity's data tag/replaceitem
— replaces items in a block's inventory/setblock
– places a new block at a position/stats
— sets a block's CommandStats