Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/version

From SAS Gaming Wiki
Revision as of 20:15, 9 April 2026 by SyncBot (talk | contribs) (Fix template calls: add MC/ prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Script error: No such module "Exclusive". Template:Infobox command

Presents the server's game version information to the client on the chat.

Usage

{{#vardefine:params|0 }}Template:Hatnote

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

  1. REDIRECT Template:Keys

Template:Redr debug hotkey, but presents server side info instead of client side.

The following is an example of what would be printed to chat on 1.21.8:

Server version info:
id = 1.21.8
name = 1.21.8
data = 4440
series = main
protocol = 772 (0x304)
build_time = Tue Jul 17 12:00:57 UTC 2025
pack_resource = 64
pack_data = 81
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 values is "main" and other values are used when a version isn't from the main branch. This can be checked on 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 April Fools' Day joke versions released in 2022 or after.
Protocol Minecraft: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

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

History

Template:HistoryTable

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/version ja:コマンド/version lzh:令/version pt:Comandos/version ru:Команды консоли/version th:คำสั่ง/version zh:命令/version