VexMechanic
适用于 Paper 1.21.11 (Java 21+) 的插件:漫长的黑夜、幽匿鬼仅在荒野生成,以及恐惧护身符。
关于该插件
VexMechanic 让夜晚变得漫长且真正危险。幽匿鬼现在会自行生成——但仅限于荒野和黑暗中。它们会猎杀玩家,无法穿过墙壁,并在黎明时分燃烧。灯光、墙壁、床铺以及恐惧护身符将助你生存。
插件功能
昼夜交替
白天持续 20 分钟,夜晚持续 1 小时(真实时间,均可配置)。
插件自行管理游戏时间。你可以在床中入睡——睡眠会立即跳过夜晚。时间流逝平滑,不会出现天空跳变。
幽匿鬼
过去幽匿鬼只能在召唤者附近遭遇——现在它们会在夜间自行生成。它们仅在荒野生成:附近不能有玩家建筑(在玩家放置的任何方块 48 格半径内)以及没有“非自然”方块(木板、圆石、玻璃、火把、工作台、箱子、村庄、矿洞等)。它们不会出现在房屋、基地或村庄附近,但在深森林中则很容易生成。它们仅在黑暗中生成:只要有来自方块的亮光(火把、灯笼、熔岩)——就不会生成。它们不会在距离玩家 24 格以内生成,且每个玩家周围不超过 8 只。它们会猎杀玩家:锁定目标并追击。
它们无法穿过墙壁
插件禁用了原版幽匿鬼的“冲刺”能力(即穿越方块的能力),并移除了实体的 noPhysics 标签。每一刻都会检查幽匿鬼:如果它处于方块内部——它会回到上一个安全位置。如果幽匿鬼卡在墙里超过 10 秒——它会化作烟雾消失。
恐惧护身符
获取物品:/vexmechanic give (或 /vexmechanic give Nick)。
一个普通头颅(头颅 ID: 3109),名为 "Талисман страха"(恐惧护身符)。
将头颅放置在两根栅栏柱上(栅栏高 2 格,任意种类)——护身符便会“活化”:纹理变为头颅 ID: 3108,上方出现光方块,在 20 格半径内不会生成幽匿鬼或敌对生物,幽匿鬼畏惧护身符,不会攻击此区域内的玩家。护身符不会被爆炸或活塞破坏。
取回头颅(打破它)——纹理恢复为正常状态(3109),力量消失,直到再次放置在两根栅栏上。
如何生存于幽匿鬼之下
- 光线。火把、灯笼、营火、熔岩——有方块光源的地方,幽匿鬼不会生成。
- 墙壁。幽匿鬼无法穿过门或墙壁:房屋是可靠的庇护所。
- 恐惧护身符。20 格半径的安全区,幽匿鬼不会生成且不敢飞近。
- 床。睡觉——夜晚立即结束。
- 熬过黎明。日出时幽匿鬼着火并死亡。
安装方法
- 将 VexMechanic-1.0.0.jar 放入 plugins/ 文件夹。
- 重启服务器(需要 Paper 1.21.11 和 Java 21+)。
- 配置 plugins/VexMechanic/config.yml —— 其中所有注释均为俄语。
命令
/vexmechanic reload — 重载配置
/vexmechanic give [nick] — 给予恐惧护身符
/vexmechanic spawn [n] — 手动生成幽匿鬼(用于测试)
/vexmechanic talismans — 列出活跃的护身符
/vexmechanic purge — 移除所有幽匿鬼
/vexmechanic info — 插件状态(时间、阶段、计数器)
/vexmechanic selftest — 测试护身符运作情况
权限:
vexmechanic.admin — 默认操作员
vexmechanic.bypass.build — 玩家建筑不保护领地
config.yml 设置
day-night:
day-minutes: 20 # 白天持续时间
night-minutes: 60 # 夜晚持续时间
allow-sleep-skip: true # 睡眠跳过夜晚
vex:
spawn:
max-block-light: 0 # 0 = 不在光亮处生成(火把提供保护)
max-per-world: 40
behavior:
prevent-wall-phasing: true # 不穿过墙壁
daylight-burn: true # 黎明时燃烧
process-worlds-without-players: false
wilderness:
build-protection-radius: 48 # 玩家建筑周围的保护半径
unnatural-scan:
enabled: true # 不在“非自然”方块附近生成
talisman:
radius: 20 # 安全区半径
required-fences: 2 # 需要的栅栏数量
block-hostile-spawns: true # 敌对生物不在区域内生成
通过其他插件合成
护身符物品通过头颅纹理、名称或 lore 行 "Head ID: 3109" 来识别。在合成插件中,只需给予相同的头颅即可:
/give @p minecraft:player_head[minecraft:custom_name={text:"Талисман страха",color:"gold",underlined:true,bold:true,italic:false},minecraft:lore=[{text:"Head ID: 3109",color:"gray",italic:false},{text:"mcheads.ru",color:"blue",italic:false}],profile={properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjgyMjAyODJmMmVlNTk5NTExYjRmYzc0NjExMWM5NzM2ZDdiNDkxZThiY2ZiNjQ4YThhMTU2MjkyODFlZTUifX19"}]}] 1
如果合成插件只能设置其自己的模型(ItemsAdder、MMOItems 等),请在配置中启用 talisman.identify.by-name / by-lore —— 那么名称 "Талисман страха" 或 lore 中的行 "Head ID: 3109" 就足够了。
兼容性
服务器: Paper 1.21.11
Java: 21+
Minecraft: 1.21.x
VexMechanic
Plugin for Paper 1.21.11 (Java 21+): long nights, Vexes only in the wilderness, and the Talisman of Fear.
ABOUT THE PLUGIN
VexMechanic makes nights long and truly dangerous. Vexes now spawn on their own — but only in the wilderness and only in the dark. They hunt players, cannot pass through walls, and burn at dawn. Light, walls, a bed, and the Talisman of Fear will help you survive.
WHAT THE PLUGIN DOES
DAY AND NIGHT
Day lasts 20 minutes, night lasts 1 hour (real time, all configurable).
The plugin manages game time itself. You can sleep through the night in a bed — sleeping immediately skips to morning. Time moves smoothly, without sky jumps.
VEXES
Previously Vexes could only be encountered near an Evoker — now they spawn on their own at night. They only spawn in the wilderness: there must be no player buildings nearby (within a 48-block radius of any block placed by a player) and no "unnatural" blocks (planks, cobblestone, glass, torches, crafting tables, chests, villages, mines, etc.). They won't appear near a house, base, or village, but in a deep forest — easily. They only spawn in darkness: where there is light from blocks (torch, lantern, lava) — no spawning will occur. They don't spawn closer than 24 blocks to a player and no more than 8 near one player. They hunt players: they find a target and pursue it.
THEY DON'T PASS THROUGH WALLS
The plugin disables the vanilla Vex "dash" (the very thing that lets it fly through blocks) and removes the noPhysics flag from the entity. Every tick the Vex is checked: if it ends up inside a block — it is returned to the last safe position. If a Vex gets stuck in a wall for 10 seconds — it disappears with a puff of smoke.
TALISMAN OF FEAR
Obtain the item: /vexmechanic give (or /vexmechanic give Nick).
A regular head (Head ID: 3109) with the name "Талисман страха".
Place the head on a pillar of 2 fences (2 fences high, any kind) — the talisman "comes alive": changes texture to Head ID: 3108, a light block appears above it, within a 20-block radius no Vexes or hostile mobs spawn, Vexes fear the talisman and do not target players in this zone. The talisman is not destroyed by explosions or pistons.
Take the head back (break it) — the texture returns to normal (3109), the power disappears until the next placement on 2 fences.
HOW TO SURVIVE VEXES
- Light. Torches, lanterns, campfires, lava — where there is light from blocks, Vexes don't spawn.
- Walls. A Vex cannot pass through doors or walls: a house is a reliable shelter.
- Talisman of Fear. A 20-block zone where Vexes don't spawn and are afraid to fly near.
- Bed. Sleep — and the night ends immediately.
- Wait out the dawn. At sunrise Vexes catch fire and die.
INSTALLATION
- Put VexMechanic-1.0.0.jar into the plugins/ folder.
- Restart the server (requires Paper 1.21.11 and Java 21+).
- Configure plugins/VexMechanic/config.yml — it has Russian comments for everything.
COMMANDS
/vexmechanic reload — reload the config
/vexmechanic give [nick] — give the Talisman of Fear
/vexmechanic spawn [n] — manually spawn Vexes (for testing)
/vexmechanic talismans — list active talismans
/vexmechanic purge — remove all Vexes
/vexmechanic info — plugin state (time, phase, counters)
/vexmechanic selftest — test the talisman's operation
Permissions:
vexmechanic.admin — operator by default
vexmechanic.bypass.build — player buildings don't protect the territory
CONFIG.YML SETTINGS
day-night:
day-minutes: 20 # day duration
night-minutes: 60 # night duration
allow-sleep-skip: true # sleep skips the night
vex:
spawn:
max-block-light: 0 # 0 = don't spawn in light (torches protect)
max-per-world: 40
behavior:
prevent-wall-phasing: true # don't pass through walls
daylight-burn: true # burn at dawn
process-worlds-without-players: false
wilderness:
build-protection-radius: 48 # protection radius around player buildings
unnatural-scan:
enabled: true # don't spawn near "unnatural" blocks
talisman:
radius: 20 # safe zone radius
required-fences: 2 # how many fences are needed
block-hostile-spawns: true # hostile mobs don't spawn in the zone
CRAFTING VIA ANOTHER PLUGIN
The talisman item is recognized by head texture, name, or the lore line
"Head ID: 3109". In a crafting plugin it's enough to give the same head:
/give @p minecraft:player_head[minecraft:custom_name={text:"Талисман страха",color:"gold",underlined:true,bold:true,italic:false},minecraft:lore=[{text:"Head ID: 3109",color:"gray",italic:false},{text:"mcheads.ru",color:"blue",italic:false}],profile={properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjgyMjAyODJmMmVlNTk5NTExYjRmYzc0NjExMWM5NzM2ZDdiNDkxZThiY2ZiNjQ4YThhMTU2MjkyODFlZTUifX19"}]}] 1
If the crafting plugin can only set its own model (ItemsAdder, MMOItems,
etc.), enable talisman.identify.by-name / by-lore in the config — then
the name "Талисман страха" or the line "Head ID: 3109" in the lore is enough.
COMPATIBILITY
Server: Paper 1.21.11
Java: 21+
Minecraft: 1.21.x
评论 0
登录后参与评分
还没有评论,来抢沙发吧