Minecraft.How
加载中...
跳至内容

Projectile Damage Attribute

作者 ZsoltMolnarrr

Adds a projectile damage attribute and Impact effect for bows and crossbows, plus an API for modders to define custom ranged weapons on Fabric and Forge.

我们的介绍

这个项目能做什么

What this mod does Projectile Damage Attribute introduces a new entity attribute called projectile_damage:generic. That attribute lets you adjust how much damage bows and crossbows deal on a per-item basis. It also adds a status effect named Impact. When applied, Impact raises the projectile damage of the affected entity for its duration. You can grant it with a command such as /effect give @p projectile_damage:impact 30 4. The mod requires installation on both client and server. A server-side configuration file appears in the config folder after the first run, giving you a place to tune values without editing code. ## Who it's for Players and pack makers who want finer control over ranged weapon balance can use the attribute and effect to tweak vanilla bows and crossbows or to create progression systems where better gear deals more projectile damage. Mod developers get a ready-made API for registering custom ranged weapons - cannons, blowpipes, or anything that extends ProjectileWeaponItem - with their own damage values and velocity compensation. ## Verified capabilities - Adds the projectile_damage:generic entity attribute for bow and crossbow damage customization. - Adds the Impact status effect that increases projectile damage while active. - Provides a server-side config file generated on first run. - Exposes an API (IProjectileWeapon and RangedWeaponKind) so other mods can register custom ranged weapon types with defined damage and max velocity. - Supports Fabric and Forge mod loaders. - Runs on Minecraft 1.20, 1.20.1, and 1.20.2. ## Compatibility notes The mod is built for Fabric and Forge. It doesn't list NeoForge or Quilt as supported loaders. Only the three Minecraft versions above are declared; no earlier or later versions are confirmed. Both client and server must have the mod installed. No dependency on other library mods is mentioned in the project record. ## Modder workflow To use the API, add the Modrinth maven repository and the mod as a dependency in your build file. For Fabric, declare the dependency in fabric.mod.json. For Forge, add an entry in mods.toml with mandatory=true and side=BOTH. Custom bows and crossbows can cast to IProjectileWeapon and call setProjectileDamage and setMaxProjectileVelocity. Fully custom weapon types create a RangedWeaponKind and assign it to each item instance.

反应

登录后即可做出反应。

兼容性

版本与加载器

已记录 8 个版本

3.2.3+1.20.1-fabric

release

下载 (98 KB)

3.2.3+1.20.1-forge

beta

下载 (247 KB)

3.2.2+1.20.2-fabric

release

下载 (97 KB)

3.2.2+1.20.2-forge

beta

下载 (246 KB)

3.2.2+1.20.1-forge

release

下载 (246 KB)

3.2.2+1.20.1-fabric

release

下载 (97 KB)

3.2.1+1.20-forge

beta

下载 (246 KB)

3.2.1+1.20-fabric

release

下载 (97 KB)

图库

Projectile Damage Attribute icon

我们使用 Cookie 来改善您的体验。继续使用本网站即表示您同意我们使用 Cookie。 阅读我们的隐私政策