Zombie Apocalypse
什么是 Zombie Apocalypse?
Zombie Apocalypse(僵尸末日)模组增加了每晚 9:00 可能爆发僵尸末日的可能性。僵尸会在每位玩家周围生成,你必须在天亮前击败这些僵尸以获得奖励!
它是如何工作的?
在晚上 9:00,有可配置的概率(默认:20%)触发末日事件,并生成可配置的僵尸数量(默认:40),其中需要击杀一定比例(默认:50%)的僵尸才能获得奖励。你也可以通过命令手动启动末日事件(可选指定每人生成的僵尸数量)。每个僵尸将在 X 和 Z 方向上距离玩家 1-14 格的位置生成,其中一个坐标会偏移另外 10 格,以防止僵尸生成得太近。
奖励是可配置的:
每个可能的物品都需要指定以下内容——(这些内容在 config.yml 中有详细说明)
- 物品名称
- 概率
- 数量
- 消息
默认物品
物品 - 概率
- 钻石剑 - 5
- 钻石胸甲 - 5
- 2 x 钻石 - 25
- 金剑 - 25
- 绿宝石 - 25
- 1 x 钻石 - 50
- 5 x 铁锭 - 150
命令
/za help - 显示关于该插件的信息。
/za version - 显示插件的版本号。
/za commands - 列出所有可用命令。
/za kills - 显示当前末日事件的击杀数/目标。
OP 专用命令:
/za start - 手动启动僵尸末日。
/za start <整数> - 手动启动僵尸末日,并为每人生成 <整数> 数量的僵尸。
/za getitem - 显示你手中物品的名称,用于配置奖励。
配置
Zombie Apocalypse 的配置非常简单。在 config.yml 中的 world 字段输入你的世界名称,并将 configured 字段的值从 false 改为 true。如果不这样做,插件将不会加载,并且每次有人登录时都会提示需要配置模组。如果世界名称无效但已标记为已配置,你会从两个任务中收到一些空指针异常。还有一个名为 "numzombies" 的字段,默认值为 40,这表示在自然发生的末日事件中或使用 "/za start" 命令且不指定数量时,每人将生成的僵尸数量。
例如,我的服务器有一个名为 Trysnor 的世界,所以我这样配置了 config.yml 文件:
#输入你想用于僵尸末日的事件的世界名称
#将 "world" 替换为你服务器的实际世界名称
world: Trysnor
#numzombies 是你希望从默认事件中为每人生成的僵尸数量。
numzombies: 40
#当你用你的世界名称配置好此文件后,请将 false 改为 true
configured: true
你还可以配置每晚爆发末日的概率。在晚上 8:00 会有一条消息警告末日可能即将来临,如果末日没有发生也会有相应的消息。这两条消息都可以禁用。还可以设置僵尸生成的上限。如果此数值小于 1,则无限制。如果 "hardlimit" 大于 1,则只会生成最多该数量的僵尸。
关于建议与反馈
请在此处创建工单:
由于我正在忙于其他项目,因此并未积极开发此模组。如果你想 Fork 此模组,可以在仓库选项卡中找到 Git 仓库。
玩得开心,欢迎留下反馈!
Zombie Apocalypse
What is Zombie Apocalypse?
ZA adds the possibility for a zombie apocalypse to start at 9:00 each night. Zombies will spawn around each player, and you must defeat the zombies before morning to receive a reward!
How does it work?
At 9:00 P.M. there is a configurable (default: 20%) chance for an apocalypse to start and a configurable amount of zombies (default: 40) will spawn and a configurable percent of them (default: 50%) need to be killed for a reward to be gained. The apocalypse can be started with a command (optionally you can specify a number of zombies per person to spawn). Each zombie will spawn 1-14 blocks away in both the X and Z directions, one of coordinates is offset by another 10 blocks so the zombies don't spawn too close.
The rewards are configurable:
Each possible item needs to specify these things - (these are explained in config.yml)
- Item name
- Chance
- Quantity
- Message
Default Items
Item - Chance
- Diamond sword - 5
- Diamond chestplate - 5
- 2 x Diamond - 25
- Gold sword - 25
- Emerald - 25
- 1 x Diamond - 50
- 5 x Iron ingot - 150
Commands
/za help - displays information about the plugin.
/za version - displays the version of the plugin.
/za commands - displays a list of all commands.
/za kills - shows the kills/goal of the current apocalypse.
OP commands:
/za start - manually starts the zombie apocalypse.
/za start <integer> - manually starts the zombie apocalypse with <integer> number of zombies spawned per person.
/za getitem - gives the name of the item in your hand, used for configuring rewards.
Configuration
Configuration of Zombie Apocalypse is very simple. In config.yml enter the name of your world in the world field and change false to true in the configured field. If you don't do this the plugin will not load and every time someone logs in it will say the mod needs to be configured. If the world name isn't valid and it says it's configured you will get some null pointer exceptions from two tasks. There is also a field called "numzombies" that has a default value of 40, this is the number of zombies that will spawn per person from both naturally occurring apocalypses and when using the command "/za start" without specifying a number.
As an example my server has a world named Trysnor so I set up the config.yml file like this
#Enter the name of the world you want to use for the zombie apocalypse
#Replace "world" with whatever your server's world is
world: Trysnor
#numzombies is the amount of zombies you want to spawn per person from a default event.
numzombies: 40
#when you have configured this file with your world's name change false to true
configured: true
You can also configure the chance per night for the apocalypse to happen. There is a message at 8:00 PM warning that the apocalypse might be coming, and a message if it doesn't happen. Both of those messages can be disabled. There is also a limit to the number of zombies that can spawn. If this number is anything under one there is no limit. If the "hardlimit" is over one, it will spawn only up to that many zombies.
FOR SUGGESTIONS AND BUGS
Please create a ticket here:
I'm not actively developing this mod because I'm working on other projects. If you would like to fork this mod there is a git repo on the repository tab.
Have fun and leave feedback!
评论 0
登录后参与评分
还没有评论,来抢沙发吧