NoMobLag 动态减少由实体刻(entity tick)引起的卡顿,其效果取决于当前的服务器 TPS。它可作为众多生物管理插件的一体化替代品,对于拥有多个玩家建造的、会导致服务器卡顿的刷怪农场的大型服务器而言极为实用。
config.yml# 配置说明文档和帮助可在 找到
# 仅供内部参考,请勿更改配置版本
config-version: 7
# 与服务器上全局生物生成相关的设置
mob-spawning:
# 在特定 TPS 下生成生物的概率(百分比)
# 切勿移除特定的 TPS 值,否则插件将失效
# 若要禁用此功能,只需将所有值设置为 "100"
spawn-chance-at-tps:
20: 100
19: 80
18: 65
17: 50
16: 35
15: 25
14: 15
13: 5
12: 3
11: 1
10: 0
9: 0
8: 0
7: 0
6: 0
5: 0
4: 0
3: 0
2: 0
1: 0
0: 0
# 超过指定玩家数量时生成生物的概率(百分比)。最终生成概率为该百分比与 "spawn-chance-at-tps" 相乘的结果
# 例如,使用默认配置时,如果 TPS 为 18(50%),玩家数量为 70 人(80%),则最终生物生成概率为 (50*80)/100 = 40%
# 你可以添加更多具体的玩家数量值,系统将使用最接近当前玩家数量的那个值
# 若要禁用此功能,只需将所有值设置为 "100"
spawn-chance-at-playercount:
# 50 名及以下玩家
50: 100
# 51 至 70 名玩家
51: 90
# 71 至 100 名玩家
71: 80
# 101 名及以上玩家
101: 75
# 来自以下 SpawnReason(生成原因)的生物将根据 "spawn-chance-at-tps" 和 "spawn-chance-at-playercount" 被阻止生成
# 完整的 SpawnReason 列表请参阅
# 建议使用此默认列表,因为这些生成原因通常对性能影响较大
spawnreason-tps-block:
- BREEDING
- CUSTOM
- DEFAULT
- DROWNED
- EGG
- NATURAL
- NETHER_PORTAL
- PATROL
- RAID
- REINFORCEMENTS
- SPAWNER
- VILLAGE_DEFENSE
- VILLAGE_INVASION
# 用于完全阻止某些对服务器性能极其有害的生物生成机制的其他设置
spawn-treshold:
# 这些设置仅在 TPS 低于此值时生效
# 若希望这些设置始终生效,请将其设置为 20
tps-treshold: 18
# 当 TPS 较低时,完全停止生物繁殖
disable-breeding: true
# 当 TPS 较低时,完全停止掠夺者袭击的发生
disable-raiding: true
# 用于在 TPS 较低时阻止生成大量生物的农场的设置
farms:
# 完全阻止刷怪笼农场
# 通常仅适用于允许通过如 SilkSpawners 等插件挖掘和移动刷怪笼的服务器
block-spawner-farm: true
# 阻止利用下界传送门生成机制在维度间运输大量猪灵或溺尸的农场
block-portal-farm: true
# 阻止猪灵增援机制以快速刷取额外猪灵
block-pigman-farm: true
# 阻止大型末地农场(使用末影螨激怒末影人使其落入 farming pit)
block-enderman-farm: true
# 与生物刷怪笼相关的设置
spawners:
# 是否启用刷怪笼限制
# 设置为 "false" 以恢复原版刷怪笼行为
enabled: true
# 生物刷怪笼之间的最小距离
# 此设置仅适用于安装 NoMobLag 后新放置的刷怪笼
# 将此值设置得过大可能导致在放置刷怪笼时产生卡顿,因为插件需要扫描大面积区域以查找现有刷怪笼
minimum-spawner-distance: 6
# 玩家距离刷怪笼的最大激活距离
activation-range: 8
# 每个刷怪笼每分钟最多生成的生物数量
max-mobs-per-minute: 10
# 从生物刷怪笼生成的生物在消失前的时间(秒)
# 设置为 -1 以禁用自动消失
mob-despawn-rate: 30
# 与实体交互和碰撞相关的设置
# 这些设置仅适用于安装 NoMobLag 后新生成的生物
mob-collisions:
# 是否完全禁用生物碰撞
# 注意:已知此功能会引入某些错误,例如生物无法乘坐船只,以及投射物有时无法击中生物
# 除非你确实需要仅为部分生物禁用碰撞选项,否则应改用 spigot.yml 中的 "max-entity-collisions"
#
disable-mob-collision: false
# 列表中的以下生物将始终保留碰撞物理效果
# 完整的 EntityType 列表请参阅
force-collision-mobs:
- VILLAGER
# 与生物冻结相关的设置
# 被冻结的生物将没有 AI,且在解冻前无法移动或进行交互
# 这能极大减轻服务器负载,因为服务器的生物寻路计算开销很大
mob-freezing:
# 是否启用生物冻结(禁用 AI)
# 设置为 false 将禁用配置的整个这部分
enable-freezing: true
# 生物生成 x 秒后将其冻结
# 最好保持此值非零,以防止普通生物农场完全失效
# 设置为 -1 以禁用自动冻结
disable-ai-after: 60
# 生物在受到伤害或交互时是否应解冻
# 强烈建议保持为 true,以防止许多原版功能失效
enable-ai-on-interact: true
# 区块再次加载时,生物是否在 "disable-ai-after" 秒内暂时解冻
# 同样强烈建议保持为 true,以使生物在刚加载的区块中看起来更“正常”
enable-ai-on-chunk-load: true
# 列表中的以下生物将永远不会被冻结
# 完整的 EntityType 列表请参阅
freeze-bypass-mobs:
- ENDER_DRAGON
- WITHER
- ELDER_GUARDIAN
# 具有下列元数据/NBT 标签的所有实体将永远无法恢复 AI
# 这对于与村民商店插件兼容非常有用(以防止它们移动)
no-ai-tags:
- "shopkeeper"
- "villagershop"
NoMobLag dynamically reduces lag from entity tick based on the current server TPS. It serves as an all-in-one replacement for many mob-management plugins, making it extremely useful for large servers with multiple player-built mob farms that lag the server.
config.yml# Config wiki and help can be found at
# For internal reference only, do not change the config version
config-version: 7
# Settings related to global mob spawning on the server
mob-spawning:
# Chance to spawn mobs (percentage) at a specific TPS
# Do NOT remove specific TPS values or the plugin will break
# To disable this feature, simply set all values to "100"
spawn-chance-at-tps:
20: 100
19: 80
18: 65
17: 50
16: 35
15: 25
14: 15
13: 5
12: 3
11: 1
10: 0
9: 0
8: 0
7: 0
6: 0
5: 0
4: 0
3: 0
2: 0
1: 0
0: 0
# Chance to spawn mobs (percentage) above a specified playercount. The final spawn chance is this percentage multiplied with "spawn-chance-at-tps"
# For example, with the default config if the TPS is 18 (50%) and the playercount is 70 players (80%), the final mob spawn chance will be (50*80)/100 = 40%
# You can add more specific playercount values and the one nearest to the current playercount will be used
# To disable this feature, simply set all values to "100"
spawn-chance-at-playercount:
# 50 players and below
50: 100
# 51 to 70 players
51: 90
# 71 to 100 players
71: 80
# 101 players and above
101: 75
# Mobs spawned from these SpawnReasons will be blocked based on "spawn-chance-at-tps" and "spawn-chance-at-playercount"
# A full list of SpawnReasons can be found at
# It is recommended to use this default list as these spawn reasons are usually the performance-heavy ones
spawnreason-tps-block:
- BREEDING
- CUSTOM
- DEFAULT
- DROWNED
- EGG
- NATURAL
- NETHER_PORTAL
- PATROL
- RAID
- REINFORCEMENTS
- SPAWNER
- VILLAGE_DEFENSE
- VILLAGE_INVASION
# Additional settings to COMPLETELY block certain mob-spawn mechanisms which are extremely bad for server performance
spawn-treshold:
# These settings will only be applied if TPS falls below this value
# If you want these settings to be applied all the time, set it to 20
tps-treshold: 18
# Completely stop mob breeding from taking place when TPS is low
disable-breeding: true
# Completely stop pillager raids from occuring when TPS is low
disable-raiding: true
# Settings to block farms which spawn large numbers of mobs when TPS is low
farms:
# Block mob spawner farms completely
# Usually only applicable to servers which allow spawner mining and relocation through plugins like SilkSpawners
block-spawner-farm: true
# Block farms which utilise the nether portal spawn-mechanic to transport large numbers of pigmen or drowned between dimensions
block-portal-farm: true
# Block the pigman-reinforcement mechanic to quickly farm for additional pigmen
block-pigman-farm: true
# Block large end farms which use endermite to aggro endermen to fall into a farming pit
block-enderman-farm: true
# Settings relating to mob spawners
spawners:
# Whether or not to enable the spawner limitations
# Set to "false" for vanilla spawner behaviour
enabled: true
# Minimum distance between mob spawners
# This setting only apply to newly-placed spawners after NoMobLag is installed
# Setting this to a large value may cause lag when spawners are placed as the plugin has to scan a large area for existing spawners
minimum-spawner-distance: 6
# Maximum distance a player can be away from the spawner for it to be activated
activation-range: 8
# Maximum number of mobs a spawner can spawn every minute
max-mobs-per-minute: 10
# Time in seconds before mobs spawned from mob spawners despawn
# Set this as -1 to disable automatic despawning
mob-despawn-rate: 30
# Settings related to entity interaction and collision
# These settings only apply to newly-spawned mobs after NoMobLag is installed
mob-collisions:
# Whether or not mob collisions should be completely disabled
# NOTE: This feature is known to introduce certain bugs like mobs not being able to ride boats and projectiles sometimes not hitting mobs
# Unless you REALLY need the option to only disable collision for some mobs, you should use "max-entity-collisions" from spigot.yml instead
#
disable-mob-collision: false
# The following mobs in the list will have collision physics no matter what
# A full list of EntityTypes can be found at
force-collision-mobs:
- VILLAGER
# Settings relating to mob-freezing
# Frozen mobs will have no AI and will not be able to move or interact until unfrozen
# This immensely reduces load on the server as mob pathfinding can be expensive to calculate by the server
mob-freezing:
# Whether or not to enable mob-freezing (disable AI)
# Setting this to false will disable this entire part of the config
enable-freezing: true
# Freeze a mob after it has been spawned for x seconds
# It is best to keep this value nonzero to prevent normal mob farms from breaking completely
# Set this as -1 to disable automatic freezing
disable-ai-after: 60
# Whether or not mobs should be unfrozen when damaged or interacted upon
# It is highly recommended to keep this true to prevent many vanilla features from breaking
enable-ai-on-interact: true
# Whether or not mobs should be unfrozen temporarily until "disable-ai-after" seconds when a chunk is loaded again
# It is also strongly advisable to keep this true to make mobs look more "normal" in freshly loaded chunks
enable-ai-on-chunk-load: true
# The following mobs in the list will not be frozen no matter what
# A full list of EntityTypes can be found at
freeze-bypass-mobs:
- ENDER_DRAGON
- WITHER
- ELDER_GUARDIAN
# All entities with the following metadata/NBT tags will never regain AI
# This can be useful for compatibility with villager shop plugins (to prevent them from moving)
no-ai-tags:
- "shopkeeper"
- "villagershop"
评论 0
登录后参与评分
还没有评论,来抢沙发吧