promotional bannermobile promotional banner

SAFELY Enhanced Armaments - Reloaded

Updated version of Enhanced Armaments Reloaded which implements all the fixes necessary to run the mod within modpacks of any size. (permitted via the authors listed license)
  • The main version of EAR hasn't been updated in years. So I've made this version which actually works in modpacks. It's pretty much the exact same code as the original, except for an additional 60+ crash and error handlers added throughout.

Summary

  • This is a standalone edition of Enhanced Armaments Reload
  • Install is simple, just replace your old Enhanced Armaments Reload version with this one!
  • Runs seamlessly with over 400 other mods included in my main modpack Hekkit
  • The fixes implemented improve runtime safety and multiplayer robustness by adding defensive checks and switching global state to per-player tracking.

Problems in the original mod:

  • If any other mod touches the same things that EAR does, NullPointerExceptions and index/collection out-of-bounds errors will crash. Usually involves reading item rarity and building tooltips.
  • In multiplayer environments, bowhand tracking and periodic armor healing were crash/error prone and applied their effects to all players, rather than only the player with the attribute.
  • Negative durability values and health overflows would occur anytime abilities modified damage/health.
  • Rarity data loading wouldn't create its directory reliably and the formatting was a bit inconsistent.

Key changes added in my mod:

  • Guards against null values early to avoid NPEs when rendering UI or processing events.
  • Adds bounds and emptiness checks before accessing tooltip list indexes, attribute modifier collections, and armor/main-hand item stacks.
  • Replaces shared static bow-hand variable with a per-player weak map to correctly track which hand fired a projectile in multiplayer contexts.
  • Replaces the single global healing counter with a per-player timer map so each player heals independently and safely.
  • Clamps durability and health updates so values remain within valid ranges.
  • Ensures rarity file's directory is created if missing and tidy minor formatting/cleanup.

Results of the changes:

  • Reduced 100% of crashes and unexpected behavior caused by missing or malformed item metadata.
  • Fixed multiplayer desync and incorrect behavior caused by shared mutable states.
  • Improved the stability of tooltip rendering and combat/healing logic.
  • Made file loading more robust across environments.

The SAFELY Enhanced Armaments - Reloaded Team

profile avatar
  • 2
    Projects
  • 74
    Downloads

More from americansolder

  • Hekkit project image

    Hekkit

    • 45
    • Modpacks

    [WIP] A fan-made revival of Hexxit and Hexxit II intended for use between myself and my personal gaming group. Anyone can use it though! JOIN THE OFFICIAL SERVER: hekkit.un1t.gg

    • 45
    • September 29, 2025
    • Modpacks
    • +4
  • Hekkit project image

    Hekkit

    • 45
    • Modpacks

    [WIP] A fan-made revival of Hexxit and Hexxit II intended for use between myself and my personal gaming group. Anyone can use it though! JOIN THE OFFICIAL SERVER: hekkit.un1t.gg

    • 45
    • September 29, 2025
    • Modpacks
    • +4