Better Horse Feeding
This functional mod solves the problem of inequality between the player and their mount in Minecraft. Now when you feed your horse a golden apple, it receives not only the standard benefits but also the full range of magical effects that are usually reserved only for the player character.
How it works technically:
The modification uses modern SpongePowered Mixins technology to interact directly with the game's Java bytecode. Within the AbstractHorse class (which serves as the foundation for all types of horses), there is a method responsible for processing the feeding process. The modification embeds itself at the beginning of this method and transfers all beneficial effects from the consumed food directly to the mount. The implementation is maximally simple and efficient, turning ordinary feeding into full-fledged healing action.