minecraft服务器_如何运行本地Minecraft PE服务器以娱乐和持久地建设世界

minecraft服务器

minecraft服务器

Minecraft Pocket Edition (PE) is every bit as popular as the PC edition. Today we’re taking a look at how to run a lightweight Minecraft PE server to keep your worlds preserved and available (even when the device they were built with isn’t online).

《我的世界》袖珍版(PE)与PC版一样受欢迎。 今天,我们正在研究如何运行轻巧的Minecraft PE服务器,以保持世界的可用性和可用性(即使使用它们构建的设备不在线)。

为什么要运行Minecraft PE服务器 (Why Run a Minecraft PE Server)

If you’ve spent any time playing Minecraft PE or have a gaggle of Minecraft PE players in your household, you know the primary frustration is similar to the PC experience: if player X isn’t active then all the work the other players have done on player X’s shared world is unavailable.

如果您花了任何时间玩Minecraft PE或家里有一群Minecraft PE播放器,您就会知道主要的挫败感类似于PC体验:如果播放器X不活跃,则其他播放器所做的所有工作在玩家X的共享世界上不可用。

We were first inspired to investigate running a small private PE server after watching all the neighborhood kids get together for the umpteenth time to play Minecraft PE only to discover that the world they had spent the most time on was missing because the kid with the world wasn’t there that day. As a result there are dozens and dozens of cool buildings scattered across all the devices that come and go from our home network, but these structures never get left behind for the next players.

在观看所有邻居孩子在无数次聚在一起玩Minecraft PE之后,我们第一次受到启发去研究运行小型私人PE服务器,却发现他们花了最多时间的世界不见了,因为那个与世界在一起的孩子不在那天没有。 结果是,数十个很酷的建筑物散布在我们家庭网络中来回的所有设备上,但是这些结构永远不会遗留给下一个玩家。

By sticking a small Minecraft PE server somewhere on your network — a desktop commonly left on, a media server, or a Raspberry Pi — you can enjoy a persistent world that players can easily hop in and out of, and remains available for everyone at all times.

通过将小型Minecraft PE服务器粘贴在网络上的某个位置(通常是留在桌面上的桌面,媒体服务器或Raspberry Pi),您可以享受一个持久的世界,玩家可以轻松地跳入和跳出,并且仍然可供所有人使用次。

With very little effort you can enjoy a persistent server with support for plugins that breaks the Minecraft PE experience free from the portable devices that typically constrain it.

只需花费很少的精力,您就可以享受支持插件的持久服务器,从而使Minecraft PE体验从通常会限制其的便携式设备中解放出来。

安装PocketMine (Installing PocketMine)

Unlike the PC server world where there is an official and variety of unofficial solutions, the PE server world is a tad more limited. Right now the only viable game in town is a very-much-under-development project known as PocketMine.

与拥有正式和各种非官方解决方案的PC服务器世界不同,PE服务器世界的局限性更大。 目前,该镇唯一可行的游戏是一项名为PocketMine的开发中项目,目前尚在开发中。

We want to stress the development part. We’ve had a ton of fun playing with PocketMine and, for the most part, have had very few issues with it. However, compared to the absolute rock solid performance we’ve gotten out of both the official PC server and the third-party servers like Bukkit and Cauldron, the development aspect of Pocket Mine is pretty obvious. You should be fully braced to read logs, poke around forums when things don’t work quite the way you expect, etc. Further, it currently has no mob support. Although the things mobs give you (like wool and silk) are in the game the mobs don’t spawn and you can’t spawn them with spawn eggs.

我们要强调发展部分。 使用PocketMine玩得很开心,而且在大多数情况下,遇到的问题很少。 但是,与绝对的坚如磐石的性能相比,我们从官方PC服务器和Bukkit和Cauldron等第三方服务器中都获得了收益,Pocket Mine的开发方面非常明显。 您应该完全有能力阅读日志,在事情无法按您预期的方式工作时在论坛上闲逛等等。此外,当前它不支持暴民。 尽管怪物在游戏中为您提供了东西 (例如羊毛和丝绸),但它们不会生成,您也无法使用生成的卵生成它们。

