promotional bannermobile promotional banner

Aegis Accord

Fed up of your spells and summons targeting your friends and allies? This mod stops that completely, and allows for per player set profiles!

File Details

aegis_accord-1.2.0.jar

  • R
  • Feb 8, 2026
  • 77.44 KB
  • 408
  • 1.20.1
  • Forge

File Name

aegis_accord-1.2.0.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:aegis-accord-1418609:7596232")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Version 1.2.0 - Fixes & Performance

Bug Fixes
- **Mobs not attacking players**: Fixed hostile mobs (zombies, skeletons, etc.) not aggroing until attacked. Ally/target logic now runs only for player-controlled entities (summons, tamed, projectiles, magic mods), not wild hostiles.
- **Summons attacking teammates**: Fixed FTB Teams ally detection so summoned entities no longer attack players in the same FTB team (same fix when PvP is off). Now uses correct API `arePlayersInSameTeam(UUID, UUID)` and server-only checks.
- **Targeting priority**: Retarget-on-block now defaults to **true** so when a summon is blocked from targeting an ally it is retargeted using your whitelist/category priority.
- **Profile Editor Back button**: Back button and Escape now correctly return to the previous screen; added explicit click handling and `onClose()` override.
- **Combat events**: Added null checks for damage source in hurt/attack handlers to avoid edge-case failures.

Performance:
- **Controller resolution**: Removed expensive full-entity NBT serialize from the hot path. Owner-from-NBT now uses only persistent data (or skips when unavailable), eliminating the cost that showed up in Spark (e.g. `saveWithoutId` and other mods’ save logic).
- **Magic mod reflection**: Reflection for owner detection (getOwner, getOwnerUUID, owner field) is now cached per entity class so `getMethod`/`getDeclaredField` run once per type instead of every target change.

Compatibility:
- **Forge 47.x**: Forge version range set to `[47.0,)` so the mod works with any Forge 47.x, not only 47.4.13. Comment added in `gradle.properties` to avoid locking to an exact version again.