The Humans Mod introduces a major improvement to entity movement with the addition of realistic swimming and ladder climbing mechanics. These features bring life-like behavior and smoother animation transitions to humanoid NPCs, making them feel more natural and immersive in the Minecraft world.
๐ Smart Swimming Animation
The swimming system now detects when an entity is partially or fully submerged in water. Once the condition is met:
-
The entity automatically switches to a swimming animation, either "treading water" or "active swim" depending on its movement speed.
-
The animation is layered using GeckoLib, ensuring seamless integration with body and eye animations.
-
As soon as the entity touches the ground, the swimming animation is instantly canceled, allowing a natural transition back to idle or walking.
This behavior mimics how players interact with water and adds depth to environments involving rivers, lakes, or underwater areas.
๐ช Intelligent Ladder Climbing
The ladder climbing feature lets entities interact with vertical ladders intelligently. When near a ladder:
-
The entity detects whether it should climb up or down, based on the path direction.
-
If the top of the ladder is reached and no ladder exists above, the entity performs a short jump forward, simulating how players climb off the final rung.
-
A special climbing animation is activated to visually represent the ascent.
The mod also dynamically handles gravity while on ladders, allowing for smooth upward or downward motion without abrupt stops or glitches.
⚙️ Technical Highlights
-
setVelocity()
is used to simulate realistic motion during swimming or climbing. -
stepHeight
is adjusted to allow entities to walk over blocks after climbing. -
Ladder interaction accounts for surroundings, like solid blocks above the head.
-
GeckoLib animation layers ensure each movement has a dedicated visual representation (e.g. body, eyes, hands).
๐งช Final Thoughts
These features make the Humans Mod feel more alive, intelligent, and responsive to terrain. Whether navigating a flooded dungeon or scaling a wooden tower, humanoid NPCs behave like real explorers—swimming, climbing, and reacting just like a player would.
Stay tuned for more updates as we continue expanding the AI behaviors and animation systems in the Humans Mod.
Ready to bring smarter NPCs into your Minecraft world?
You can download the latest version of the Humans Mod directly from Modrinth:
๐ https://modrinth.com/mod/humans-mod
Join the adventure, enhance your world, and make your entities climb, swim, and explore like never before!
Comments
Post a Comment