HyWeaponVariants

Variants of different weapons.

File Details

HyWeaponVariants-0.0.1.jar

  • R
  • Feb 21, 2026
  • 58.10 KB
  • 15
  • Early Access

File Name

HyWeaponVariants-0.0.1.jar

Supported Versions

  • Early Access

✨ Features

  • Adds randomized weapon stat variants to make every crafted/looted weapon feel unique.
  • Per-item persistent variants stored directly on the ItemStack (survives trading, chests, server restarts).
  • Works with both vanilla-style weapons (absolute damage calculators) and weapons using stat modifiers.
  • Optional integration with DynamicTooltipsLib: shows variant bonuses/penalties in item tooltips (safe/optional via reflection).

⚙️ How it works (short)

  • When a weapon is first seen (craft/loot/move/open container), the mod assigns random multipliers.
  • When equipped, the mod applies the appropriate stat deltas to the player.
  • For weapons that use absolute damage calculations, final damage is scaled by the assigned multiplier.

🛠️ Compatibility

  • Designed to be resilient across game updates (safe reflection + fallbacks).
  • Includes metadata versioning and stable fingerprinting to avoid unnecessary re-sync.
  • Supports modded weapons as long as they are defined as weapons (Weapon section/stat modifiers) or categorized under Items.Weapons.

📌 Notes

  • Damage numbers can still vary due to vanilla RNG/crit mechanics; compare averages over multiple hits.