RideAnything
Ride any animal in the game without commands!

The Code
This mod's entire functionality is in 5 lines of code:
if (entity instanceof AnimalEntity &&
player.getMainHandStack().isEmpty()) {
if (player.startRiding(entity)) {
return ActionResult.SUCCESS;
}
}
That's it!
Any mob in Minecraft that is an AnimalEntity
can now be ridden by right clicking with an empty hand.
This includes basically every animal in the game, including some hostile ones, like hoglins. Good luck!
Links
Details
Licensed MIT
Published 4 months ago
Updated a month ago