- Added new Ramming task, Damage does not stack like mining but can break blocks instantly. Damage stacks based off armor and amount of undead mobs crashing into the same block.
- somewhat improved the "score" for all tasks
- 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.
- Minor bugfix for dismount task [sometimes it would crash]
- 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.
- improved performance of multi targeting
- Added configuration for the new multi targeting feature (it is under misc)
- Improved the multi targeting feature (it should be more reliable now)
- If there are any bugs, please make an issue on it.
changelog:
- minor performance increase for all tasks. [like stacking, mining, etc.]
- revamped how sprint task works.
- added amplifier & duration options for sprint task
- added multi targeting
- fixed bug where undead mobs make sounds trying to break unbreakable blocks.
- 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.
- added more configuration for all features except mob types. These configurations can be seen using /undeadArmies dumpConfig
- fixed configuration loading empty strings as a configuration.
- changed config to config.txt and loot to loot.txt
- 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 undead mobs not trying to mine.
- fixed mobs being able to mine blocks from very long distances (in version 1.4.0, undead mobs can mine from 100+ blocks away, this was due to negligence)
- 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
- changed reducer to be easier to explain
- fixed jumping to be more reliable.
Added additional loot drops for mobs (configurable) sample use: (put this in undead_armies/loot)
{
item:{minecraft:green_wool}
quota:{1.0}
reducer:{0.5}
minimumPower:{2.0}
}
a new wiki page will be up in github.
- fixed bug in version 1.2.1 about checking if a undead mob was moving or not.
- made undead mobs look at their target before jumping
- 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.



