[[File:Multiplayer_preview.png|thumb|[[Steve]], [[Efe]], [[Zuri]] and [[Kai]] playing together]]
'''Multiplayer''' is the style of playing ''[[Minecraft]]'' that involves multiple [[player]]s interacting on a single world, available on a [[server]], allowing them to work together to mine [[ores]], build structures, and fight [[mobs]] (or [[PvP|each other]]), or to simply play together.

== Gameplay ==
Multiplayer works using a server, which allows players to play online or via a local area network with other people. There are various customization options that can be set by operators. These settings depend on the type of server and can create many different multiplayer experiences. 

===''Bedrock Edition''===
{{see also|Tutorial:Setting up a LAN world#Bedrock Edition}}
To change multiplayer settings in [[Bedrock Edition]], the world owner has to go to the world settings while not in the world, then select the "Multiplayer" tab, and are then given some options. 

The first option is "Multiplayer Game". This option allows world owners to decide who can join them over Wi-Fi, by selecting an option on the "Microsoft Account Settings" dropdown. 

* If they select "Invite Only", only Xbox Live friends that are owner invites can join them. 
* If they select "Friends Only", then only their friends on Xbox Live can join them. 
* If they select "Friends of Friends", then the owner's Xbox Live friends and their Xbox Live friends can join. This is also the default option.

The second option is called "Visible to LAN Players", which allows anyone on the same local network or Wi-Fi network the owner is on to join them, regardless of if they are a friend of theirs or not. There can be a maximum of 5/8 players at a time in a world, and can be set using {{cmd|setmaxplayers}} up to 30 players.

===''Java Edition''===
{{see also|Tutorial:Setting up a LAN world#Java Edition}}
[[File:Multiplayer Screen.png|thumb|The multiplayer screen {{in|java}} allows the [[player]] to add a new [[server]] or join them. Worlds that are opened to the local area network (LAN) automatically appear in below the server list.]]

To enable multiplayer {{in|java}}, the world owner has to first pause the game and press "Open to LAN", then the owner is then prompted some options:
* "Game Mode", which sets the gamemode of other players once they join the world for the first time. Once a player rejoins, they retain their previous gamemode even if the gamemode on join was changed. 
* "Allow Commands", which allows or denies other players access to cheats depending on the selected option. Once a player rejoins, they do not retain their cheats permissions unless enabled again.

The owner can also open their world to LAN by using {{cmd|publish}} command.

Once the world is opened to the LAN, players on the same local network as the world owner can join by going to the multiplayer section. Players who are going to join over a local network must do the following:

# Add a server/Use Direct Connect.
# Enter the IPv4 address of the world owner into the server address, followed by a colon.
# Enter the port of the world that was given upon opening the world to LAN.
# Ensure that there are no spaces in the address, then join!

An important thing to note is that {{w|Firewall (computing)|firewall}} rules in the {{w|computer}} or the {{w|Router (computing)|router}} can block players from joining the multiplayer world. Ensure that no firewalls stop any incoming connections, though beware of the risks.

=== Differences from single-player ===
Once making the world multiplayer, some differences are noticeable, with one being that game mechanisms do not stop working if the player [[pause]]s the game. For example, if the player has items being smelted in a furnace, pressing the pause button ({{key|Esc}} by default) does not stop the smelting process. {{IN|bedrock}}, there is no difference as opening the menu in singleplayer does not pause the game.{{until|bedrock 1.21.60}}

Gameplay in ''Minecraft'' is generally the same in both single-player and multiplayer, with some notable differences. Multiplayer has more of an emphasis on community and collaboration between players, which is assisted by the multiplayer [[chat]] function. Multiplayer allows for the player to build contraptions that are intended for multiple players. In addition, there are many adventure maps and mini-games in which multiple players are required.

== Video ==
{{yt|CpYXJ1j46HI|align=center}}

== History ==
{{HistoryTable
|{{HistoryLine|java classic}}
|{{HistoryLine||0.0.12a|dev=May 18, 2009|slink=Java Edition Classic 0.0.12a/Development#Multiplayer test (May 18, 2009)|Began work on the implementation of multiplayer.}}
|{{HistoryLine||0.0.15a (Multiplayer Test 1)|Multiplayer is first tested.}}
|{{HistoryLine||0.0.15a (Multiplayer Test 4)|Players' names now appear above their heads.}}
|{{HistoryLine||0.0.15a (Multiplayer Test 5)|Added the chat system.
|Due to a bug, opening the chat in a singleplayer world crashes the game.}}
|{{HistoryLine||0.0.16a|Reduced bandwidth usage.
|Multiplayer has been released after many beta trials.
|Added commands for admins such as {{cmd|kick}} and {{cmd|ban}}.
}}
|{{HistoryLine||0.0.17a|Players can now see the chat log when typing.
|Added the ability to see the list of players logged in by pressing {{key|Tab}}.
|Custom player skin test.
|The chat can no longer be accessed in singleplayer.}}
|{{HistoryLine||0.0.18a|Custom skins have been released.}}
|{{HistoryLine||0.0.18a_01|Added support in chat for characters <nowiki>|</nowiki>, @, and $.}}
|{{HistoryLine||0.0.23a|Clicking a player's name under the player list pastes their username into the chat.}}
|{{HistoryLine||0.24_SURVIVAL_TEST|Removed multiplayer.}}
|{{HistoryLine||0.28|Readded multiplayer.
|Other players can be killed in multiplayer.}}
|{{HistoryLine||0.28_01|Other players can no longer be killed in multiplayer.}}
|{{HistoryLine|java indev}}
|{{HistoryLine||0.31|dev=20091223-0040|Multiplayer has been made partially inaccessible (although the multiplayer code still exists and can be re-enabled).
|Connecting to a multiplayer server causes players to spawn in a bedrock cube.{{citation needed}}
|The game acts as if it is in singleplayer – the chat is inaccessible and the player list cannot be opened.}}
|{{HistoryLine||?|Multiplayer no longer works.{{citation needed}}}}
|{{HistoryLine|java alpha}}
|{{HistoryLine||v1.0.10|Mojang hosts a private Survival multiplayer server that requires invitation to join.}}
|{{HistoryLine||v1.0.12|Survival multiplayer testing begins.}}
|{{HistoryLine||v1.0.15|Survival multiplayer is released.}}
|{{HistoryLine||v1.0.16|Added {{cmd|ban}}, {{cmd|pardon}}, {{cmd|ban-ip}}, {{cmd|pardon-ip}}, {{cmd|op}} and {{cmd|deop}} commands.
|Added server operators.}}
|{{HistoryLine||v1.0.16_01|Added {{cmd|tp <player1> <player2>}}, {{cmd|save-all}}, {{cmd|save-off}} and {{cmd|save-on}} commands.}}
|{{HistoryLine||v1.0.16_02|Added {{cmd|tell}} and {{cmd|list}} commands.
|Operators can now build in the spawn area.
|The server now logs what admin does what and broadcasts any admin events to all connected ops.
|{{cmd|save-off}} now works.}}
|{{HistoryLine||v1.0.17|[[Chicken]]s, [[pig]]s and [[slime]]s can now spawn.
|The daylight cycle now works.}}
|{{HistoryLine||v1.1.0|[[Chest]]s, [[sign]]s and [[furnace]]s now work.}}
|{{HistoryLine||v1.2.1|Music now plays in multiplayer.}}
|{{HistoryLine||v1.2.2|Vehicles are now functional.}}
|{{HistoryLine||v1.2.3|[[Health]] and [[damage]] are now functional.}}
|{{HistoryLine||v1.2.3_05|Other players are shown as [[sneaking]] when they are [[sneaking]].
|Names of sneaking players are now fainter and visible at shorter distances, and are not visible through solid blocks.}}
|{{HistoryLine|java beta}}
|{{HistoryLine||1.0|Inventory is now server-side (fixes disappearing items and duplication as a result).}}
|{{HistoryLine||1.2|Worn [[armor]] is now visible on other players.
|[[Painting]]s now work.}}
|{{HistoryLine||1.3|Players standing on [[fence]]s no longer get stuck.}}
|{{HistoryLine||1.4|"Ghost" client-sided [[slime]]s no longer spawn.}}
|{{HistoryLine||1.5|[[Wolves]] no longer constantly whimper when they have full health.}}
|{{HistoryLine||1.6|dev=Test Build 3|[[The Nether]] now works in multiplayer.
|[[Dispenser]]s now emit smoke and play sounds when used.
|Fixed fake client-sided [[music discs]] spawned when ejecting them from a [[jukebox]].
|New settings in Server.properties: <code>view-distance</code> and <code>allow-nether</code>.}}
|{{HistoryLine||1.7.3|Modded clients can no longer edit text of placed [[sign]]s.}}
|{{HistoryLine||1.8|dev=Pre-release|[[Ghast]] attack sounds in multiplayer have been fixed.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.0.1|dev=release|Fixed "Invalid server key" error when attempting to log into server.
|Fixed  "Null pointer exception" error when logging into server.}}
|{{HistoryLine||1.1|dev=11w49a|Corrected a {{cd|setTileEntity}} multiplayer bug.}}
|{{HistoryLine|||dev=?|It is now possible to enter colored text in the chat.}}
|{{HistoryLine||1.2.1|dev=12w06a|It is no longer possible to enter colored text in multiplayer's chat with the vanilla [[Stand alone client|client]].
|[[Monster spawners]] now show the correct mob inside them.
|[[Mob]] hitboxes have been fixed (it is now possible to hit their legs).}}
|{{HistoryLine||1.2.4|Added a chat history.
|Added the ability to complete usernames using the {{key|Tab}} key.
|Added the ability to copy-paste text.}}
|{{HistoryLine||1.3.1|dev=12w23a|Players can now see the cracking effect when other players mine blocks.
|Multiplayer now scans for local games.}}
|{{HistoryLine||1.8|dev=14w02a|Improved chat communication.{{more info}}
|Messages are now either chat, system, or action bar messages.
|Action bar messages are always shown. Chat and system messages are now only shown if chat settings are configured that way.
|Some instances of usernames in the chat do now show the player's UUID when hovered on when debug tooltips are enabled.}}
|{{HistoryLine||1.9|dev=15w43a|Chat now supports Chinese, Japanese and Korean, and probably other IME entered languages.{{verify}}}}
|{{HistoryLine||1.11|dev=16w38a|Chat messages can now be 256 characters long instead of 100.}}
|{{HistoryLine||1.12|dev=17w13a|Added the narrator, which can read chat messages aloud.}}
|{{HistoryLine|||dev=17w15a|Added a toast notification for toggling the narrator.
|The narrator now has four settings: "off", "all", "chat", and "system".}}
|{{HistoryLine|||dev=17w18b|Made the narrator work on nearly all systems (Linux requires Flite for it to work).}}
|{{HistoryLine||1.16|dev=20w15a|Chat line spacing can be adjusted.
|A chat delay can be set between 0 (default) and 6 seconds.}}
|{{HistoryLine||1.19.1|dev=22w24a|Added the player reporting system, only accessible in multiplayer worlds.}}
|{{HistoryLine||1.20.5|dev=24w04a|Renamed "Allow cheats" to "Allow commands" on the Open to LAN screen.}}
|{{HistoryLine|New 3ds}}
|{{HistoryLine||1.4.23|Added support for 2-player multiplayer using Local Play.}}
}}

== Issues ==

{{issue list}}

== Gallery ==
=== Screenshots ===
<gallery>
Multiplayer disclaimer.png|The disclaimer that appears {{in|java}} before going to the multiplayer menu screen.
Multiplayer Group.png|A multiplayer group.
Beta Multiplayer Group.png|A multiplayer group.
BuildCollaboration.png|Some people building on a server.
PlayersMining.png|Some people mining on a server.
PlayerVersusPlayer.png|Some people fighting on a server.
PE Multiplayer.png|Numerous players on a ''[[Pocket Edition]]'' server in 2014.
Banned.png|Banned from a Minecraft server.
WeGotShot.png|Two players in a cave.
BoatAnimals.png|Two players in boats.
Moria.jpg|A middle earth server.
</gallery>

=== Development images ===
<gallery>
Alpha v1.0.5 01 Multiplayer Testing.png|Notch testing multiplayer.
EarlySMP.png|Early multiplayer.
Alpha v1.0.10 Multiplayer 2.jpg|Early multiplayer.
Alpha v1.0.10 Multiplayer 3.png|Early multiplayer.
</gallery>

== See also ==
* [[Server list]]
* [[Server.properties|Server properties]]
* [[Server/Requirements|Server requirements]]
* [[Minecraft Realms]]
* [[Featured servers]]

== Navigation ==
{{Navbox gameplay}}

[[Category:Rewritten gameplay]]

[[cs:Hra více hráčů]]
[[de:Mehrspieler]]
[[es:Multijugador]]
[[fr:Multijoueur]]
[[it:Multigiocatore]]
[[ja:マルチプレイ]]
[[nl:Multiplayer]]
[[pl:Gra wieloosobowa]]
[[pt:Multijogador]]
[[ru:Сетевая игра]]
[[th:หลายผู้เล่น]]
[[uk:Гра в мережі]]
[[zh:多人游戏]]
