{{exclusive|java}} The '''command_storage_''''.dat''' files are {{w|Gzip}} compressed [[NBT Format|NBT]] files located in the data folder in a savegame. They store information about the {{cmd|data}} [[command storage]] in the world. Each [[namespace]] in the storage has its own data file. == Usage == The command storage of [[NBT]] data is an efficient way for [[commands]] to access or save NBT data without an overhead for [[block entities]] or [[entities]] reading from or writing to the NBT data. Each command storage is a general purpose, key-value storage, identified by a [[resource location]] to prevent unintentional conflicts. {{cmd|data get|link=none}} and {{cmd|data modify|link=none}} can read from the storage, while {{cmd|data merge|link=none}}, {{cmd|data modify|link=none}}, {{cmd|data remove|link=none}}, and {{cmd|execute store}} can write to the storage. The command storage is accessible with [[JSON text]] as well. == Folder Structure == {| data-description="List" |- |
*''(world save directory)'' **data ***command_storage_''''.dat
|} Multiple {{cd|command_storage_''''.dat}} files may be present in the {{cd|data}} directory. == NBT structure ==
* {{nbt|compound}} The root tag. ** {{nbt|compound|data}}: The actual saved data. *** {{nbt|compound|contents}}: Contains all the data storage under the namespace of the command storage. **** {{nbt|compound|''''}}: The data associated with a particular [[resource location]] {{code|'''':''''}}. ***** Custom content as set by the {{cmd|data}} or {{cmd|execute store}} commands. ** {{nbt|int|DataVersion}}: The [[data version]] in which this file is saved.
Multiple {{nbt|compound}} compound tags of different names may exist under {{nbt|compound|contents}} tag. == History == {{HistoryTable |{{HistoryLine|java}} |{{HistoryLine||1.15|dev=19w38a|Added [[command storage]] data for the level.}} }} == Navigation == {{Navbox Java Edition technical|general}} [[de:Datenspeicher]] [[fr:Format de stockage des commandes]] [[ja:コマンドストレージフォーマット]] [[pt:Formato de armazenamento de comandos]] [[zh:命令存储存储格式]]