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/publish

From SAS Gaming Wiki
Revision as of 15:44, 9 April 2026 by SyncBot (talk | contribs) (Remove broken links to missing pages)

Template:Exclusive Template:Infobox command

Opens singleplayer world to the local network.

Syntax

publish [<allowCommands>] [<gamemode>] [<port>]

Arguments

Template:Argument

Whether Minecraft:commands are allowed when the world is hosted on the local network. Defaults to false.
Template:Arg desc

Template:Argument

Sets the default game mode for new player. If not specified, the default game mode for new player is the game mode of this world.
Template:Arg desc

Template:Argument

The port to host on. If not specified, the port is automatically allocated, typically from an ephemeral port range.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table

History

Template:HistoryTable

Navigation

Template:Navbox commands

de:Befehl/publish es:Comandos/publish ja:コマンド/publish lzh:令/publish pt:Comandos/publish ru:Команды консоли/publish zh:命令/publish