MRPGCEffects class.
Overview
Status effects are registered asEffects.Entry objects with an identifier, name, description, effect instance, and configuration. Each effect can modify entity attributes and have special behaviors.
Source: net.more_rpg_classes.effect.MRPGCEffects
Status Effects Registry
MOLTEN_ARMOR
HARMFULColor:
0xdd4e00
Description: Reduces armor, armor toughness and damages the target if it wears armor.
Attribute Modifiers:
GENERIC_ARMOR: -10% (ADD_MULTIPLIED_TOTAL)GENERIC_ARMOR_TOUGHNESS: -1.0 (ADD_VALUE)
- Deals 0.5 damage per tick if wearing any single armor piece
- Deals 1.5 damage per tick if wearing full armor (chest, head, feet, legs)
- Automatically removed when entering water or removing all armor
- Damage dealt through
MoltenDamageSource - Update interval: Every 40 ticks (2 seconds) at amplifier 0, minimum 20 ticks
MoltenArmorEffect.java:17-45
FROZEN_SOLID
HARMFULColor:
0x3beeff
Description: Can’t move, attack or jump, takes additional damage if hit during active effect.
Attribute Modifiers:
DAMAGE_TAKEN: +15% (ADD_MULTIPLIED_TOTAL)
- Frost:
0% base + 10% per power + 20% crit
- Completely incapacitates the target (see Action Impairing below)
- Removed when hit (configured with
RemoveOnHit.Trigger.DIRECT_HIT) - Cannot be applied to freeze-immune entities (
EntityTypeTags.FREEZE_IMMUNE_ENTITY_TYPES) - Automatically removed if entity is on fire or in lava
FrozenSolidEffect.java:15-31
COLLECTED_SOUL
BENEFICIALColor:
0x01d9cf
Description: Increases soul spell power per stack.
Attribute Modifiers:
SOUL_SPELL_POWER: +0.10 per stack (ADD_VALUE)
GRIEVOUS_WOUNDS
HARMFULColor:
0x01d9cf
Description: Reduced healing and increased incoming damage.
Attribute Modifiers:
DAMAGE_TAKEN: +5% (ADD_MULTIPLIED_TOTAL)HEALING_TAKEN: -10% (ADD_MULTIPLIED_TOTAL)
FROSTED
HARMFULColor:
0x3beeff
Description: Decreased movement speed.
Attribute Modifiers:
GENERIC_MOVEMENT_SPEED: -5% per stack (ADD_MULTIPLIED_TOTAL)
- Converts to FROZEN_SOLID when amplifier reaches configured threshold
- Cannot be applied to freeze-immune entities
- Automatically removed if entity is on fire or in lava
- Removed if FROZEN_SOLID is already active
FrostedEffect.java:16-32
BLEEDING
HARMFULColor:
0xdd4e00
Description: Damages the target over time.
Special Behavior:
- Base damage:
1.0 + amplifierper tick - Damage scales with target’s missing health:
- ≤75% HP: +1% max health
- ≤50% HP: +2.5% max health (additional)
- ≤25% HP: +5% max health (additional)
- Sets
timeUntilRegen = 0to prevent natural regeneration - Cannot affect entities with
BLEEDING_IMMUNEtag - Update interval: Every 40 ticks (2 seconds) at amplifier 0, minimum 20 ticks
- Damage dealt through
BleedingDamageSource
BleedingEffect.java:17-36
FEAR
HARMFULColor:
0x01d9cf
Description: Reduces attack damage.
Attribute Modifiers:
GENERIC_ATTACK_DAMAGE: -25% (ADD_MULTIPLIED_TOTAL)
- Configured with
EntityActionsAllowed.INCAPACITATE
STAGGER
HARMFULColor:
0xb3b3b3
Description: Reduces armor, attack damage & movement speed and incapacitates the target.
Attribute Modifiers:
GENERIC_ATTACK_DAMAGE: -80% (ADD_MULTIPLIED_TOTAL)GENERIC_ARMOR: -80% (ADD_MULTIPLIED_TOTAL)GENERIC_MOVEMENT_SPEED: -80% (ADD_MULTIPLIED_TOTAL)
- Configured with
EntityActionsAllowed.INCAPACITATE
SOAKED
HARMFULColor:
0x01d9cf
Description: Soaking the target with water extinguishes fire, more vulnerable to frost, lightning and water spells.
Spell Vulnerabilities:
- Lightning:
15% base + 10% per power + 0% crit - Frost:
15% base + 0% per power + 30% crit
- Automatically extinguishes fire when applied to burning entities
- Spawns water mist and smoke particles when extinguishing
- Plays fire extinguish sound effect
- Removed after extinguishing fire or when entering lava
SoakedEffect.java:18-49
CARVE
HARMFULColor:
0xdd4e00
Description: Reduces armor and increases damage taken.
Attribute Modifiers:
GENERIC_ARMOR: -10% (ADD_MULTIPLIED_BASE)DAMAGE_TAKEN: +5% (ADD_MULTIPLIED_BASE)
ADD_MULTIPLIED_BASE operation instead of ADD_MULTIPLIED_TOTAL.
FATAL_POISON
HARMFULColor:
0x5d2f8c
Description: Inflicts damage over time, and can kill both undead and non-undead mobs.
Special Behavior:
- Deals
1.0 + amplifiermagic damage per tick - Update interval: Every 25 ticks (1.25 seconds)
- Bypasses undead immunity (unlike vanilla poison)
- Cannot affect entities with
POISON_IMMUNEtag - Damage dealt through
PoisonDamageSource
FatalPoisonEffect.java:17-22
IGNITED
HARMFULColor:
0xFF6600
Description: Burns the target, dealing damage over time and reduces healing. The target cannot move or attack.
Attribute Modifiers:
HEALING_TAKEN: -10% (ADD_MULTIPLIED_BASE)
- Deals fire damage:
1.0 + (amplifier * 0.1)per tick - Update interval: Every 10 ticks (0.5 seconds)
- Sets
timeUntilRegen = 0to prevent natural regeneration - Incapacitates the target (cannot move or attack)
IgnitedEffect.java:19-25
Registration
All effects are registered in theMRPGCEffects.register() method:
MRPGCEffects.java:204-218
Usage Example
Applying effects to entities:Attribute Modifier Operations
- ADD_VALUE: Adds the value directly to the attribute
- ADD_MULTIPLIED_BASE: Multiplies the base value by (1 + modifier)
- ADD_MULTIPLIED_TOTAL: Multiplies the final value by (1 + modifier)
See Also
- Entity Attributes - For attribute definitions
- Custom Methods - For helper methods like
applyStatusEffect()