Skip to content

AttributeModule

Kapitencraft edited this page Jun 24, 2026 · 2 revisions

the Attribute Module aims at adding shared attributes (something like vanilla armor, speed) and adds some functionality to the attribute system itself

Added Functionality

Timed Modifiers

timed modifiers are a system to temporarily modify an entities attributes. multiple of the same modifier are possible by appending a suffix to the base location.
timed modifiers can be added via ./timed/TimedModifierUtils#add where

  1. living is the entity to modify
  2. baseLocation is the location of the modifier
  3. duration is the time the modifier lasts in game ticks (.05s)
  4. attribute is the attribute
  5. amount is the value the attribute should be changed by (negative values allowed)
  6. operation is the modifier operation to use

Added Attributes

all added Attributes can be found in the net.kapitencraft.kap_lib.attribute.ExtraAttributes class.

List of all Attributes

  • Defensive

    • Dodge

      chance to ignore incoming attacks

    • Magic Defence

      defence against magic attacks

    • True Defence

      defence against true attacks which pierce armor

    • Armor Shredder

      amount of armor ignored by attacks

  • Offensive

    • Bonus Attack Speed

      reduces invulnerability frames of hit targets

    • Strength

      scales damage in*(1+str/100)

    • Crit Damage

      scales damage on critical hits in*(1+crd/100)

    • Crit Chance

      chance to bypass vanilla crit behaviour

    • Ferocity

      chance to trigger a stacking, delayed re-attack on the victim

    • Magic Damage

      damage dealt by magic attacks.*

    • Ranged Damage

      increases damage dealt by arrows and other projectiles. replaces vanilla hardcoded arrow damage for bow & crossbow

    • Draw Speed

      scalar for speed in which bows and crossbows can be charged

    • Projectile Speed

      increases velocity of shot projectiles

  • Mining

    • Pristine

      increases quality of gemstones.*

    • Mining Fortune

      increases amount of ore drops.*

  • Miscellaneous

    • Life Steal

      maximum amount of dealt damage that will be used to heal the attacker

    • Double Jump

      allows to double jump

    • Vitality

      amplifies healing from all sources in*(1+vit/100)

    • Fishing Speed

      decreases lure time. values at or above 600 instantly attract fish

    • Wisdom

      increases experience dropped from blocks or entities

Clone this wiki locally