Перейти к содержимому
Mineforgian

Gun Scaling

This project adds Ranged Weapon API's ranged damage bonuses to Marium's Soulslike Weapon's guns

Загрузки
467K
Подписчики
1
Обновлён
2 марта 2026 г.
Лицензия
MIT

Опубликован 7 февраля 2026 г.

Gun Scaling Mod

A Fabric mod that bridges Soulslike Weaponry and Ranged Weapon API to allow gun damage to scale with player attributes.

Features

  • Attribute Scaling: Gun damage (Silver Bullets) scales based on the ranged_weapon:damage attribute.
  • Configurable: Choose between Additive or Multiplicative scaling modes.
  • Custom Multiplier: Fine-tune damage values via configuration.

Ченджлог

2.1.0Релиз1.20.1 · 2 марта 2026 г.

Changelog

[2.1.0]

Added

  • Power enchantment scaling for the Create Potato Launcher, matching the gun scaling math formula.
  • Fetch logic to check the player's main hand or off-hand for the PotatoCannonItem to determine the Power enchantment level before a potato hits an entity.
  • Reflection logic to dynamically fetch the power_enchantment_multiplier_per_level config value from ArchersMod (net.archers.ArchersMod). This gracefully defaults to an 0.08 value if the mod is not installed.
  • Configuration for accelerationCardScale (defaulting to 12.5% or 0.125f) inside GunScalingConfig under the matterCannon section.
  • Mixin functionality in MatterCannonItemMixin.java to count and apply the number of SPEED_CARD (Acceleration Cards) installed in a player's Matter Cannon.

Changed

  • Refactored PotatoProjectileMixin.java to inject damage modifiers before Entity.damage(...) is successfully executed.
  • Reworked the final damage formula for the Potato Launcher so that the Power calculation compounds multiplicatively: Final Damage = True Base Damage × Power Term × Attribute Multiplier.
  • Updated the Matter Cannon damage calculation to retrieve raw base damage by isolating AE2's built-in penetration.
  • Applied custom scaling formula for Matter Cannons: Current_Damage = Raw_Base_Dmg * (1 + attr / scaling) * (1 + Acceleration_Card_Multiplier * Acceleration_Card_Number).

Fixed

  • Built-in Create Mod power scaling logic. The PotatoProjectileEntity natively scales damage upwards by 1 + (Power Level * 0.2) internally before passing the value to the onEntityHit method. The mixin now intercepts this damage and mathematically reverses this 20% calculation by dividing the original damage by (1 + powerLevel * 0.2f) to return the true raw base damage before applying the custom scaling.
2.0.1Релиз1.20.1 · 27 февраля 2026 г.

[2.0.1]

Added

  • Update to 2.0.1 to include gun compat datapack
2.0Релиз1.20.1 · 23 февраля 2026 г.

[2.0]

Added

  • Implemented compatibility between guns and the Power enchantment.
  • Dynamic extraction of power bonuses applied by enchantments or other mods (ShootSilverBulletMixin.java).
  • Added import and type resolution compilation errors in MatterCannonItemMixin.java and PotatoProjectileMixin.java.
1.4.1Релиз1.20.1 · 19 февраля 2026 г.

Changed damage formula

1.4.0Релиз1.20.1 · 18 февраля 2026 г.

[1.4.0]

Added

  • Migrated configuration system to TinyConfig for better handling and versioning.
  • Created GunTooltipMixin to replace "Infinity" enchant text with "Bullet Infinity" on guns.
  • Added GunAmmoMixin to enforce zero ammo cost for guns with Infinity enchantment.
1.3.1Релиз1.20.1 · 13 февраля 2026 г.

Fixed Unicode characters appearing in config file

  • Fixed an issue where Unicode characters were being escaped into unreadable sequences in the config file.
1.3.0Релиз1.20.1 · 12 февраля 2026 г.

Better configurability and stuff

Комментарии

Загружаем…