promotional bannermobile promotional banner

Iron Golems Survive

Iron golems regenerate at a rate to increase survival chances for the village.

File Details

dreamcraftnetworksirongolemssurvive-1.2-1.16.5-Beta.jar

  • R
  • Feb 8, 2026
  • 81.24 KB
  • 118
  • 1.16.5
  • Forge

File Name

dreamcraftnetworksirongolemssurvive-1.2-1.16.5-Beta.jar

Supported Versions

  • 1.16.5

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:iron-golems-survive-1454400:7593350")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Features

🛡️ Automatic Golem Armoring

Armorer villagers will now actively seek out and equip unarmored Iron Golems within their vicinity. When an Armorer has an Iron Block in their inventory and detects a nearby golem without armor, they will:

  1. Pathfind to the Iron Golem
  2. Approach the golem within interaction range
  3. Equip the golem with iron armor using one Iron Block
  4. Celebrate with particle effects and sounds

📦 Item Pickup System

Armorers can now collect Iron Blocks from the ground:

  • Automatically picks up Iron Blocks within a 3-block radius
  • Only picks up items when they don't already have an Iron Block
  • Plays pickup sound effects when collecting items
  • Checks every 20 ticks (1 second) for efficiency

🤝 Player Interaction

Players can manually give Iron Blocks to Armorer villagers:

  • Right-click an Armorer while holding an Iron Block
  • The villager will accept the block if they don't already have one
  • The villager will play a confirmation sound
  • Works in both Survival and Creative mode
  • One Iron Block consumed per interaction (in Survival)

⚙️ Configurable Behavior

All features are controlled through the mod's configuration file:

  • ARMORER_EQUIPS_GOLEMS - Enable/disable the entire feature
  • ARMORER_SEARCH_RADIUS - Set how far armorers search for golems
  • ARMORER_CHECK_INTERVAL - Control how often armorers look for golems

🎯 Smart AI Goals

The system integrates seamlessly with Minecraft's AI system:

  • Adds a custom goal to Armorer villagers when they spawn
  • Dynamically adds goals to existing Armorers that change profession
  • Respects vanilla AI priorities and behaviors
  • Won't interrupt critical tasks like fleeing from danger

Technical Details

Goal Priority

The Armorer equip goal is set at priority level 5, meaning:

  • Higher priority than idle behaviors (looking around, wandering)
  • Lower priority than survival behaviors (fleeing, panic)
  • Balanced to not interfere with normal villager routines

Search & Detection

  • Search Radius: Configurable (default typically 16-32 blocks)
  • Update Frequency: Checks every configured interval to prevent performance issues
  • Capability Detection: Uses the mod's armor capability system to detect equipped golems
  • Line of Sight: Not required - Armorers will pathfind around obstacles

Visual & Audio Feedback

When a golem is successfully equipped:

  • ✨ 10 Happy Villager particles spawn around the golem
  • 🔊 Armor equip sound plays from the golem
  • 😊 Villager "Yes" sound plays from the Armorer
  • 📊 Golem stats updated via the GolemArmorHelper
  • 🌐 Synced to clients via network packet

Inventory Management

The system properly manages villager inventories:

  • Scans all 8 inventory slots for Iron Blocks
  • Removes exactly 1 Iron Block when equipping
  • Adds items to first available slot when picking up
  • Stacks with existing Iron Blocks if possible
  • Respects vanilla stack size limits

Version Compatibility

Ported from: Minecraft 1.20.1
Target Version: Minecraft 1.16.5 Forge

Major API Changes Handled

  • Goal system method names updated (canUse()canContinueToUse(), etc.)
  • World accessor changes (level vs worldisClientSide vs isRemote)
  • Entity methods modernized (distance calculations, navigation, etc.)
  • Inventory system adapted for 1.16.5 API
  • Sound event names updated to 1.16.5 conventions

Use Cases

🏰 Village Defense Enhancement

  • Villages with Armorers can automatically strengthen their Iron Golem defenders
  • Players can supply Iron Blocks to Armorers for autonomous golem upgrades
  • Creates a renewable system for maintaining armored golems

🎮 Gameplay Integration

  • Encourages players to establish iron farms near villages
  • Adds strategic value to Armorer villagers
  • Creates observable, emergent AI behavior that feels natural

🔧 Server-Friendly

  • Configurable check intervals prevent performance issues
  • Efficient entity searches with bounded areas
  • Server-side only logic with client synchronization
  • Debug logging can be monitored for troubleshooting

Configuration Options

text
ARMORER_EQUIPS_GOLEMS = true/false
# Master toggle for the entire feature

ARMORER_SEARCH_RADIUS = 16.0 (default example)
# How far Armorers look for golems (in blocks)

ARMORER_CHECK_INTERVAL = 100 (default example)
# How many ticks between searches (20 ticks = 1 second)

Future Expansion Possibilities

This system provides a foundation for:

  • Other villager professions performing specialized tasks
  • Multiple armor tier support (diamond, netherite)
  • Villager trading integration
  • Golem maintenance and repair behaviors
  • Cross-mod compatibility for custom golem types