All that said, if you’ve come this far and have been playing Minecraft with mods on the PC and were comfortable installing Minecraft servers, it’ll be a walk in the park.

话虽如此,如果您走了这么远,并且一直在PC上玩带有Minecraft的Minecraft,并愿意安装Minecraft服务器,那将是在公园散步。

To get started, visit the PocketMine website and grab a copy of the installer for your operating system. Unlike the universal java-based installation offered by the mods and servers we’ve looked at in previous lessons, PocketMine has pretty diverse installation needs based on your OS. We’re going to walk you through the Windows installation and encourage you to read the clear instructions on the PocketMine site for OS X and Linux.

首先, 请访问PocketMine网站并获取适用于您的操作系统的安装程序的副本。 与我们在前面的课程中介绍过的mod和服务器提供的基于Java的通用安装不同,PocketMine根据您的OS具有非常多样化的安装需求。 我们将引导您完成Windows安装过程,并鼓励您阅读PocketMine网站上针对OS X和Linux的明确说明。

Once the installer is downloaded, run it and select your installation directory (the same cautions from all previous lessons about good naming and directory placement apply).

下载安装程序后,运行它并选择您的安装目录(以前所有有关良好命名和目录放置的课程中的注意事项均适用)。

When you run the server for the first time, regardless of the operating system you’ve installed it on, you’ll be prompted to run through the configuration wizard. If you chose not to, you can always edit the configuration files later, but we recommend you make some tweaks now. Here’s a breakdown of the questions the wizard asks.

首次运行服务器时,无论安装了什么操作系统,都将提示您通过配置向导运行。 如果您选择不这样做,则以后可以随时编辑配置文件,但是我们建议您现在进行一些调整。 这是向导询问的问题的细分。

How much RAM?The default (and recommended amount) is 256MB. Raise the amount later if you find you need it.
Survival or Creative?Default is Survival, change the value from 0 to 1 for Creative.
Max Online Players?Default is 20; this setting is largely irrelevant for a private home server as you likely will never have enough players in your living room to max the server out.
Enable Spawn Protection?This is a yes/no toggle that enables a default zone of 16×16 blocks around the world’s spawn point that is immune from damage or editing. If you want to edit the size of the zone you’ll need to use a text editor to edit the “spawn-protection” value in the server.properties file.
OP Player Name?Whichever player you name here will be the primary admin of the server. You can add other operators later.
Whitelist?By default the whitelist is off, you can turn it on here. You’ll need to use server commands later to add or remove players from the whitelist. We left it off. It’s not worth the headache of adding in every new PE player that shows up.
Enable RCON?RCON is short for “Remote Console”. It allows you to telnet into your server and control the server console. Unless you’re installing this on a machine in the corner of your basement or a headless server, you usually won’t need it.
多少RAM? 默认(和建议的数量)为256MB。 如果发现需要,稍后加价。
生存还是创意? 默认值为生存,将广告素材的值从0更改为1。
最大在线玩家数? 默认值为20; 此设置对于私人家用服务器基本上不相关,因为您的客厅中可能永远不会有足够的玩家来最大化服务器的性能。
启用S​​pawn保护? 这是一个“是/否”切换,可启用世界产生点周围的默认区域16×16块,不受损坏或编辑。 如果要编辑区域的大小,则需要使用文本编辑器来编辑server.properties文件中的“ spawn-protection”值。
OP玩家名称? 您在此处指定的哪个播放器将是服务器的主要管理员。 您可以稍后添加其他运算符。
白名单? 默认情况下,白名单处于关闭状态,您可以在此处将其打开。 您稍后将需要使用服务器命令从白名单中添加或删除播放器。 我们放弃了。 添加出现的每个新的PE播放器都不值得头痛。
启用RCON? RCON是“远程控制台”的缩写。 它允许您远程登录到服务器并控制服务器控制台。 除非将其安装在地下室角落的计算机上或无头服务器,否则通常不需要它。

After these brief questions, the installer will indicate what your external IP address is and what the internal IP address of PocketMine’s host is in case you wish to set up port forwarding for external access.

