Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
这个模组让你可以通过游戏内可视化 GUI 简单轻松地让生物释放法术。
关于生物是否会施法: 当出现以下任一情况时,生物不施法;否则施法: 1.生物没有目标; 2.仇恨对象不在施法距离(最小)和(最大)区间内; 3.生物血量不在施法规定血量区间内; 4.法术冷却中(含施法失败后的 4 秒黑名单); 5.生物处于施法空隙中; 6.生物法力值小于法术需求法力值; 7.攻击和控制类法术还要求生物能看见仇恨对象。 以上条件针对单个法术生效:某个法术不满足条件时,只是该法术不参与抽取,其余符合条件的法术照常抽取。
关于生物如何施法: 生物按"施法决策时间"(默认 0.5 秒)去抽取配置的法术,抽取法术的概率由权重和部分内容加权决定。 权重即概率:概率 = 单法术权重 ÷(所有法术权重之和)× 100%。 法术有 5 种加权配置:"攻击"、"防御"、"位移"、"控制"、"召唤"。
攻击 当生物和仇恨对象距离 > "偏好最远距离"时,权重 × 1.5。 当生物血量 < 怂蛋值(生命百分比)时,权重 × 0.55。
防御 当生物血量 < 怂蛋值,权重 × 3.5。 当怂蛋值 < 生物血量 < 0.85(百分比),权重 × 1.2。 当生物血量 > 0.85,权重 × 0.3。
控制 若仇恨目标已经被控制,权重 × 0.4;否则 × 1.4。 当生物血量 < 怂蛋值,权重 × 1.6。
位移 当生物和仇恨目标距离 < "偏好最近距离"时,权重 × 2.5。 当生物和仇恨目标距离 > "偏好最远距离" × 1.6 时,权重 × 1.6。 当"偏好最近距离" < 生物和仇恨目标距离 < "偏好最远距离" × 1.6,权重 × 0.5。 当生物血量 < 怂蛋值,权重 × 1.5。
召唤 无条件,权重 × 1.4。
当生物已经释放法术时,下一轮该法术权重额外 × 0.35。
This mod lets you make mobs cast spells easily through an in-game visual GUI.
Whether a mob casts
A mob does not cast a spell when any of the following applies; otherwise it casts:
The mob has no target; The target is not within the spell's min and max cast range; The mob's health is not within the spell's required health range; The spell is on cooldown (including the 4-second blacklist after a failed cast); The mob is in its cast gap; The mob's mana is lower than the spell's mana cost; Attack and control spells also require the mob to have line of sight to its target.
These conditions apply per spell: if a spell fails a condition, only that spell is excluded from the draw, while other eligible spells are still drawn normally.
How a mob casts
The mob draws from its configured spells every "Cast Decision" interval (default 0.5 seconds). The chance to draw a spell is decided by its weight with the modifiers below.
Weight is probability: chance = single spell weight / (sum of all spell weights) × 100%.
Spells have 5 weight roles: Attack, Defense, Mobility, Control, Summon.
Attack
If distance to target > "Preferred Max Range": weight × 1.5. If mob health < Panic Health (health percentage): weight × 0.55.
Defense
If mob health < Panic Health: weight × 3.5. If Panic Health < mob health < 0.85 (percentage): weight × 1.2. If mob health > 0.85: weight × 0.3.
Control
If the target is already controlled: weight × 0.4; otherwise × 1.4. If mob health < Panic Health: weight × 1.6.
Mobility
If distance to target < "Preferred Min Range": weight × 2.5. If distance to target > "Preferred Max Range" × 1.6: weight × 1.6. If "Preferred Min Range" < distance to target < "Preferred Max Range" × 1.6: weight × 0.5. If mob health < Panic Health: weight × 1.5.
Summon
No condition; weight × 1.4.
After a mob has cast a spell, that spell's weight is multiplied by an extra 0.35 in the next draw.
![[VIME]Visual Iron's Mobs Edit](https://cdn.modrinth.com/data/yn02kgbJ/07562bd8869e4569d106bd3cc39de4fa5d6f700a.jpeg)

