Dragon Cancel
#cancelled
如果你是服务器管理员,想要为了你自己的目的(无论善恶)把末地夺回来,那你来对地方了。再也不用让那条烦人的龙在你的末地或其他你选择的任何世界中打扰你和你的作品了。
工作原理:
Dragon Cancel 利用了 NBT API(由可爱的 tr7zw 提供),以编辑你所指定的任何现有世界文件夹中包含的 level.dat 文件。
具体来说,它会将 PreviouslyKilled 的值更改为 true,这样当玩家第一次被传送至末地时,龙及其传送门就不会生成。它还会字面意义上取消该世界中针对末影龙的所有 EntitySpawnEvent 尝试。
真的就这么简单。
最棒的是,即使你从服务器上移除了这个插件,它仍然会继续生效(不过,它只会取消在插件加载期间添加到配置中的新世界的生成)。
说明:
- 创建你想要取消龙生成的世界。
- 停止服务器。
- 将 Dragon Cancel 插件添加到你的服务器中。
- 将世界文件夹的 确切 名称添加到
config.yml 文件中(你可以创建它,见下面的示例配置)。务必用引号将其括起来,如果你要取消多个世界的生成,请用逗号分隔每个条目。
- 启动你的服务器。
注意事项:
- 该插件适用于位于服务器根文件夹中的任何世界。但是,它不适用于服务器启动后创建的世界。
- 你想要取消龙生成的世界 必须 先创建并存在。它不会为你创建
level.dat 文件。
示例:
plugins/dragonCancel 目录下的 config.yml
worlds: ["world_the_end", "spawn"]
world_the_end:末地,龙将不再自然生成。
spawn:主世界,以防你不想让龙在那里生成(出于某种原因)。
Dragon Cancel
#cancelled
If you're a server owner looking to take back The End for your own purposes, nefarious or otherwise, then you've come to the right place. No more will that pesky dragon bother you or your creations in The End, or any other world you choose.
How it works:
Dragon Cancel takes advantage of the NBT API provided by the lovely tr7zw to edit the level.dat file contained in any existing world folder you've specified.
Specifically, it changes the value of PreviouslyKilled to true, so that when a player is teleported to The End for the first time, the dragon and its portal does not spawn. It will also quite literally cancel any attempts at the EnderdragonEntitySpawnEvent in that world.
Really, it's that easy.
The best part is that this will continue to work even if you remove the plugin from your server (although, it will only cancel new spawns in worlds added to the config while the plugin is loaded).
Instructions:
- Create the world you want to cancel the dragon in.
- Stop the server.
- Add the Dragon Cancel plugin to your server.
- Add the exact name of the world folder to the
config.yml file (you can create it, see example config below). Be sure to add quotes around it, and if you're cancelling multiple worlds, separate each entry with a comma.
- Start your server.
Caveats:
- The plugin will work on any worlds that are in the root server folder. However, it will not work on worlds that are created after the server is started.
- The world that you want to cancel the dragon in MUST be created and exist first. It cannot create the
level.dat for you.
Example:
config.yml in plugins/dragonCancel
worlds: ["world_the_end", "spawn"]
world_the_end: The End, where the dragon naturally no longer spawns.
spawn: The Overworld, for if you don't want a dragon to be able to spawn there (for whatever reason).
评论 0
登录后参与评分
还没有评论,来抢沙发吧