Commands/version
Minecraft Wiki article. Categories: Java_Edition, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/version on the Minecraft Wiki. Mirrored from revision 3696989. 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.
This feature is exclusive to Java Edition.
/version{
"title": "<code>/version</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": []
}
Presents the server's game version information to the client on the chat.
Usage
Prints the server's game version information on the chat, such as the name, protocol version, and the resource pack and data pack formats.
This is similar to the F3 + V debug hotkey, but presents server side info instead of client side.
The following is an example of what would be printed to chat on 26.2:
Server version info: id = 26.2 name = 26.2 data = 4903 series = main protocol = 776 (0x308) build_time = Tue Jun 16 12:01:27 UTC 2026 pack_resource = 88.0 pack_data = 107.1 stable = yes
| Field | Content |
|---|---|
| ID | Version ID string |
| Name | User-friendly name of the version, usually identical to ID. |
| Data | Data version |
| Series | Identifies which branch the game comes from, the default value is "main". This can be seen in the version.json for older versions, for example, "deep_dark_preview" was used for Deep Dark Experimental Snapshot 1 and "april<YYYY>" is used for joke versions released since 2022. |
| Protocol | Protocol version |
| Build time | Timestamp of when the version was built, in local timezone. |
| Pack resource | Resource pack format |
| Pack data | Data pack format |
| Stable | Yes for release versions, no for development versions |
Syntax
version
Result
Always successful.
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On success | 1 | 1 | 1 |
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.21.6 | 25w15a | Added /version. | |||||
Navigation
Sources
- Commands/version — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3696989.