File Details
coppergolemlegacy-1.20.1-0.0.5.jar
- R
- Nov 20, 2025
- 1.18 MB
- 67
- 1.20.1
- Forge
File Name
coppergolemlegacy-1.20.1-0.0.5.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
[1.20.1-0.0.5] - 2025-11-20
Added
Mod Compatibility System
- Flexible tag-based system for chest interactions
- New block tags:
golem_target_chests - Target chests define where golems can place items to (all compatible chests)
- Easy mod integration without code changes - just add block IDs to tags
Barrel Support
- Copper Golems can now place items into barrels
- Correct barrel sounds (
BARREL_OPEN/BARREL_CLOSE) when interacting - Added
minecraft:barreltogolem_target_cheststag
IronChest Mod Integration
- Full support for all 14 IronChest variants (7 types + trapped variants)
- Supported chests: iron, gold, diamond, copper, crystal, obsidian, dirt
- Both regular and trapped versions work with golem item transport
Documentation
CHEST_COMPATIBILITY.md- Complete guide for adding new mod supportdatapack_example/- Example datapack for players to add custom chests- Instructions for three integration methods: direct block IDs, mod tags, datapacks
- Examples for popular mods (Storage Drawers, Sophisticated Storage, AE2)
Changed
AI Sound System
- Enhanced
playChestSound()method with container-type detection - Automatic sound selection based on container type:
- Copper Chests → Custom copper chest sounds
- Barrels → Barrel-specific sounds
- Regular Chests → Standard chest sounds
- Improved blockState caching for better performance
- Enhanced
Code Structure
ModTags.java- AddedGOLEM_TARGET_CHESTSconstantsCopperGolemAi.java- Refactored to use tags instead of hardcoded block checks- More maintainable and extensible architecture
Fixed
Critical Server Crash
- Client-Side Import Fix: Resolved crash when loading mod on dedicated servers
- Issue:
CopperGolemLegacyConfig.javaimported client-only classes (Screen,GuiGraphics,Button, etc.) - Crash:
RuntimeException: Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER - Solution: Moved all GUI/Screen code to new
ConfigScreenFactory.javawith@OnlyIn(Dist.CLIENT)annotation CopperGolemLegacyConfig.javanow only containsForgeConfigSpec(safe for both client and server)- Config screen is now properly isolated to client-side only code
Container Detection Bug
- Fixed golem only detecting vanilla chests (
ChestBlockEntity) - Now properly detects all container types including barrels and mod chests
- Changed search from
ChestBlockEntitytoBaseContainerBlockEntity - Enables support for IronChest, barrels, and other mod containers
- Fixed golem only detecting vanilla chests (
Container Animation Bug
- Fixed missing open/close animations for barrels and mod chests
- Barrels now correctly animate using
OPENBlockState property - Chests use
blockEventfor animation - All container types (vanilla, barrels, mod chests) now animate properly
Technical
- Tag-based predicates in
TransportItemsBetweenContainersbehavior - Container type detection with proper sound event mapping
- Support for datapack-based chest additions with
"replace": falsepattern - Performance-optimized through Minecraft's tag caching system

