Compatibility
Minecraft: Java Edition
1.21.2–1.21.10
Platforms
Supported environments
Links
Creators
Details
Licensed MIT
Published 6 months ago
Updated 3 months ago
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!


