Minecraft:Commands/publish: Difference between revisions
From SAS Gaming Wiki
More actions
imported>ElGrenier Merged the 2 "1.13" |
Remove broken links to missing pages |
||
| Line 6: | Line 6: | ||
}} | }} | ||
Opens | Opens singleplayer world to the local network. | ||
==Syntax== | ==Syntax== | ||
| Line 18: | Line 18: | ||
{{argument|gamemode|gamemode}} | {{argument|gamemode|gamemode}} | ||
: Sets the default | : 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. | ||
: {{arg_desc|je=gamemode}} | : {{arg_desc|je=gamemode}} | ||
{{argument|port|integer}} | {{argument|port|integer}} | ||
: The | : The port to host on. If not specified, the port is automatically allocated, typically from an ephemeral port range. | ||
: {{arg desc|je=integer|min=0|max=65535}} | : {{arg desc|je=integer|min=0|max=65535}} | ||
| Line 44: | Line 44: | ||
|{{HistoryLine||1.3.1|dev=12w24a|Added {{cmd|publish|link=none}}.}} | |{{HistoryLine||1.3.1|dev=12w24a|Added {{cmd|publish|link=none}}.}} | ||
|{{HistoryLine||1.13|dev=17w45a|{{cmd|link=none|publish}} now accepts an optional {{cd|port}} argument. | |{{HistoryLine||1.13|dev=17w45a|{{cmd|link=none|publish}} now accepts an optional {{cd|port}} argument. | ||
|{{cmd|link=none|publish}} can now be run from | |{{cmd|link=none|publish}} can now be run from command blocks.}} | ||
|{{HistoryLine|||dev=18w01a|{{cmd|link=none|publish}} can no longer be run from command blocks.}} | |{{HistoryLine|||dev=18w01a|{{cmd|link=none|publish}} can no longer be run from command blocks.}} | ||
|{{HistoryLine||1.19.3|dev=22w45a|The syntax of {{cmd|link=none|publish}} has been changed, and now accepts optional command and gamemode arguments.}} | |{{HistoryLine||1.19.3|dev=22w45a|The syntax of {{cmd|link=none|publish}} has been changed, and now accepts optional command and gamemode arguments.}} | ||
| Line 52: | Line 52: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/publish | |||
es:Comandos/publish | |||
ja:コマンド/publish | |||
lzh:令/publish | |||
pt:Comandos/publish | |||
ru:Команды консоли/publish | |||
zh:命令/publish | |||
Revision as of 15:44, 9 April 2026
Template:Exclusive Template:Infobox command
Opens singleplayer 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 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
de:Befehl/publish es:Comandos/publish ja:コマンド/publish lzh:令/publish pt:Comandos/publish ru:Команды консоли/publish zh:命令/publish