This is first early version of EnchantedMobs v2 use as your own risk!
The configuration files for EnchantedMobs v1 will no longer work in v2, you have to regenerate whole file to use v2 version.
EnchantedMobs v2 is here
Version 2.0.0 introduces a complete overhaul of the plugin’s power system, along with many new triggers, conditions, modifiers, abilities, and matching rules.
Important Changes
- Reworked the Mob Power configuration structure.
- Power execution now follows a unified flow:
Trigger -> Conditions -> Modifiers -> Abilities
- Some v1 Power configurations are not directly compatible with v2.
- Back up your existing configuration files and follow the migration guide before upgrading.
Power Triggers
Added and reorganized 18 built-in triggers:
- on-spawn
- on-tick
- on-target-tick
- on-target
- on-untag
- on-damage
- on-damage-by-entity
- on-attack
- on-melee-attack
- on-regain
- on-combust
- on-death
- on-shoot-bow
- on-projectile-launch
- on-projectile-tick
- on-projectile-hit
- on-explode
- on-creeper-explode
Added projectile power tracking, allowing powers captured when a projectile is launched to continue executing while the projectile is flying and when it hits something.
Power Conditions
Added and improved 38 Power Conditions, including support for checking:
- Entity types, health, potion effects, and entity states
- Player sneaking, gliding, food level, and on-ground state
- World, weather, time, height, distance, and light level
- Damage amount, damage cause, damage origin, and melee state
- Regain amount, combustion duration, explosion radius, and explosion yield
- Target reasons, first attacks, and projectile headshots
- Random checks and logical combinations such as OR and NOT
- Entity matching through MatchEntityFormat
Power Modifiers
Added and improved 10 Power Modifiers:
- damage
- heal
- duration
- yield
- radius
- armor_pierce
- revive
- modify_projectile
- replace_projectile
- stack_damage_modifier
Numeric modifiers support the following operations:
- SET
- ADD
- SUBTRACT
- MULTIPLY
- DIVIDE
- MIN
- MAX
Abilities
The Ability system now includes 52 built-in abilities.
New abilities include:
- any_of
- experience
- set_food
- set_velocity
- swap_health
- swap_locations
- swap_potion_effects
Other ability categories include:
- Damage, healing, attributes, and entity states
- Particles, sounds, and vanilla animations
- Lightning, explosions, sonic booms, evoker fangs, and arrow rain
- Pulling, teleportation, and location swapping
- Projectile launching, homing, modification, and replacement
- Equipment enhancement, item replacement, disarming, and inventory shuffling
- Delays, repeated execution, conditional branches, and usage limits
- Entity summoning, command execution, messaging, and MythicMobs skills
any_of
Added a new weighted-random ability:
- Use rate to configure each child ability's selection weight
- Use amount to select multiple child abilities at once
- The same child ability cannot be selected more than once during a single execution
- Selected child abilities still perform their own Condition, Random, Cooldown, and Times checks
summon
The summon ability now supports:
- entities: Randomly selects an entity type from a list
- set-target: Assigns an attack target to the summoned mob
- set-none-drops: Prevents summoned mobs from dropping loot and equipment
- Adding specific or randomly selected Powers to summoned entities
Projectile Abilities
Added and improved support for:
- Modifying projectile speed, spread, and gravity
- Modifying arrow damage, critical state, and piercing level
- Replacing projectiles with TNT, potions, or other projectile types
- Preserving velocity, shooter information, and Power tracking after replacement
- Running Powers while projectiles are flying or when they hit something
MatchItemFormat
MatchItemFormat now includes 22 item-matching rules:
- Vanilla materials and material tags
- Third-party plugin item IDs
- Item names, lore, and rarity
- Direct enchantments and stored enchantments
- Enchantment count and enchantment compatibility
- Partial or complete ItemFormat matching
- String, Byte, Int, and Double NBT matching
- Logical combinations using any and not
MatchEntityFormat
MatchEntityFormat now includes 13 entity-matching rules:
- Entity type, name, health, and entity tags
- Monster and ranged-entity checks
- PersistentDataContainer matching
- Main-hand, off-hand, and armor equipment matching
- MythicMobs internal IDs
- LevelledMobs levels
- Logical combinations using any and not
Dynamic Values
More configuration fields now support:
- {level}
- Power Variables
- Level-based selection expressions
- Random value ranges
- Runtime Trigger variables
- {original}
- {source_health}
- {target_health_percent}
- {distance}
- PlaceholderAPI placeholders
Power Display Control
Added:
When enabled, the Power continues to function normally but is hidden from:
- The mob's displayed name
- The BossBar Power list
The default HealthMultiplier Power is now hidden. Other Powers remain visible by default.
...Many other small changes and fixes not included in this changelog...