- Changed all "enable" configs into a "enableChance" to completely disable a task just set the "enableChance" to 0, values between 0 to 1 correspond to how likely an undead mob to be able to do that task.
- Made all tasks have a "score" corresponding to the situation the undead mob is in. From this version onwards undead mobs will choose the best task according to the situation it's in.
- Fixed a bug in the mining task (it was a typo)
- Removed DismountTask's "enableChance" now it's tied with stack task (if stack task is enabled then dismount task will be as well and if stack task is disabled then dismount task will be as well.)
- Grouped all tasks into 3 categories "pursue" (tasks with it's main purpose being just getting to the target), "kill" (tasks with it's main purpose just making the target die faster), "eradicate" (basically kill but when there are multiple targets)
Note:
- Point 2 on the changelog (the one about "score") doesn't work well for all situations (ironic i know).
- Changed the logic behind mining, the mining task is more efficient now but the undead mobs are slightly worse at breaking blocks than before (it would seem like). I will try to fix this later.
- Added new setting called "unbreakable" which makes the mobs ignore blocks with block hp above a certain number
- Added a way to set custom block hp for each block (Wiki page will be added after proper release but for now here is an example for setting all chests and dirt to have a block hp of 100:
{
{{minecraft:chest}{100}}
{{minecraft:dirt}{100}}
}
- Made all configs generate when the config.txt file doesn't exist (feature request from this)
Sidenote
next update is about fixing zombies breaking or mining blocks.
- Revamped multi targeting, now it shouldnt crash [was tested with 400 undead mobs vs 20 iron golems]
- Added Wither skeleton, Skeleton, Bogged, And Stray to be affected by this mod [i forgot to do that in the previous versions]
- Made this mod more compatible with other mods that for some reason allows undead mobs to become friendly to certain targets.
- Split mod into Configurable Drops & Types And Variants
- This was done so that Undead armies can be more into ai improvements.
- Also this split makes backporting to 1.20.1 and lower easier.
- Fixed undead mobs dismounting after stacking passing through walls (they used to be able to do that!)
- Fixed undead mobs from trying to jump 24/7 (before this version, undead mobs will try to jump 24/7 and it looked kind of weird, so it was removed. Undead mobs will jump when it is absolutely necessary)
- Additional check for undead mobs jumping. (in previous versions, if you were to put a wall, seperating the target and the undead mob, it would have had tried to jump to the target.)
- Fixed config not being loaded properly (undead mobs were loaded in first before the configs could be updated causing this bug.)
- Fixed task selector from looping on a single task causing crashes
- Fixed Incorrect task selection.
- Added 2 new mob types: Giant 4x Hp, 1.5x scale, 2x damage, 1.5x speed. And Engineer: 2x breaking speed. (can be disabled in config)
- Changed Stacking, Mining, And Dismounting. (Stacking and mining used a different system before this now it uses the same system as sprinting, jumping, etc. Dismounting is now an actual task.)
- changed power formula for additional mob drops from: (attack damage + 3) * (hp + armor point^2) * sqrt(movement speed on land + movement efficiency) / 160 to (attack damage + 3) * (hp + armor point^2) * sqrt(movement speed on land + movement efficiency) / 120
- added ability to enable or disable features or tasks through config
- added ability for undead mobs to jump 2 block gaps.
- removed undead mobs slowdown after sprinting. (the undead mobs will start sprinting when its too far or close to the target
- improved performance of stacking. (it now uses less memory to calculate where to dismount after stacking)
- DISCLAIMER: This beta version made undead mobs quite difficult and unbalanced.