Wiki 9Minecraft Wiki 9Minecraft
Configurable Mob Potion Effects Wiki › Guides › Configuring Mobs to Inflict Potion Effects on Hit

Configuring Mobs to Inflict Potion Effects on Hit

You can set up mobs to apply custom status effects to players or other entities whenever they deal damage in combat.

Setting up on-damage triggers

1. Open your server directory and go to ./config/configurablemobpotioneffects/.

2. Open the ondamageeffects.txt file in a text editor.

3. Locate the mob you want to customize. All available mobs and potion effects are generated here and initially set to level 0.

4. Find the effect you want that mob to inflict on target entities upon attacking (for instance, setting Poison for zombies or Levitation for endermites).

5. Increase the level from 0 to your preferred value to enable the on-hit effect.

6. Save the file after making your edits.

7. Apply the updates immediately in your game session by entering /cmpe reload into the chat or server console.

Once reloaded, any time the configured mob damages another entity, the designated potion effect will automatically be applied to the target.