Features Implemented
Requirement Implementation
Goat Horn New item: "Iron Golem Horn," reusing the vanilla goat horn texture and holding pose.
Right-click to Summon Summons a custom entity, the "Guardian Iron Golem," featuring AI for owner-binding, following, and melee combat.
Two Spawn Modes Configurable via settings: "Descend from Above" (falling from a height, accompanied by anvil-landing sound effects and smoke particles) or "Emerge from the Ground" (using the Warden's `warden_emerge` sound effect, particles, and a gradual rise from underground).
Shift+Right-click Settings Custom GUI: includes mode switching, a whitelist, a list of attack targets, page navigation, adding entities via ID input, removing entries, and "Confirm/Cancel" options.
Whitelist The whitelist has the highest priority; entities included in this list will never be attacked.
Attack Targets Explicitly defined targets take priority. If the list is empty, the golem defaults to attacking hostile mobs, protecting its owner, and retaliating against any entity that attacks its owner.
30-Second Cooldown A 600-tick server-side cooldown with a corresponding client-side display; notifications are provided if the item is used while on cooldown.
Additional Details Settings are stored within the horn item's components (persisting even when moved between hands, dropped on the ground, placed in a chest, or transferred across save files). The Iron Golem does not despawn naturally. It can be crafted using 1 Goat Horn and 1 Iron Block (shapeless recipe) and is also available in the "Tools and Utilities" tab in Creative Mode.