Moonblight
月亮决定今晚谁来袭击你。
怪物拥有等级,因此你遇到的下一个僵尸可能是个弱不禁风的家伙,也可能是一个拥有五十颗心的怪物。而当月亮处于满月或新月状态时,更奇怪的东西开始生成:巨大的僵尸、无法看见实体的悬浮剑,以及骑着马向你冲锋的不死生物。
你需要安装 LuaCord。 此插件基于 Lua 编写,而 LuaCord 是允许 Lua 插件在服务器上运行的插件。请先安装 LuaCord,然后再添加此插件。
夜幕降临后的变化
想象一个普通的夜晚。僵尸、骷髅、蜘蛛和苦力怕像往常一样从黑暗中涌现,只不过它们每一个都拥有 1 到 5 的等级。大多数是普通的 1 级。有些是 3 级,身穿铁甲并带有彩色名字。偶尔你会遇到 5 级:穿着下界合金甲,生命值五倍于普通怪物,拥有五十颗心。
现在加上月亮的因素。
- 满月: 部分僵尸会成长为 巨人,体型大出四倍。
- 新月: 部分生成物会变成 暗影之刃:你看不到怪物的实体,只能看到一把剑在黑暗中漂浮,直冲你而来。
- 两个夜晚: 不死生物 骑手 会骑着僵尸马和骷髅马出现,还有少数没有骑手的马匹徘徊其中。
所有的概率和数值都可以在配置文件中更改。
有等级的怪物
当怪物自然生成时,其等级会通过随机判定确定。大多数是 1 级,传说级别的则十分稀有。
- 1 级,普通(每 100 个怪物中有 60 个):正常生命值,不添加任何装备。
- 2 级,罕见(每 100 个中有 25 个):生命值为正常的 1.5 倍,穿着锁子甲并手持石剑。
- 3 级,稀有(每 100 个中有 10 个):生命值为正常的两倍,身穿铁甲并手持铁剑。
- 4 级,史诗(每 100 个中有 4 个):生命值为正常的三倍,身穿附魔钻石甲并手持钻石剑。
- 5 级,传说(每 100 个中有 1 个):生命值为正常的五倍,身穿强力附魔的下界合金甲并手持下界合金剑。
普通僵尸有 10 颗心,所以 5 级僵尸有 50 颗心。
以下怪物拥有等级:僵尸、尸壳、溺尸、骷髅、流浪者、蜘蛛、洞穴蜘蛛和苦力怕。 每种都有其独特的机制:
- 骷髅和流浪者 携带附魔弓。从 2 级开始伤害更高,从 4 级开始箭矢会点燃你,而在 5 级时会击退你。
- 溺尸 在 2 级及以上会捡起三叉戟,其强度随等级提升而增强。
- 苦力怕 可以被充能(产生大型爆炸)。在 3 级时有 1/4 的概率充能,4 级时为 1/2,5 级时必定充能。
- 蜘蛛和洞穴蜘蛛 在 3 级及以上击中你时,可能会在你脚下生成蛛网。几秒后蛛网会消失。
从 3 级开始,怪物头顶会显示彩色名称,例如 稀有僵尸 [Lv3],让你清楚即将面对的战斗。更高等级的怪物还会掉落更多经验值,有时还会掉落额外物品,如金锭、钻石或下界合金碎片。它们的盔甲和武器默认不会掉落,因此没有人可以免费刷取下界合金。
满月:巨型僵尸
在满月之夜,大约每 100 个生成的僵尸中有 3 个会成长为 巨人。
巨人是体型放大四倍的普通僵尸。它始终是 3 级、4 级或 5 级,这意味着拥有 30 到 50 颗心,攻击极具威胁,并且穿着相配的盔甲。它的移动和战斗方式与普通僵尸相同,只是体型更大。世界中同时存在的巨人数量不超过 3 个。
新月:暗影之刃
在新月之夜,大约每 100 次生成中有 6 次会被替换为 暗影之刃。
暗影之刃是一个不可见的恼鬼(林地府邸中的小型飞行怪物),手中持有剑。你看不到它的身体,只能看到一把剑在黑暗中漂浮,朝你袭来。剑的类型显示了它的强度:木剑对应 1 级,最高可达下界合金剑对应 5 级。恼鬼可以穿墙,因此剑可以从任何方向出现。
在 32 格范围内的玩家会出现短暂的黑暗效果,并在暗影之刃出现时听到洞穴音效。暗影之刃有小概率掉落回音碎片。世界中同时存在的暗影之刃数量不超过 8 个。
月夜:骑手与无主马匹
在满月和新月之夜都会发生:
- 大约每 10 个僵尸和骷髅中会有 1 个 骑着马生成:僵尸骑僵尸马,骷髅骑骷髅马。马匹继承骑手的等级,因此更高等级意味着更快、更坚韧且跳跃更高的马匹。如果骑手死亡,马匹也会随之消失。世界中此类马匹的数量上限为 6 匹。
- 大约每 100 个僵尸和骷髅生成中,也有 4 个会带来 一匹没有骑手的马。世界中此类马匹的数量上限为 4 匹。
除非你在配置文件中更改设置,否则普通夜晚不会出现这些情况。
工作原理
- 插件会监控游戏 自然生成 的怪物,即在它们出现的瞬间进行干预。
- 对于每个生成的怪物,它会根据上述概率随机判定等级,然后设置其生命值、盔甲、武器和名称。
- 接着检查月亮状态。游戏按天数计算,每第 8 天为满月,新月位于两次满月之间的正中间。如果是世界(Overworld)的夜晚且月亮状态匹配,怪物可能会被变成巨人、替换为暗影之刃,或者获得马匹,具体取决于上述概率。
- 巨人是体型放大的普通僵尸。暗影之刃是手持剑且不可见的恼鬼。骑手的马匹会在骑手出现后稍晚创建,随后骑手骑上马背。
- 一个小型计时器每秒运行一次,用于显示黄昏标题、移除旧的蛛网,并统计特殊怪物的数量以确保遵守数量限制。
- 所有信息都保存在怪物自身上,因此重启后巨人仍然是巨人。
月亮何时出现?
满月每 8 个 Minecraft 天出现一次,相当于现实时间约 2 小时 40 分钟,新月则正好出现在两次满月之间的中点。特殊怪物仅在世界(Overworld)的夜晚出现,黄昏时会显示标题以警告所有人(“满月升起”)。
如果所有玩家都睡觉跳过夜晚,那么该夜晚及其对应的怪物生成也会被跳过。如果你通过命令更改时间,月亮可能会跳转到不同的阶段。
为什么我什么也看不到?
这些特殊怪物是故意设置成低概率出现的,它们仅通过自然生成出现:即游戏自行生成的实体。
若想快速查看所有内容,可使用以下测试命令。例如,/moonblight spawn giant 5 会立即在你面前生成一个 5 级的巨人,无需等待月亮升起。或者在配置文件中提高生成几率,例如 chance: 0.5。
安装
- 安装 LuaCord 并启动一次服务器。
- 将此插件的文件放入你的
plugins 文件夹中。
- 重启服务器。控制台中应显示
[Moonblight] Enabled.。
命令
你需要 moonblight.admin 权限,默认情况下 OP(管理员)拥有此权限。支持 Tab 键补全。
/moonblight status 显示当前月相、激活的事件以及存活特殊怪物的数量。
/moonblight phase 0 强制变为满月,/moonblight phase 4 强制变为新月,/moonblight phase auto 恢复正常。
/moonblight spawn <type> [level] 在你选择的等级下生成一个怪物。类型包括:giant(巨人)、blade(刃影)、rider(骑手)、zombie(僵尸)、husk(尸壳)、
drowned(溺尸)、skeleton(骷髅)、stray(流浪者)、spider(蜘蛛)、cave_spider(洞穴蜘蛛)、creeper(苦力怕)、zombie_horse(僵尸马)、skeleton_horse(骷髅马)。
设置
所有配置均在 plugins/Moonblight/config.yml 中。配置文件分为多个部分(月亮事件、等级、装备、巨人、影刃、马匹、蜘蛛和苦力怕),并在需要说明的设置旁附有简短注释。编辑后请重启服务器。
一些有用的修改示例:
giant:
enabled: false # 完全关闭巨人
chance: 0.03 # 0.03 表示每 100 个僵尸中有 3 个;0 表示永不生成
blade:
chance: 0.06 # 新月时生成的怪物成为影刃的概率
cavalry:
moon_nights_only: false # 骑手也可在任何夜晚出现
gear:
drop_chance: 0.0 # 若希望怪物掉落其盔甲和武器,可提高此值
messages:
notify_ops: true # OP 会在聊天栏看到启动通知;设为 false 可关闭该功能
几率范围从 0(永不)到 1(必现)。插件自带的数值仅为初始参考值,请根据你的服务器体验调整这些数值,使夜晚的氛围恰到好处。
注意事项
- 仅影响自然生成的怪物。来自刷怪笼、生成蛋、命令和其他插件生成的实体不会改变。
- 数量限制(如最多 3 个巨人)是按世界计算,而非按玩家计算。
Moonblight
The moon decides what comes for you tonight.
Mobs get levels, so the next zombie you meet might be a pushover, or a monster with fifty hearts. And when the moon is
full or new, stranger things start to spawn: giant zombies, floating swords you can't see the body of, and undead
riders charging at you on horseback.
You need LuaCord. This plugin is written in Lua, and LuaCord is the plugin
that lets Lua plugins run on your server. Install LuaCord first, then add this one.
What changes after dark
Picture a normal night. Zombies, skeletons, spiders and creepers come out of the dark like always, except every one of
them has a level from 1 to 5. Most are plain level 1s. Some are level 3, with iron armor and a colored name. And
now and then you meet a level 5: netherite armor, five times the health, fifty hearts.
Now add the moon.
- Full moon: some zombies grow into giants, four times bigger.
- New moon: some spawns turn into shadow blades: you can't see the mob, only a sword floating through the dark,
straight at you.
- Both nights: undead riders show up on zombie and skeleton horses, and a few horses wander in with no rider.
Every chance and number can be changed in the config.
Leveled mobs
When a mob spawns on its own, its level is rolled. Most are level 1, and legendary ones are rare.
- Level 1, Common (60 out of every 100 mobs): normal health, no gear added.
- Level 2, Uncommon (25 out of 100): 1.5 times the health, chainmail armor and a stone sword.
- Level 3, Rare (10 out of 100): double the health, iron armor and an iron sword.
- Level 4, Epic (4 out of 100): triple the health, enchanted diamond armor and sword.
- Level 5, Legendary (1 out of 100): five times the health, strongly enchanted netherite armor and sword.
A normal zombie has 10 hearts, so a level 5 zombie has 50.
These mobs get levels: zombie, husk, drowned, skeleton, stray, spider, cave spider and creeper. Each has its own twist:
- Skeletons and strays carry enchanted bows. From level 2 they hit harder, from level 4 their arrows set you on
fire, and at level 5 they knock you back.
- Drowned at level 2 and up pick up a trident that gets stronger with each level.
- Creepers can be charged (the big blast). It's a 1 in 4 chance at level 3, 1 in 2 at level 4, and always at level 5.
- Spiders and cave spiders at level 3 and up can drop a cobweb on your feet when they hit you. It melts away after
a few seconds.
From level 3, a mob shows a colored name above its head, like Rare Zombie [Lv3], so you know what you're about to
fight. Higher levels also give more XP, and sometimes drop a bonus item such as a gold ingot, a diamond or a netherite
scrap. Their armor and weapons do not drop by default, so nobody farms free netherite.
Full moon: giant zombies
On a full moon night, about 3 out of every 100 zombies that spawn grow into a giant.
A giant is a normal zombie made four times bigger. It is always level 3, 4 or 5, which means 30 to 50 hearts and hits
that hurt, and it wears armor to match. It still moves and fights like a zombie, just much bigger. No more than
3 giants can be alive in a world at once.
New moon: shadow blades
On a new moon night, about 6 out of every 100 spawns are swapped for a shadow blade.
A shadow blade is an invisible vex (the small flying mob from woodland mansions) holding a sword. You can't see its
body, only a blade floating through the dark, coming for you. The sword tells you how strong it is: wooden for level 1,
up to netherite for level 5. Vexes can pass through walls, so a blade can come at you from anywhere.
Players within 32 blocks get a short darkness effect and hear a cave sound when one appears. A blade has a small chance
to drop an Echo Shard. Up to 8 can be alive in a world at once.
Moon nights: riders and loose horses
On both full moon and new moon nights:
- About 1 in 10 zombies and skeletons spawn riding a horse: a zombie horse for zombies, a skeleton horse for
skeletons. The horse gets the rider's level, so higher levels mean a faster, tougher horse that jumps higher. If the
rider dies, the horse disappears too. Up to 6 of these horses can exist in a world.
- About 4 in 100 zombie and skeleton spawns also bring a horse with no rider. Up to 4 of these can exist in a world.
Normal nights have neither, unless you change that in the config.
How it works
- The plugin watches the mobs the game spawns on its own, the moment they appear.
- For each one, it rolls a level using the odds above, then sets its health, armor, weapon and name.
- Then it checks the moon. The game counts days, and every 8th day is a full moon, with the new moon halfway between.
If it is night in the overworld and the moon matches, the mob may be turned into a giant, swapped for a shadow blade,
or given a horse, using the chances above.
- A giant is a normal zombie made bigger. A shadow blade is a vex made invisible with a sword in its hand. A rider's horse
is created a moment after the rider, and then the rider climbs on.
- A small timer runs once a second to show the dusk title, remove old cobwebs, and keep count of the special mobs so
the limits are respected.
- Everything is remembered on the mob itself, so a giant is still a giant after a restart.
When do the moons come?
A full moon comes every 8 Minecraft days, which is about 2 hours and 40 minutes of real time, and the new moon
arrives exactly halfway between. The special mobs only appear at night in the overworld, and a title appears at dusk
to warn everyone ("The Full Moon rises").
If everyone sleeps through the night, the night is skipped and so are its mobs. If you change the time with commands,
the moon may jump to a different phase.
Why am I not seeing anything?
The special mobs are rare on purpose, and they only come from natural spawns: the mobs the game spawns on its own.
To see everything quickly, use the test commands below. For example, /moonblight spawn giant 5 puts a level 5 giant
right in front of you, no waiting for the moon. Or turn the chances up in the config, for example chance: 0.5.
Install
- Install LuaCord and start the server once.
- Put this plugin's file in your
plugins folder.
- Restart the server. You should see
[Moonblight] Enabled. in the console.
Commands
You need the permission moonblight.admin, which ops have by default. Tab completion works.
/moonblight status shows the moon phase, which event is active, and how many special mobs are alive.
/moonblight phase 0 forces a full moon, /moonblight phase 4 forces a new moon, and /moonblight phase auto goes back to normal.
/moonblight spawn <type> [level] spawns a mob at the level you pick. Types: giant, blade, rider, zombie, husk,
drowned, skeleton, stray, spider, cave_spider, creeper, zombie_horse, skeleton_horse.
Settings
Everything is in plugins/Moonblight/config.yml. It's split into sections (moon events, levels, gear, giants, shadow
blades, horses, spiders and creepers), with a short note wherever a setting needs one. Restart the server after editing.
A few useful changes:
giant:
enabled: false # turn giants off completely
chance: 0.03 # 0.03 means 3 in 100 zombies; 0 means never
blade:
chance: 0.06 # how often a new moon spawn becomes a shadow blade
cavalry:
moon_nights_only: false # riders can appear on any night
gear:
drop_chance: 0.0 # raise it if you want mobs to drop their armor and weapons
messages:
notify_ops: true # ops see startup notices in chat; set false to turn that off
Chances run from 0 (never) to 1 (always). The numbers that ship with the plugin are starting points, so change them
until the nights feel right for your server.
Good to know
- Only natural spawns are affected. Mobs from spawners, spawn eggs, commands and other plugins stay as they are.
- The limits (like 3 giants) count per world, not per player.
评论 0
登录后参与评分
还没有评论,来抢沙发吧