Spellstats attributes

Unlisted
Shared combat attributes and a quantified bow formula.

Spellstats Attributes

Spellstats Attributes turns bow and crossbow damage into a clean, multiplicative formula and registers a set of shared combat attributes that other mods can raise.

With no gear, nodes or upgrades, a fully drawn bow deals the same damage as vanilla. Every bonus is then a plain multiplier on top.

Arrow damage

Damage = arrow base damage × 5/3 × Ranged Damage × speed at impact × Precision factor

  • Arrow base damage is the vanilla value (2 for an arrow) plus vanilla Power (+0.5 per level, +2.5 at Power V).
  • 5/3 converts the vanilla unit to this formula's unit. It is a config value.
  • Ranged Damage is an attribute (default 1).
  • Speed at impact is the real arrow speed when it hits. Vanilla drag and gravity stay, so long shots still lose damage.
  • Precision factor is a random roll inside a range. It replaces vanilla's random critical bonus.
  • No rounding up. A hit can deal 7.3 damage.

Full draw, point blank:

Vanilla Spellstats Attributes
Plain bow 6–10, average 8 6–10, average 8
Power V bow 14–22, average 18 13.5–22.5, average 18
Crossbow 7–11, average 9 6.3–10.5, average 8.4

Partly drawn arrows follow the vanilla draw curve. Vanilla gives them no critical bonus, so their damage differs slightly from vanilla.

Only arrows shot by players use the formula. Mob arrows, tridents and fireworks stay vanilla.

Precision

  • With 0 Precision the damage range is 60%–100%, the same spread as a vanilla critical arrow.
  • Each point raises the lower bound by 1%, so the range gets narrower.
  • Once the range reaches 95%–100%, the whole range moves up: 96%–101%, 97%–102%, and so on.
  • 45 Precision gives 105%–110%.

Works with other bow mods

The formula is applied to vanilla BowItem and CrossbowItem, so bows and crossbows from other mods that use these classes get it too, including the draw animation.

Attributes

Attribute Default Used by
spellstats_attributes:ranged_damage 1 this mod
spellstats_attributes:projectile_velocity 1 this mod (arrow speed, and damage with it)
spellstats_attributes:draw_time 1 this mod (bow draw time)
spellstats_attributes:reload_speed 0 this mod (bow draw and crossbow charge time × 1 / (1 + value))
spellstats_attributes:projectile_spread 1 this mod
spellstats_attributes:precision 0 this mod
spellstats_attributes:critical_chance 0.05 Spellstats
spellstats_attributes:critical_damage 0.10 Spellstats
spellstats_attributes:armor_penetration 0 Spellstats
spellstats_attributes:bonus_melee_damage 0 Spellstats
spellstats_attributes:aiming_movement 0 Spellstats
spellstats_attributes:pickaxe_efficiency 0 Spellstats
spellstats_attributes:axe_efficiency 0 Spellstats
spellstats_attributes:pickaxe_haste 0 Spellstats

All attributes are on players and can be changed with /attribute, item attribute modifiers or datapacks. The ones marked "Spellstats" only do something when Spellstats is installed.

Config

Server config: config/spellstats_attributes-server.toml, section ranged. It can also be edited from the mod list in single player.

Arrow damage scale, bow max speed, bow draw ticks, crossbow speed, base spread, base Precision range, Precision per point, the point where the range starts moving up, and the reload speed limit.

Install

  • Minecraft 1.21.1, NeoForge 21.1.264 or newer.
  • Install on both server and client.
  • No other mods required.

The Spellstats family

  • Spellstats: melee and armor formulas, nodes, stat screen and a damage breakdown command (/spellstats debug) that also shows every term of the arrow formula.
  • Spellstats Enchanting: lapis upgrades. Bow and crossbow upgrades raise Ranged Damage.
  • Bowbowbow: more bows and crossbows.

Each of them requires Spellstats Attributes. Spellstats Attributes requires none of them.

Spellstats Attributes

Spellstats Attributes는 활과 쇠뇌의 피해를 깔끔한 곱셈 공식으로 바꾸고, 다른 모드가 올릴 수 있는 전투 속성들을 등록합니다.

장비, 노드, 강화가 없으면 만충전 활은 바닐라와 같은 피해를 줍니다. 모든 보너스는 그 위에 곱해지는 배율입니다.

화살 피해

