Minecraft:Commands/publish: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 9: | Line 9: | ||
==Syntax== | ==Syntax== | ||
:<code>publish [<allowCommands>] [<gamemode>] [<port>]</code> | :<code>publish [<allowCommands>] [<gamemode>] [<port>]</code> | ||
==Arguments== | ==Arguments== | ||
{{argument|allowCommands|bool}} | {{argument|allowCommands|bool}} | ||
| Line 53: | Line 49: | ||
|{{HistoryLine|java upcoming}} | |{{HistoryLine|java upcoming}} | ||
|{{HistoryLine||26.2|dev=snap8|The syntax of {{cmd|link=none|publish}} has been changed again, and now accepts optional online argument.}} | |{{HistoryLine||26.2|dev=snap8|The syntax of {{cmd|link=none|publish}} has been changed again, and now accepts optional online argument.}} | ||
|{{HistoryLine|||dev=pre1|The above change has been reverted.}} | |||
}} | }} | ||
Latest revision as of 11:08, 27 May 2026
Template:Exclusive Template:Infobox command
Opens Minecraft:singleplayer Minecraft:world to the local network.
Syntax
publish [<allowCommands>] [<gamemode>] [<port>]
Arguments
- Whether Minecraft:commands are allowed when the world is hosted on the local network. Defaults to false.
- Template:Arg desc
- 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
- 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
Minecraft:de:Befehl/publish Minecraft:es:Comandos/publish Minecraft:ja:コマンド/publish Minecraft:lzh:令/publish Minecraft:pt:Comandos/publish Minecraft:ru:Команды консоли/publish Minecraft:zh:命令/publish