NightWard
手持十字架,敌对生物会远离你。
当玩家在任何一只手中持有十字架时,敌对生物将停止对其攻击。任何进入 8 格范围内的敌对生物都会后退并停留在原地。一旦丢弃十字架,敌对生物会在半秒内重新锁定目标。
前置要求
|
|
| Minecraft |
1.21.4 至 26.2 |
| Java |
21 或更高版本 |
| Server |
Paper 或其分支服务器 |
合成配方
五根木棍摆成十字形。
[ ] [S] [ ]
[S] [S] [S]
[ ] [S] [ ]
使用火把、拴绳或其他物品
十字架只是默认选项,并非机制本身。你可以将护符指向任意原版物品:
amulet:
items:
- TORCH
此时火把具有防护效果,而十字架不再具备该功能。列出多个物品名称即可同时启用多种物品的防护效果。
配置说明
| 键名 |
默认值 |
含义 |
amulet.items |
[nightward:cross] |
具备防护效果的物品。接受任意原版物品名称 |
amulet.base-item |
NETHER_STAR |
合成十字架所基于的原版物品 |
amulet.craftable |
true |
注册合成配方 |
radius |
8.0 |
防护范围,单位为方块数 |
sweep-inticks |
10 |
扫描运行的频率。20 tick 等于一秒 |
flee-speed |
1.2 |
逃跑生物的移动速度倍率 |
enabled-worlds |
[] |
空表示适用于所有主世界。名称区分大小写 |
exempt-types |
[WITHER] |
不受护符影响的敌对生物类型 |
cancel-hostile-damage |
true |
阻挡投射物和爆炸伤害。从不阻挡近战伤害 |
require-permission |
false |
通过权限节点 nightward.use 限制使用 |
它不会做的事
当有人手持十字架站在附近时,刷怪场会停滞。这是功能生效的副作用,插件不会尝试检测刷怪场或规避此现象。可通过设置 enabled-worlds 排除特定世界来避免影响。
Wither(凋灵)默认被豁免。因为它可以在主世界中召唤,若对其进行防护则会消除战斗挑战。如需让 Wither 也受护符影响,请将 exempt-types 设为空列表。
源代码
NightWard 是基于 MIT 许可证的开源项目。
该仓库中的 README 文件是本文档的权威版本。Hangar 和 Modrinth 页面会与其保持同步。
NightWard
Hold a cross and hostile mobs keep away from you.
While a player holds the cross in either hand, hostile mobs stop targeting them. Any hostile that ends up within 8 blocks walks back out and stays there. Drop the cross and the mobs come for you again within half a second.
Requirements
|
|
| Minecraft |
1.21.4 through 26.2 |
| Java |
21 or newer |
| Server |
Paper, or a Paper fork |
Crafting
Five sticks in a plus shape.
[ ] [S] [ ]
[S] [S] [S]
[ ] [S] [ ]
Using a torch, or a lead, or anything else
The cross is the default, not the mechanism. Point the ward at any vanilla item:
amulet:
items:
- TORCH
Torches now ward and the cross does not. List several items to allow several.
Configuration
| Key |
Default |
Meaning |
amulet.items |
[nightward:cross] |
What wards. Accepts any vanilla item name |
amulet.base-item |
NETHER_STAR |
The vanilla item the cross is built on |
amulet.craftable |
true |
Register the crafting recipe |
radius |
8.0 |
How far the ward reaches, in blocks |
sweep-interval-ticks |
10 |
How often the sweep runs. 20 ticks is one second |
flee-speed |
1.2 |
Movement speed multiplier for retreating mobs |
enabled-worlds |
[] |
Empty means every overworld. Names are case-sensitive |
exempt-types |
[WITHER] |
Hostile types the ward ignores |
cancel-hostile-damage |
true |
Blocks projectiles and explosions. Never blocks melee |
require-permission |
false |
Gate the ward on nightward.use |
What it will not do
Mob farms stall while somebody holding a cross stands near them. This is a side effect of the feature working, and the plugin does not try to detect farms or work around it. Use enabled-worlds to leave a world out.
The Wither is exempt by default. It can be summoned in the overworld, and warding it would remove the fight. Empty exempt-types if you want it warded.
Source
NightWard is open source under the MIT licence.
The README in that repository is the canonical copy of this text. The Hangar and Modrinth pages are kept in step with it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