无需侵入式的非预期实体解决方案!
有时,生物会随机拾取其他已死亡生物的战利品而无需玩家进行任何操作,从而变得无法自然消失。这些生物随后会在意想不到的地方堆积,玩家遇到它们或它们因环境因素死亡的概率微乎其微。这些持久存在的生物不计入生物上限(mobcap),并会继续累积,从而导致服务器卡顿;即使它们计入上限,也会极大地减少其他生物的生成。
本插件旨在解决此问题,无需强制清除任何内容、禁用任何机制或启用任何限制,而是通过检测这些生物并将其恢复为可自然消失的状态,使它们最终能够自然消失!
简单的配置允许你自定义插件行为:
- ticksLived - 生物被视为“存活时间过长”所需的刻数。
- logOnly - 仅在控制台输出关于这些生物的信息,而不采取任何行动。如果你只想分析情况,这非常有用。
- dropItems - 受影响的生物在消失时是否应掉落其所有装备,以减少玩家丢失有价值物品的可能性。
- ignoreTeams - 某些自定义生物可能使用队伍(teams)来使其自定义名称对玩家完全不可见。如果禁用此选项,插件将确保检查生物队伍标签的可见性选项。
- ignoredWorlds - 按名称列出的要跳过的世界列表。你可以轻松地从服务器根文件夹中获取这些信息,例如默认的
world 是主世界(Overworld),world_nether 是下界(The Nether),依此类推。这在特定情况下可能很有用,例如利用强化机制末地(The End)中的僵尸/溺尸农场。
- ignoredEntities - 要忽略的生物类型列表。完整类型列表可在此处找到
- ignoredSpawnReasons - 跳过任何具有此处列出原因的生成事件的生物。默认情况下包括:
- DEFAULT - 在结构内生成的生物,例如堡垒遗迹中的猪灵。
- CUSTOM - 由其他插件生成的生物。
- COMMAND - 主要由数据包生成的生物。
- SPAWNER_EGG - 顾名思义,以防万一 :)
完整的原因列表可在此处找到
出于设计考虑,所有非怪物、佩戴命名牌(name-tagged)的生物以及处于载具中的生物也会被跳过。
❗️ 本插件使用 Paper API,因此仅适用于 Paper(或其任何分支版本)!
Non-invasive solution for unwanted entities!
Sometimes mobs can randomly pick up loot from other dead mobs without any player actions and become persistent. Those mobs then can pile up in unexpected places with little to no chances of player encounter or environmental death. Persistent mobs are not counted towards mobcap and continue to accumulate thus contributing to lag, but even if they do count they would drastically reduce other mobs spawning.
This plugin aims to solve this issue without forcibly clearing anything, disabling any mechanics or enabling any restriction, but just by detecting those mobs and unpersisting them, so they will finally be able to naturally despawn!
Simple configuration allows you to customize plugin behavior:
- ticksLived - Amount of ticks after which mob is considered too long-lived.
- logOnly - Inform about mobs in console but do not take any actions. This is useful if you just want to analyze the situation.
- dropItems - Should affected mobs drop all their equipment upon despawning to reduce chances of losing something valuable for players.
- ignoreTeams - Some custom mobs may use teams to make their custom name completely invisible for players. If this option is disabled the plugin makes sure to check mob team tag visibility option.
- ignoredWorlds - List of worlds by name to skip. Those are easily obtained from your server root folder, for example default
world is Overworld, world_nether is well… The Nether, and so on. This may be useful for specific cases like zombies/drowned farm in The End utilizing reinforcement mechanic.
- ignoredEntities - List of mob types to ignore. Full list of types may be found here
- ignoredSpawnReasons - Skip any mob with any of reasons listed here. By default this includes:
- DEFAULT - Mobs generated within structures, such as Piglins in Bastions.
- CUSTOM - Mobs spawned by other plugins.
- COMMAND - Mobs spawned mostly by datapacks.
- SPAWNER_EGG - Self explanatory, just in case :)
Full list of reasons may be found here
All non-monsters, name-tagged mobs and mobs in vehicles are also skipped by design.
❗️ This plugin uses Paper API thus only works on Paper (or any of it's forks)!
评论 0
登录后参与评分
还没有评论,来抢沙发吧