Commands/blockdata
Minecraft Wiki article. Categories: Removed_features, Commands
This article is reproduced from Commands/blockdata on the Minecraft Wiki. Mirrored from revision 3256450. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
/blockdata{
"title": "<code>/blockdata</code>",
"rows": [
{
"field": "2",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "None",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Modifies the data tag of a block.
Syntax
blockdata <x> <y> <z> <dataTag> <UserCreator>
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
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.8 | 14w02a | Added /blockdata. | |||||
| 1.13 | 17w47a | Removed /blockdata as its features are merged into /data. | |||||
See also
- 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'sCommandStats
Navigation
Sources
- Commands/blockdata — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3256450.