dreamcraftnetworkirongolemsregen-1.2-1.20.1-Beta.jar
Curse Maven Snippet
What's new
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:
- Pathfind to the Iron Golem
- Approach the golem within interaction range
- Equip the golem with iron armor using one Iron Block
- 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 world, isClientSide 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
This mod has no additional files

