This datapack aims to recreate Skeleton Horse Trap and add a brand new Horse Trap called "Zombie Horse Trap" in vanilla minecraft. It supports minecraft versions 1.16.2 to 1.21.8.
This datapack modifies 2 things in the game.
Make sure "Poison Undead Horses upon leader's death" is disabled. See admin commands to understand how to disable it. Once you disable it, undead horses will no longer be poisoned upon their leader's death and you are free to tame them. To tame an undead horse, player has to feed it with a Golden Apple. Enchanted Golden Apple also works in this case. Once you feed the horse enough, it will be tamed. If you currently do not have any Golden Apple, you can use the lead from Horseman's death loot, to take the horse to your home.
Another context about this, if the player loses the fight and dies to the horsemen, then the horsemen will despawn and player will lose their chance to have an Undead Horse as their pet, unless, there are more players nearby.
/function summon:horse_traps/trapSummons Horse with Hidden Trap
/function summon:horse_traps/skeleton_horseSummons a Skeleton Horse
/function summon:horse_traps/zombie_horseSummons a Zombie Horse
/function summon:horse_traps/skeleton_horsemenSummons 4-6 Skeleton Horsemen
/function summon:horse_traps/zombie_horsemenSummons 4-6 Zombie Horsemen
/function toggles:horse_trapsUsing this you can toggle some features. They are:
/function uninstall:horse_trapsUninstall the datapack removing all datapack related features.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Conditions that apply:
Open your .minecraft directory. Put the datapack into the saves/world_name/datapacks directory.

Adds the new zombie horse trap and recreates skeleton horse trap.