
iammojogo's Village Life Plus
Smarter villagers and iron golems - auto-repopulation, fence gate navigation, personal space, and golems that actually protect villagers with intelligent combat AI.
Автор: iammojogo1 тыс.3обновлён 20 авг. 2026 г.
ПриключенияМеханики игрыОптимизация
Описание
Village Life Plus
Smarter villagers and iron golems — auto-repopulation, intelligent pathfinding, personal space, and combat AI that actually protects villagers.
Features
Golem AI
- Custom Iron Golem with 1000 HP and intelligent A* pathfinding
- 4-state behavior: Idle patrol, Attack, Defend villagers, Return to village
- Golems actively scan for hostiles and prioritize threats
- Villagers call for help when attacked — closest golem responds
- Each golem receives a random name displayed above its head
Villager Improvements
- Personal space — villagers maintain configurable minimum distance
- Fence gate navigation — villagers can open and walk through gates
- Smart gate/door closing after villagers pass through
- Pressure plate avoidance (configurable)
- Self-healing — villagers pick up food and eat to heal
- 9-slot inventory for personal food storage
Village Sustainability
- Auto-repopulation when village drops below 2 villagers
- Emergency mode prevents village deletion at population 0
- Works with vanilla villages, mod villages, and player-created villages
Villager Trade GUI
- Full trade interface with villager name display
- Recipe cycling with arrow navigation
- Shift-click to move items between trade slots and inventory
- Real-time out-of-stock detection
- Read-only villager inventory display
Requirements
- Install on both client and server for full functionality
Support
ALL UPDATES WILL BE ON MY KOFI. VERSIONS HERE MIGHT BE OUTDATED! Want to see this mod updated or have a feature request? Support the project on Ko-fi.
Found a bug? Report issues to iammojogo@outlook.com.
License
MIT License — Free to use, modify, and redistribute.
Developer: iammojogo
Галерея
Последние версии
Все версии →release
iammojogo's Village Life Plus 1.12.2
1.2.020 авг. 2026 г.242Minecraft: 1.12.2forge
Что нового
**Trade GUI Overhaul**
- Redesigned villager trade GUI layout with 9-row structure
- Added cost item icons with count overlays in the trade section
- Added scrollable detail panel showing output item tooltip text
- Added vertical scrollbar for detail panel (visible when text exceeds 3 lines)
- Mouse wheel scrolling over the detail panel
- Scrollbar click-to-jump support
- Item name hover tooltips that follow the mouse cursor
- Shift-click between trade input slots and player inventory
- Trade button now shows three states: Green "Trade", Gray "Trade" (wrong items), Red "OUT OF STOCK"
- Read-only villager inventory display showing the villager's stored food items
**Out-of-Stock Sync**
- Trades now correctly detect exhaustion immediately after each trade completes
- No more unlimited trading in a single GUI session
**Bug Fixes**
- Fixed trade button not reflecting out-of-stock state without closing/reopening the GUI
- Fixed trade cycling index corruption when switching between trades
- All villager trades are now accessible (no hidden/excluded recipes)
- Items in trade input slots are properly returned to player inventory on GUI close
**Polish**
- Better spacing between GUI sections ("Villager Inventory" and "Inventory" labels)
- Fixed item ID tooltips being filtered from hover text
- Trade button width widened to accommodate "OUT OF STOCK" text
release
iammojogo's Village Life Plus 1.2.0
1.2.020 авг. 2026 г.46Minecraft: 1.21.11forge
Что нового
**Trade GUI Overhaul**
- Redesigned villager trade GUI layout with 9-row structure
- Added cost item icons with count overlays in the trade section
- Added scrollable detail panel showing output item tooltip text
- Added vertical scrollbar for detail panel (visible when text exceeds 3 lines)
- Mouse wheel scrolling over the detail panel
- Scrollbar click-to-jump support
- Item name hover tooltips that follow the mouse cursor
- Shift-click between trade input slots and player inventory
- Trade button now shows three states: Green "Trade", Gray "Trade" (wrong items), Red "OUT OF STOCK"
- Read-only villager inventory display showing the villager's stored food items
**Out-of-Stock Sync**
- Trades now correctly detect exhaustion immediately after each trade completes
- No more unlimited trading in a single GUI session
**Bug Fixes**
- Fixed trade button not reflecting out-of-stock state without closing/reopening the GUI
- Fixed trade cycling index corruption when switching between trades
- All villager trades are now accessible (no hidden/excluded recipes)
- Items in trade input slots are properly returned to player inventory on GUI close
**Polish**
- Better spacing between GUI sections ("Villager Inventory" and "Inventory" labels)
- Fixed item ID tooltips being filtered from hover text
- Trade button width widened to accommodate "OUT OF STOCK" text
release
iammojogo's Village Life Plus 1.1.1
1.1.119 авг. 2026 г.20Minecraft: 1.21.11forge
Что нового
**New Features**
- Villager Trade GUI overhaul: Completely redesigned the villager trading interface for both Forge 1.21.11 and 1.12.2
- Added cost requirement icons (Row 3) — displays required items above the trade slots with their count
- Added output item detail text panel — shows item tooltip/description (e.g. "Leather Pants", "When on legs: +3 Armor")
- Detail text panel is scrollable with the mouse wheel for longer descriptions
- Added 3D-style Trade button replacing plain text
- Added recipe navigation (< > arrows with counter, e.g. "2/5")
release
iammojogo's Village Life Plus 1.12.2
1.1.119 авг. 2026 г.26Minecraft: 1.12.2forge
Что нового
**New Features**
- Villager Trade GUI overhaul: Completely redesigned the villager trading interface for both Forge 1.21.11 and 1.12.2
- Added cost requirement icons (Row 3) — displays required items above the trade slots with their count
- Added output item detail text panel — shows item tooltip/description (e.g. "Leather Pants", "When on legs: +3 Armor")
- Detail text panel is scrollable with the mouse wheel for longer descriptions
- Added 3D-style Trade button replacing plain text
- Added recipe navigation (< > arrows with counter, e.g. "2/5")
release
iammojogo's Village Life Plus 1.1.0
1.1.016 авг. 2026 г.18Minecraft: 1.21.11forge
Что нового
-initial update to 1.21.11 version - mocks the original 1.12.2 version as close as possible that I can find so far.
release
iammojogo's Village Life Plus 1.1.0
1.1.08 авг. 2026 г.49Minecraft: 1.12.2forge
Что нового
--addition spawned villager for villages with no villagers or not enough to evolve
--villager inventory access with added consumable functionalities for self-generation of own health
--new villager gui to accommodate new inventory and code
--fixed golem naming convention since they are custom
release
Release patch
1.0.129 дек. 2025 г.570Minecraft: 1.12.2forge
Что нового
## [1.0.1] - 2025-12-29
### Improved
- **Iron Golem AI Overhaul** - Simplified and more robust behavior
- Golems now skip unreachable targets (more than 4 blocks above/below)
- 15-second chase timeout prevents golems from chasing forever
- Direct movement when close to target - no more stuck cycling at 4 blocks away
- Smooth rotation - golems turn gradually instead of snapping instantly
- Better jumping - golems jump over partial blocks (slabs, stairs) and obstacles
### Fixed
- Fixed golem oscillating between two points without reaching target
- Fixed golem endlessly chasing mobs on rooftops or underground
- Fixed golem "reaching end of path" but never actually attacking
- Fixed rapid spinning when facing targets
alpha
1.0.0-Alpha
1.0.0-Alpha25 дек. 2025 г.40Minecraft: 1.12.2forge
Что нового
# VillageLife Mod - Changelog
## Version 1.0.0-alpha
### Overview
VillageLife transforms Minecraft 1.12.2 villages into dynamic, living communities with intelligent villager behavior, custom iron golem AI, and quality-of-life improvements that make villages feel more alive and defensible.
---
## Current Features
### Custom Iron Golem AI System
Complete replacement of vanilla iron golem behavior with sophisticated custom AI:
**Heightmap-Based Pathfinding**
- Pre-calculates terrain before movement for smoother navigation
- Uses decimal precision height calculations based on Minecraft's bounding box system
- Dynamically resizing heightmap scanner (32x32 default, expands as needed)
- Handles slopes, stairs, slabs, and varied terrain heights accurately
**Roaming Behavior**
- Golems patrol the village area naturally
- Pick random destinations within village bounds
- Stuck detection with automatic rerouting after failed paths
- Falls back to nearby destinations after consecutive pathfinding failures
**Distress Response System**
- Villagers send distress signals when attacked by hostile mobs
- Expanding radius search: starts at 8 blocks, grows 1 block/second up to village radius
- Golems respond with phases: RESPONDING → ATTACKING → GUARDING
- Multi-attacker handling with priority queue (most recent attacker first)
- Hybrid chase detection: 1.5 second threshold before damage triggers distress
**Combat Priorities**
1. Self-Defense - If attacked by any mob (except players), golem defends itself immediately
2. Opportunistic Attacks - While en route to villager, attacks hostile if closer than villager
3. Protect Villager - Moves to villager, eliminates all threats
4. Guard Duty - Follows villager for 30 seconds after threat cleared
5. Help Others - During guarding, can switch to help other villagers under attack
**Spawn Management**
- Replaces vanilla iron golem spawns with custom golems
- Prevents duplicate spawns on world load
---
### Villager Distress Manager
Central coordinator for villager protection:
- Attack Detection: Monitors LivingAttackEvent for villager damage
- Chase Detection: Detects when hostile mobs target villagers (before damage)
- Attacker Tracking: Maintains list of active attackers per villager
- Golem Assignment: Coordinates which golem responds to which villager
- Cleanup: Automatically removes stale entries, dead mobs, cleared threats
---
### Villager Quality of Life
**Gate & Door Handling**
- Villagers can now open and close fence gates
- Custom AI task for gate navigation
- Proper pathfinding through gated areas
**Personal Space System**
- Fluid dynamics-inspired spacing to prevent villager stacking
- Adaptive wall-aware spacing adjusts near obstacles
- Prevents oscillation and jittering
**Pressure Plate Avoidance** (Configurable)
- Villagers avoid stepping on pressure plates
- Prevents accidental trap triggering
---
### Villager Repopulation System
Prevents villages from becoming permanently empty:
**Works on ANY Active Village**
- Vanilla generated villages
- Mod-created villages
- Player-created villages (place doors + bring 1 villager = instant village!)
- Checks all villages every 20 seconds
**Automatic Spawning**
- Triggers when villager count drops below 2
- Per-village cooldowns (5 minutes)
- Spawns villager just outside village radius
- Normal vanilla AI
**Emergency Mode**
- When a village hits 0 villagers, spawns immediately (skips cooldown)
- Prevents vanilla from removing the village before we can save it
**Village Memory System**
- Remembers locations of villages that had villagers
- Can revive villages removed from Minecraft's system
---
### Debug Visualization (DEV_MODE only)
- Distress Visualizer - Shows villager distress and golem responses
- Path Visualizer - Shows golem pathfinding
- Villager Space Visualizer - Shows personal space system
---
### Configuration
- In-game config GUI (Mod Options menu)
- DEV_MODE toggle for debug visualizations
- Pressure plate avoidance toggle
---
## Roadmap (Planned Features)
1. **Early Shelter Seeking** - Villagers seek shelter before sunset
2. **Attack Alerts** - Player notification when village is under attack
3. **Villager Naming** - Name tags show profession and home location
4. **Villager Torch Placement** - Villagers place torches in dark areas (light ≤7)
---
## Technical Details
**Minecraft Version**: 1.12.2
**Mod ID**: villagelife
---
### Credits
**Author**: iammojogo

