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 11:06, 20 May 2026 by SyncBot (talk | contribs) (Sync: updated from Minecraft)

Template:Exclusive Template:Infobox command

Opens Minecraft:singleplayer Minecraft:world to the local network.

Syntax

publish [<allowCommands>] [<gamemode>] [<port>]Template:Until
publish [<online>] [<allowCommands>] [<gamemode>] [<port>]Template:Upcoming

Arguments

Template:ArgumentTemplate:Upcoming

Whether the world is published as an online world or as a LAN world. Defaults to true (online world).
Template:Arg desc

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 Minecraft: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

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