View at: Template:Commands/content [edit]
Commands/blockdata - minecraft.fandom.com
Jump to navigation
Jump to search
Treść tej podstrony pochodzi z artykułu „Commands/blockdata” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
This page describes content that exists only in outdated versions of Java Edition.
This command was superseded by the /data command in Java Edition 1.13.
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[]
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'sCommandStats
History[]
| Java Edition | |||||
|---|---|---|---|---|---|
| 1.8 | 14w02a | Added /blockdata. | |||
| 1.13 | 17w47a | Removed /blockdata as its features are merged into /data. | |||