피해 = 화살 기본 피해 × 5/3 × 원거리 피해 × 명중 순간 속도 × 정밀 계수

  • 화살 기본 피해: 바닐라 값(화살 2)에 바닐라 힘 가산(레벨당 +0.5, 힘 V에서 +2.5)을 더한 값
  • 5/3: 바닐라 단위를 이 공식의 단위로 바꾸는 환산값(콘피그)
  • 원거리 피해: 속성(기본 1)
  • 명중 순간 속도: 맞는 순간의 실제 화살 속도. 바닐라의 공기 저항과 중력은 그대로라, 멀리 쏘면 피해가 줄어듭니다.
  • 정밀 계수: 구간 안에서 뽑는 무작위 값. 바닐라의 무작위 치명타 가산을 대신합니다.
  • 올림을 하지 않습니다. 7.3 같은 피해도 나옵니다.

만충전, 바로 앞에서 쏠 때:

바닐라 Spellstats Attributes
맨 활 6~10, 평균 8 6~10, 평균 8
힘 V 활 14~22, 평균 18 13.5~22.5, 평균 18
쇠뇌 7~11, 평균 9 6.3~10.5, 평균 8.4

덜 당긴 화살은 바닐라 당김 곡선을 따릅니다. 바닐라는 덜 당긴 화살에 치명타가 없어서, 이때는 바닐라와 피해가 조금 다릅니다.

플레이어가 쏜 화살만 이 공식을 씁니다. 몹의 화살, 삼지창, 폭죽은 바닐라 그대로입니다.

정밀

  • 정밀 0이면 피해 구간은 60%~100%입니다. 바닐라 치명타 화살과 같은 폭입니다.
  • 정밀 1마다 하한이 1%씩 올라 구간이 좁아집니다.
  • 구간이 95%~100%에 이르면 그 뒤로는 구간 전체가 올라갑니다: 96%~101%, 97%~102% …
  • 정밀 45면 105%~110%입니다.

다른 활 모드와 함께

공식은 바닐라 BowItem과 CrossbowItem에 걸리기 때문에, 이 클래스를 쓰는 다른 모드의 활과 쇠뇌에도 당기기 그림까지 그대로 적용됩니다.

속성

속성 기본값 쓰는 곳
spellstats_attributes:ranged_damage 1 이 모드
spellstats_attributes:projectile_velocity 1 이 모드(화살 속도, 따라서 피해도)
spellstats_attributes:draw_time 1 이 모드(활 당김 시간)
spellstats_attributes:reload_speed 0 이 모드(활 당김·쇠뇌 장전 시간 × 1 / (1 + 값))
spellstats_attributes:projectile_spread 1 이 모드
spellstats_attributes:precision 0 이 모드
spellstats_attributes:critical_chance 0.05 Spellstats
spellstats_attributes:critical_damage 0.10 Spellstats
spellstats_attributes:armor_penetration 0 Spellstats
spellstats_attributes:bonus_melee_damage 0 Spellstats
spellstats_attributes:aiming_movement 0 Spellstats
spellstats_attributes:pickaxe_efficiency 0 Spellstats
spellstats_attributes:axe_efficiency 0 Spellstats
spellstats_attributes:pickaxe_haste 0 Spellstats

모든 속성은 플레이어에게 붙고 /attribute, 아이템 속성 수정치, 데이터팩으로 바꿀 수 있습니다. "Spellstats"라고 적힌 속성은 Spellstats가 있을 때만 효과가 있습니다.

콘피그

서버 콘피그: config/spellstats_attributes-server.toml의 ranged 절. 싱글플레이에서는 모드 목록에서도 고칠 수 있습니다.

화살 피해 환산, 활 최대 속도, 활 만충전 틱, 쇠뇌 속도, 기본 탄 퍼짐, 기본 정밀 구간, 정밀 1당 상승, 구간이 올라가기 시작하는 지점, 장전 속도 상한.

설치

  • Minecraft 1.21.1, NeoForge 21.1.264 이상
  • 서버와 클라이언트 모두 설치합니다.
  • 다른 모드는 필요 없습니다.

Spellstats 패밀리

  • Spellstats: 근접·방어력 공식, 노드, 스탯창, 피해 계산 명령(/spellstats debug, 화살 공식의 모든 항도 보여 줌)
  • Spellstats Enchanting: 청금석 강화. 활·쇠뇌 강화는 원거리 피해를 올립니다.
  • Bowbowbow: 활과 쇠뇌를 더합니다.

이 모드들은 모두 Spellstats Attributes가 필요합니다. Spellstats Attributes는 이 모드들이 필요 없습니다.

Spellstats attributes Team

profile avatar
  • 7
    Projects
  • 282
    Downloads

More from user_ulh6ktxq1aylo76nView all