Compatibility
Minecraft: Java Edition
1.21.1
1.20.1
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Better Horse Feeding makes Golden Apples apply their effects to horses when fed to a horse by a player.
Technical Information: This mod works by using SpongePowered Mixins to inject into the Java bytecode of Minecraft. Within the AbstractHorse class (used as the base for the main Horse entity type) there is a method with a mapped name of "handleEating", which has two parameters; one for the Player feeding the horse, another for the ItemStack being fed to the horse. BHF injects into the "head" of this method, applying the effects (if any) from the food being fed to the horse. It's that simple!