在回答了这些简短问题之后,如果您希望为外部访问设置端口转发,安装程序将指出您的外部IP地址是什么以及PocketMine主机的内部IP地址是什么。

Note: If you’re following this tutorial shortly after publication it’s likely that the main release of PocketMine hasn’t caught up with the massive new Minecraft PE 0.9.5 release; you’ll need to download the development build from the PocketMine website. Installation is easy, you just need to copy a single *.PHAR file into your existing PocketMine installation folder.

注意如果您在发布后不久紧跟本教程,则可能是PocketMine的主发行版未能赶上大规模的Minecraft PE 0.9.5新发行版。 您需要从PocketMine网站下载开发版本。 安装很容易,您只需要将一个* .PHAR文件复制到现有的PocketMine安装文件夹中即可。

Let’s join the server now. To get started on the server, just fire up a copy of Minecraft PE on a device connected to the Wi-Fi. The server will be automatically detected.

现在加入服务器。 要开始使用服务器,只需在连接到Wi-Fi的设备上启动Minecraft PE的副本。 服务器将被自动检测到。

Fantastic, we’re on a world that isn’t hosted on our device (or the device of another player). We’re free to wander around, build, and perform any of the actions we could normally perform on a regular local Minecraft PE game.

太棒了,我们所处的世界不在我们的设备(或其他播放器的设备)上。 我们可以随意游荡,构建和执行通常可以在本地Minecraft PE游戏中正常执行的任何动作。

Of course, part of the fun is playing around with the kind of enhancements that only a server can offer. Let’s take a look at the plugin system for PocketMine.

当然,部分乐趣来自于只有服务器才能提供的增强功能。 让我们看一下PocketMine的插件系统。

将插件添加到PocketMine (Adding Plugins to PocketMine)

Just like the platforms that run large Minecraft servers, PocketMine supports plugins. Installing them follows the same straightforward plug and play protocol. Once you’ve found a plugin you want to use, shut the server down, copy the plugin file to the /plugins/ directory in the server directory, and restart the server.

就像运行大型Minecraft服务器的平台一样,PocketMine也支持插件。 安装它们遵循相同的简单即插即用协议。 找到要使用的插件后,关闭服务器,将插件文件复制到服务器目录中的/ plugins /目录中,然后重新启动服务器。

The one and only place to find PocketMine plugins at the moment is the official directory. There you’ll find a wide range of plugins that mirror (albeit on a smaller scale) the functionality of many popular Bukkit plugins.

目前唯一可以找到PocketMine插件的地方是官方目录 。 在那里,您会发现各种各样的插件(尽管规模较小)可以反映许多流行的Bukkit插件的功能。

The first plugin we installed on our PocketMine server was the EssentialsTP plugin, which is a suite of teleportation/travel commands that adds in our absolute favorite multiplayer server feature: the home command.

我们在PocketMine服务器上安装的第一个插件是EssentialsTP插件 ,它是一套传送/旅行命令,它添加了我们绝对喜欢的多人服务器功能:home命令。

After adding the EssentialsTP plugin to your /plugins/ directory and restarting, all players on your server will have access to a variety of useful travel commands including /sethome and /home which allows them to set multiple “homes” and move between them. No more getting lost or wasting time moving between in-game creative build sites. Home is just a /home command away.

在将EssentialsTP插件添加到/ plugins /目录并重新启动之后,服务器上的所有播放器都可以访问各种有用的旅行命令,包括/ sethome和/ home,这允许他们设置多个“家”并在它们之间移动。 无需再在游戏内的创意制作网站之间浪费时间或浪费时间。 Home只是/ home命令而已。



With just a few minutes effort, you now have a permanent Minecraft PE server; long gone are the days of waiting on your creations for the owner of the device to arrive and load up the world.

只需几分钟,您就可以拥有一个永久的Minecraft PE服务器。 等待您的作品等待设备所有者到达并加载世界的日子已经一去不复返了。

翻译自: https://www.howtogeek.com/202961/how-to-run-a-local-minecraft-pe-server-for-fun-and-persistent-world-building/

minecraft服务器

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值