Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
Ic translate
此条目的(部分)内容需要翻译。

你可以帮助我们来翻译此条目,但请勿使用机器翻译

Multiplayer is the server-based version of the game that, as the name would suggest, enables multiple players to interact with each other on a single world. Players can work with others to create structures, mine and fight with each other.

Users can download and run the server package that allows other players to connect to and play on their server. Different game modes can be chosen for a server, which includes Survival, Creative, Hardcore, and Adventure. It should be noted that game modes are individually attributed to each player meaning some can be in creative and some in survival mode. Players can also be promoted to op (system operator) status by the server admin or other ops, which grants them access to server commands such as setting the time of day and teleporting players around.

EarlySMP

早期的多人生存模式

Textformatting

文字样式(从上至下)依次为:粗体、删除线、下划线、斜体和重置 (§r) 文字样式

Colors

文字颜色代码。使用§并加以对应的数字或字母生成相应的文字颜色。如:§a会生成浅绿色文字。

Currently, Minecraft does not have an official pre-populated survival server list available, but there is a server list for Minecraft Classic, and the wiki's sidebar has a link to it and, there are also third-party server lists available.

An option available for players who do not wish to port forward is set up their server on a local network (using the local IP address as opposed to a global IP address presented by the server's router). A local server usually does not require port forwarding.

服务器种类

服务器可以按照其类型进行分类,会有许许多多的服务器类型:

  • 多人生存模式(SMP) (Survival Multiplayer) 。服务器架设的标准类型,当假设服务器时默认设置即为多人生存模式。
  • 多人创造模式(CMP) (Creative Multiplayer)。玩家拥有无尽的资源和生命,通常用于团队建造。
  • 多人噩梦模式(HMP) (Hardcore Multiplayer) Players are permanently kicked from the server once they die.
  • AMP (Adventure Multiplayer) Players cannot build or destroy blocks. Useful for preventing certain types of griefing.
  • There are also servers dedicated to provide their own purpose that do not fit under standard server types.

Some servers use mods ("modifications") to add custom items, crafting recipes, and more that are dedicated to enhancing the vanilla Minecraft multiplayer experience.

Chat

File:2011-11-27 20.42.17.png

A multiplayer chat snippet.

Please note: Several of these commands are configurable (the defaults are shown here)

In multiplayer, players can press T to chat to others or enter commands. Commands are identified by the server with the use of a forward slash (/) at the beginning of the message. Chat functions include:

  • Chat history - Mouse wheel can be used to scroll up/down for history. PAGEUP and PAGEDOWN keys can also be used.
  • Clickable links in chat.
  • Up/down keys for recently sent messages.
  • If you start typing a player's name or a command, and press Tab ↹, it'll automatically type the rest of the username or command for you. (Will not finish player name if player isn't online.)
  • Copy & paste in chat. (CTRL + V is for paste and CTRL + C is to copy. ⇧ Shift + Arrow keys will select text for you.)
  • The section symbol, §, allows players to change the style of the text.
    • Just like typing §k in chat displays random characters, §l §m §n and §o creates bold, striked, underlined and italic text respectively, while §r resets any set states. These (the section symbol: §) cannot be typed in vanilla clients because they are restricted from being typed. If § is pasted and posted in chat, the player who sent it will be automatically kicked from the server with an "Illegal characters in chat" message, and an disconnect.endOfStream error server-side.
  • Pressing the '/' acts like a command key: it opens the chat with a '/' in it. In other keyboard layouts, it might be another key. Since version 1.3.1 it is possible to change the key in the Controls options.
  • Pressing a letter and holding it while you press Tab ↹ enters the first username starting with that letter. If there are multiple with that letter, it will give a list in chat and pressing tab more than once scrolls through the names.

Third-party server lists

主条目:Server list

Due to the non-existence of an official server list, different source sites offer lists for different multiplayer servers. A collection of such sites is on the Server list page.

The Minecraft site also contains a server list for Classic servers. However, a Server List in the multiplayer join screen was introduced in Beta 1.8. This does not have a full server list, however, it does save servers, ping them, and can tell you the number of players online and the maximum players online.

Local area network

A LAN game is only accessible to other people in your local network (e.g. just the people also connected to your router/switch are able to connect to you)

To open your current single player world for other players in your LAN, type the command "/publish" into the chat (note that this is still very restricted, e.g. you can't adjust the game options using the commandline) or access the Game Menu and click on the "Open to LAN" button. There you can select the gamemode for other players and whether they should be allowed to use Cheats. Both of these methods give you an IP for use, for example: "Local game hosted on hostname:12345".

Now other players can either connect to your game using the link minecraft provided you or they can connect using the multiplayer menu with its new "Scanning for LAN-Worlds" section at the bottom.

On the technical side a minecraft client with an opened LAN game sends a UDP multicast to the local address 224.0.2.60:4445 every 1.5 seconds. Other clients then listen for this multicast to show your game in their multiplayer menu.

Technical notes

In Classic, the server saves the level to the server_level.dat file every minute, or by issuing the /save-all command. In the full game, the server saves the level in the "world" folder every 30 seconds if chunks have been modified, by default.

Home-made servers do not strictly require access to minecraft.net, and so can be played on an isolated local network with no Internet connection. They use minecraft.net as a repository of player skins and also a database containing a list of accounts, preventing hackers and griefers from using false names while on such a server. This and other settings are modified by editing the server.properties text file.

History

c
June 8, 2009Multiplayer released after many beta trials.
a
August 4, 2010Survival multiplayer is released.
1.2.2Vehicles are now functional.
1.2.3Health and damage now functional.
1.2.4Other players are shown as sneaking when they are sneaking.
1.2.6Added /kill command.
b
1.0Inventory is now server-side (fixes disappearing items and duplication as a result).
1.2Worn armor is now visible on other players.
Paintings now work.
1.3Players standing on fences no longer get stuck.
1.4"Ghost" client-sided slimes no longer spawn.
1.5Wolves no longer constantly whimper when they have full health.
1.6Huge bugfix update
The Nether now works in multiplayer.
Dispensers 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: view-distance and allow-nether.
1.7.3Modded clients may no longer edit text of placed signs.
1.8Ghast attack sounds in multiplayer fixed.
r
1.1It was now possible to enter colored text in multiplayer chat.
1.2.1It is no longer possible to enter colored text in multiplayer's chat with the vanilla client.
Monster spawners now show the correct mob inside them.
Mob hitboxes were fixed (it is now possible to hit their legs).
1.2.4Chat was greatly improved. There is now a chat history, it is now possible to complete usernames using the Tab ↹ key, and it is now possible to copy-paste text.
Many multiplayer bugs were fixed, such as ghost TNT.
12w23aPlayers can now see the cracking effect when other players mine blocks.
12w24aAdded initial support for LAN games via /publish
12w25aPlayers can now teleport to a specific location with the /tp username x y z command in creative mode or with cheats enabled in Survival mode.
Added the "Open to LAN" in-game menu.
Multiplayer now scans for local games.

Bugs

  • Many events of the game are affected by bad multiplayer lag, with effects such as resulting in mobs hitting you more easily than in singleplayer.
  • Sometimes your skin changes back to default skin. This often happens when leaving/entering The Nether or The End, or when teleporting.
  • In multiplayer, players sometimes glitch through a block or may seem as if they were hovering over a block.
  • Blocks will sometimes appear to be destroyed on the client's side, yet still exist on the server. This will cause the player who sees the invisible block to vibrate when attempting to enter the space that the block occupies.

Trivia

  • In multiplayer, one is able to change the gamemode by simply using a command; however, one needs operator status to do so. (For example, "/gamemode 1 <playername>" converts your gamemode to Creative (Survival is 0, Creative is 1, and Adventure is 2.)
  • When changing the game mode, all current items in the inventory will be preserved.

Gallery

See also

  • Server
  • Server list
  • SMP Server commands
  • Formatting codes
  • Setting up a server
  • Death messages


Advertisement