Better Horse Feeding

Better Horse Feeding

Mod

Better Horse Feeding makes Golden Apples apply their effects to horses, as they should!

Client and server FoodGame MechanicsTransportationUtility

122 downloads
1 follower
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

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!


Project members

jason13official

Member

Details

Licensed Unlicense
Published 3 months ago
Updated 3 months ago