This Minecraft tutorial explains how to use the /publish command with screenshots and step-by-step instructions.

The /publish command allows you to open a world to the LAN as multiplyer so that other players can join the world. Let’s explore how to use this game command.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Publish Command

Publish Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac) 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20, the syntax to open a world as multiplayer on the LAN is:

/publish [port]

In Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12, the syntax to open a world as multiplayer on the LAN is:

/publish

Definitions

  • port is optional. It is the port number to use for this multiplayer world on the LAN.

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.

2. Type the Command

In this example, we will open our current world to the LAN as a multiplayer world with the following command:

/publish

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

Once the cheat has been entered, the world will be opened to the LAN so that other players can join the game.

You will see the message “Local game hosted on port 49672” appear in the lower left corner of the game window to indicate that the world is now open to the LAN.

TIP: Once you quit the game, your world will go back to Singleplayer again. You will need to open the LAN each time you want other players to join your world.

Congratulations, you just learned how to use the /publish command in Minecraft!

Click to rate this post!
[Total: 2 Average: 5]