[Fabric 1.21.1] V0.11.4
Curse Maven Snippet
What's new
V0.11.4:
New Features:
- Datapack-driven defensive triggers: when a Pokemon hits another entity, the defender can apply mob effects to
itself or to the attacker and scale the damage of that hit.
- Triggers live in
data/<namespace>/fof_ability_trigger/*.json; one file can be shared by several abilities. - Selectors:
abilitiesmatches Pokemon defenders only,entities/entityTypeTagsmatch any other living entity only. The two lookups never overlap, so a file can carry both. - Conditions: move type and move name (empty lists mean "any").
- Effects: any mob effect with amplifier, duration in ticks and a target (
selforattacker), or a direct heal (type: heal) using afractionof the max health or a flatamountof health points. - Damage multiplier:
super_effective,not_very_effective,no_effect,custom(withdamageMultiplierValue) or none. The first three reuse the multipliers from the Type Effectiveness config. ignoredByMoldBreakerdecides whether Mold Breaker (ability or move) bypasses the trigger; it defaults to true.- Shipped defaults: 17 abilities (Lightning Rod, Water Absorb, Volt Absorb, Earth Eater, Sap Sipper, Storm Drain,
Flash Fire, Well-Baked Body, Motor Drive, Dry Skin, Steam Engine, Thermal Exchange, Water Compaction, Justified,
Rattled, Levitate, Eelevate) and one entity example (
minecraft:magma_cubewill grand Resistance I for 30 seconds. It's weaker than Water Compaction ability because it's just a demo). Most turn the matching type intono_effect_multiplierand then heal a quarter of the max health (withheal(), not Instant Health or Regeneration) or grant a 30 second stat boost; Dry Skin also takes 1.25x Fire damage. See the files for the exact values.(Idk if anyone care, but Flash Fire ability only increase the Fire-type move damage in the core series, but I'm lazy so it works like Sap Sipper now) - New config option
activate_defensive_trigger(default true)./reloadapplies data changes.
- Triggers live in
- Config screen. Use command /fofconfig to open the screen. Can be accessed in the mod menu from the NeoForge side. Fabric side doesn't support the ModMenu currently.
- Add charge moves to melee attacks: when a Pokemon uses a charge move, it charges forward and damages every target
along the path.
- Charge moves are configured in
charge_moves; moves with a wider hit area go inwide_charge_moves(a larger radius and a taller hit box). A move listed inwide_charge_movesis also treated as a charge move, so it does not need to be repeated incharge_moves. - Charge distance, duration in ticks, hit box size and damage multiplier are configurable. The hit box is a multiplier of the Pokemon's own collision box; wide charges use higher multipliers.
- A minimum charge distance(
min_charge_distance, default 2 block) keeps the lunge even when the target is already in melee range; the Pokemon passes the target in that case. - Type-based particles fill the hit box while charging.
- The move stays in use for the charge duration, so its cooldown cannot start in the middle of a charge.
- Special moves can charge too: while the move effect system is enabled, a charge move is always executed as a contact move, regardless of its damage category.
- Charge moves are configured in
- Moves that deal recoil damage can inflict the damage to the user now. Magic Guard and Rock Head can prevent that. Reckless can increase the damage of the Pokemon if the Pokemon is using moves with recoil damage.
Bug Fixes:
- Fix the bug that wild Pokemon can be hurt even if player hurting pokemon is disabled.
- An arrow that hits an entity other than the one it was fired at rolls the damage again for the actual victim, as long as the shooter is still around.
- A move effect that is triggered on-use/on-hit no longer applies when the move has no effect against the target.
This mod has no additional files