Compatibility
Minecraft: Java Edition
1.21.2–1.21.5
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Licensed MIT
Published last month
Updated last month
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!