This is a fork of justinwon777's HumanCompanions mod, for 1.20.1 Forge, with a few AI fixes and new quirks.
An AI is involved in the work.
- fixed leveled-up companions losing some health upon cross-dimension teleport or restarting the game.
- they should also be able to actively attack most modded hostile creatures in alert mode.
- tried to fix companions stuck attacking a mob it can't reach.
- companions teleports to owner if they're over
2432 blocks away regardless if they're still in a fight (so they'll be less likely to get lost if they did get stuck attacking anything.) - companions get damage absorption in proportion to food saturation. Before, they only recover health according to food hunger value, making rotten flesh the best food for them, which doesn't sit right with me so I buffed the better foods.
- companions no longer eat raw meat or food that may provide harmful effects (except rotten flesh, that's a special case cuz sometimes we all have to rely on those.)
- tamed companions can pick up food, ore, or anything they already have a copy in their backpack (gears they're equipping aren't counted), practically help collecting loot.
- tamed companions try to cook food on campfire when player sleeps to skip the night, if they have a campfire in their inventory, or if there is a lit campfire block nearby, so the hunting mode actually makes sense.
tried to add epicfight compatibilitythis might not actually work. I can't figure where epicfight datapatch goes it seems to change with each update. I tried okay x_x- limited Curio compat. need to manually enable in /saves/yourworld/serverconfig. you can edit slots with a datapack.
- backup your pets in /data under your save and added an op command to retrieve them. hover mouse above prompted uuid to see who's who.
I only tested this in my own local game so no guarantees on covering everything.
Known issue: companion appearence may change if you swap from the original mod to this. they changed the order of the skin list at some point I think, I used the sourcecode from github and it looks like it's different from the current 1.7.6 version. I didn't thouch that part.
shouldn't do anything weird on new saves but if it feels weird to have an old companion suddenly look different, you can use /data command to modify their "skin" value. male companions accept value 0-19 and female companions accept value 0-11.
Known issue 2: they still get stuck attacking something they can't reach, especially with non-cube blocks in the way. Seldomly, but it happens. Still working on that one.

