怪物属性缩放
这是一个服务端模组,允许对生命值、伤害和速度等属性进行缩放。你可以通过配置文件对其进行设置,并选择属性在哪些天数生效/激活。
功能包括:按怪物种类和维度过滤、根据经过的天数、月相、距离出生点的距离、海平面下的深度进行缩放。你可以选择线性缩放、指数缩放或直接应用固定值。你还可以配置其生效时间,例如仅在夜间或每 7 天一次。
以下是 scalingmobs.toml 文件中可找到的配置选项列表,该文件位于配置目录中。
| 名称 |
值 |
描述 |
| start |
Float (默认 0) |
缩放的起始值 |
| max |
Float (默认 MAX_FLOAT) |
缩放能达到的最大值 |
| min |
Float (默认 0) |
缩放能达到的最小值 |
| scalingFactor |
"DAYS","DISTANCE_FROM_SPAWN","LUNAR_PHASE","DEPTH","HEIGHT" (默认 "DAYS") |
如果按 "DAYS"(天数)缩放,它每天都会增加一次缩放因子/变量。"DISTANCE_FROM_SPAWN"(距离出生点)会根据怪物生成位置相对于 (0, 0) 的方块数量进行缩放。(由于很难掌握准确数值,建议借助图形计算器辅助计算) |
| scalingType |
"LINEAR","EXPONENTIAL","CONSTANT" (默认 "LINEAR") |
是进行线性缩放还是指数缩放 |
| increaseFactor |
Float (默认 1.1) |
如果 scalingType 为 linear(线性),最终值大约可通过 (start + scalingFactor * increaseFactor) 计算得出。如果为 exponential(指数),则通过 (start * increaseFactor ^ scalingFactor) 计算。如果为 constant(常数),则为 (increaseFactor)。 |
| startingFrom |
Integer (默认 0) |
确定缩放修饰符何时开始并应用,具体取决于 scalingFactor。 |
| activeNth |
Integer (默认 1) |
一个数字 3 表示属性将每隔 3 个 scalingFactor 的值应用一次。若要应用缩放,此数字应为 1。(请勿将其设为 0,否则会导致游戏崩溃。) |
| timeWhenActive |
"DAY","NIGHT","BOTH" (默认 "NIGHT") |
确定修饰符应在何时生效。如果设置为 "DAY",则仅会在白天应用。 |
| mobFilterType/dimensionFilterType |
"INCLUDE","EXCLUDE" (默认 "EXCLUDE") |
确定过滤器应包含还是排除其各自类别中的项目。 |
| mobFilter/dimensionFilter |
String List (默认空) |
过滤器应包含的内容,例如 ["minecraft:wither", "minecraft:zombie"] |
# 这是一个示例配置。每个注释描述了其下方的
# 设置/修饰符的作用
# 如果将此变量设置为 true,所有生命值修饰符都会叠加在原版/默认
# 属性之上
healthAddOnTopOfDefault = true
# 所有伤害和速度修饰符将从 0 开始应用,不包含
# 原版属性
damageAddOnTopOfDefault = false
speedAddOnTopOfDefault = false
# 未设置 "timeWhenActive" 的修饰符仅在
# 夜间生效,因为该变量的默认值为 "NIGHT"
# 并且是隐式设置的。
# 对于 Y=63 以下的每个方块,怪物的生命值会指数增长
# 此生命值修饰符遵循以下公式:
# health = start * (increaseFactor ^ blocksBelowSeaLevel)
# health = 1 * (1.04 ^ blocksBelowSeaLevel)
# 别忘了这个生命值会加到怪物的默认
# 伤害属性上,因为我们已将 "healthAddOnTopOfDefault" 变量设置为 true
[[health]]
start = 1
scalingFactor = "DEPTH"
scalingType = "EXPONENTIAL"
increaseFactor = 1.04
# https://minecraft.fandom.com/wiki/Moon
# 新月时缩放为 0,满月时为 4
# 你可能希望将此限制在主世界(overworld)中
# 因为下界(nether)和末地(end)维度中实际上没有月亮
[[speed]]
dimensionFilterType = "INCLUDE"
dimensionFilter = [ "minecraft:overworld" ]
start = 0.15
scalingFactor = "LUNAR_PHASE"
scalingType = "LINEAR"
increaseFactor = 0.05
# 如下所示,一个属性可以拥有任意数量的不同
# 缩放修饰符,这里伤害值既受天数影响
# 也受怪物距出生点的距离影响
# 每天怪物从 3 点伤害开始额外增加 +0.5 点伤害。
# 此缩放最多仅使怪物额外造成 10 点伤害。
# 该缩放仅在每隔一天激活,即第 1、3、5 天……
# 此伤害修饰符遵循以下公式:
# damage = start + daysPassed * increaseFactor
# damage = 3.0 + daysPassed * 0.5
[[damage]]
activeNth = 2
start = 3.0
max = 10.0
scalingFactor = "DAYS"
scalingType = "LINEAR"
increaseFactor = 0.5
# 超出距出生点(X=0, Z=0)500 格的范围后,怪物无论白天还是夜晚都额外造成 10 点伤害
[[damage]]
scalingFactor = "DISTANCE_FROM_SPAWN"
scalingType = "CONSTANT"
increaseFactor = 10
startingFrom = 500
timeWhenActive = "BOTH"
# 使僵尸和苦力怕移动得非常快,任何高于 0.7 的值都
# 快得离谱
[[speed]]
mobFilterType = "INCLUDE"
mobFilter = [ "minecraft:zombie", "minecraft:creeper" ]
scalingType = "CONSTANT"
increaseFactor = 0.4
timeWhenActive = "BOTH"
# 使怪物在所有维度(除主世界外)保持静止。
# 由于 scalingFactor 和 activeNth 默认分别为 "DAYS" 和 1,因此这将
# 始终处于激活状态
[[speed]]
dimensionFilterType = "EXCLUDE"
dimensionFilter = [ "minecraft:overworld" ]
scalingType = "CONSTANT"
increaseFactor = 0
timeWhenActive = "BOTH" # 此值可以是 "DAY" 或 "NIGHT"。默认为 "NIGHT"
Scaling Mobs
This is a server side mod that allows for scaling of the attributes health, damage and speed. You can configure it through a file and choose on what days the attributes should be applied/active.
Features include, filtering by mobs and dimensions, scaling by days passed, moon cycle, distance from spawn, distance under sea level. You can scale linearly, exponentially or just apply a constant. You also configure when it is active, for example only at nights or every 7 days.
Here's a list of the configuration options that can be found in the scalingmobs.toml file within the configuration directory.
| Name |
Value |
Description |
| start |
Float (default 0) |
The start value of scaling |
| max |
Float (default MAX_FLOAT) |
The maximum value it can scale to |
| min |
Float (default 0) |
The minimum value it can scale to |
| scalingFactor |
"DAYS","DISTANCE_FROM_SPAWN","LUNAR_PHASE","DEPTH","HEIGHT" (default "DAYS") |
If scaling by "DAYS" it will increase the scaling factor/variable once per day. "DISTANCE_FROM_SPAWN" will scale by blocks from (0, 0) of where the mob spawned. (Useful to pull out a graphing calculator since it's hard to get right) |
| scalingType |
"LINEAR","EXPONENTIAL","CONSTANT" (default "LINEAR") |
Should it scale linearly or exponentially |
| increaseFactor |
Float (default 1.1) |
If scalingType is linear you can calculate final value approcimately by (start + scalingFactor * increaseFactor). If exponential then (start * increaseFactor ^ scalingFactor). If constant (increaseFactor) |
| startingFrom |
Integer (default 0) |
Determines when the scaling modifier start and is applied depending on the scalingFactor |
| activeNth |
Integer (default 1) |
A number of 3 means that the attributes will be applied every 3rd value of the scalingFactor. For scaling to be applied this number should be 1. (Do not put it to 0, that will crash the game.) |
| timeWhenActive |
"DAY","NIGHT","BOTH" (default "NIGHT") |
Determines when the modifier should be active, If "DAY" then it will only be applied at day time. |
| mobFilterType/dimensionFilterType |
"INCLUDE","EXCLUDE" (default "EXCLUDE") |
Determines if the filters should include or exlude for their respective category. |
| mobFilter/dimensionFilter |
String List (default empty) |
What shoud the filter contain e.g ["minecraft:wither", "minecraft:zombie"] |
# This is a example config. Each comment describes what the
# setting/modifier under it does
# All health modifiers get applied on top of vanilla/default
# attributes if this variable is set to true
healthAddOnTopOfDefault = true
# All damage and speed modifiers will be applied from 0, without the
# vanilla attributes
damageAddOnTopOfDefault = false
speedAddOnTopOfDefault = false
# Modifiers where "timeWhenActive" isn't set are only
# active at night because that variables default value is "NIGHT"
# and is set implicitly.
# For every block below Y=63 mobs gain hearts exponentially
# This health modifier follows the formula:
# health = start * (increaseFactor ^ blocksBelowSeaLevel)
# health = 1 * (1.04 ^ blocksBelowSeaLevel)
# Don't forget that this health is added to the mobs default
# damage attribute because we set the "healthAddOnTopOfDefault" variable to true
[[health]]
start = 1
scalingFactor = "DEPTH"
scalingType = "EXPONENTIAL"
increaseFactor = 1.04
# https://minecraft.fandom.com/wiki/Moon
# At new moon the scaling is 0, at full moon it's 4
# You probably want to limit this to the overworld
# since there no actual moon in the nether or end dimension
[[speed]]
dimensionFilterType = "INCLUDE"
dimensionFilter = [ "minecraft:overworld" ]
start = 0.15
scalingFactor = "LUNAR_PHASE"
scalingType = "LINEAR"
increaseFactor = 0.05
# As you can see below one attribute can have as many different
# scaling modifiers as you want, here damage is both changed
# by days passed and the mobs distance from spawn
# Everyday mobs do +0.5 more damage starting from 3 damage.
# This scaling will at most only make mobs do 10 extra damage.
# The scaling is only active every other day i.e day 1,3,5...
# This damage modifier follows the formula:
# damage = start + daysPassed * increaseFactor
# damage = 3.0 + daysPassed * 0.5
[[damage]]
activeNth = 2
start = 3.0
max = 10.0
scalingFactor = "DAYS"
scalingType = "LINEAR"
increaseFactor = 0.5
# Beyond 500 blocks from spawn (X=0, Z=0) mobs do 10 extra damage
# both day and night
[[damage]]
scalingFactor = "DISTANCE_FROM_SPAWN"
scalingType = "CONSTANT"
increaseFactor = 10
startingFrom = 500
timeWhenActive = "BOTH"
# Makes zombies and creepers move quite fast, anything above 0.7 is
# ridiculously fast
[[speed]]
mobFilterType = "INCLUDE"
mobFilter = [ "minecraft:zombie", "minecraft:creeper" ]
scalingType = "CONSTANT"
increaseFactor = 0.4
timeWhenActive = "BOTH"
# Makes mobs stand still in all dimensions except for the overworld.
# Since scalingFactor and activeNth default to "DAYS" and 1 this will
# always be active
[[speed]]
dimensionFilterType = "EXCLUDE"
dimensionFilter = [ "minecraft:overworld" ]
scalingType = "CONSTANT"
increaseFactor = 0
timeWhenActive = "BOTH" # This value can be "DAY" or "NIGHT". "NIGHT" is default
评论 0
登录后参与评分
还没有评论,来抢沙发吧