Smarter self-rescue for stuck mobs — plus a callable toolbox for modders who want their mobs to dig, tunnel, climb, or neutralize hazards on their own.
Freedom is a library mod for NeoForge, live on two Minecraft versions — 26.1.2 and 1.21.1. Check the Requires section before you download; the two builds are not interchangeable. It adds nothing visible by itself: no items, no recipes, no commands, no creative-tab entries. The value shows up when another mod opts in — most prominently Zombie Village, Freedom's primary consumer.
If you're installing this because another mod requires it, you can stop reading. Drop the jar in mods/, that's all the setup.
When a host mod registers a mob with Freedom, the mob gets a fallback toolbox for the moments vanilla pathfinding can't solve:
Host mods can also directly drive deliberate actions — digging a shaft straight down, tunneling toward a target, plugging a flowing water source, draining a pool with gravel, lifting a mob to an elevated build target, or neutralizing a body of water/lava by classifying it and choosing FILL-with-gravel or PLUG-with-cobble automatically.
Everything respects host-defined protection rules — claim mods, structure registries, build envelopes. Freedom never modifies a block your host says is off-limits.
freedom:climb_scaffold — a hidden, non-obtainable, ladder-climbable rescue block placed automatically by three of the rescue primitives. It looks identical to vanilla scaffolding but doesn't suffer scaffolding's "distance breaks the chain" failure, and mobs actually climb it. No item, no recipe, no creative tab. Each placed block carries a 15-second self-destruct fuse so columns never linger after a rescue.
If you run a mod that breaks blocks in mobs' way (custom AI, anti-grief sweeps), exempt freedom:climb_scaffold so it doesn't get torn down mid-climb.
Result enum so callers can drive their own state machineTwo live builds. Pick the file that matches your Minecraft version — they are not interchangeable.
For Minecraft 26.1.2 — freedom-1.0.x+mc26.1.2.jar
For Minecraft 1.21.1 — freedom-0.10.x.jar
No required mod dependencies on either line.
Safe to include. Freedom is dormant until a host mod calls into it. No config files, no environment variables, no commands, no resource pack. Server-side primitive logic only.
RescueRegistry.tryAll(mob, EscapeContext.freeform(stuckTicks, protectionPredicate, "MyMobTag"));
That's the auto-fire path in one line. The standalone primitives (DigDownStep, DigForwardStep, LiquidHandlerPrimitive, etc.) are static methods on their own classes — import and call.
Full API documentation, telemetry contract, primitive table, and integration examples: Freedom Lib on the Risen wiki.
All Rights Reserved. Free to use for players and to include in modpacks. See LICENSE.md in the source repo for the full grants.