Creating a Custom Mob in mobs.yml
To create a custom mob in mobs.yml (located in plugins/EpicItems), add a unique mob ID as a top-level key and define its properties. Here's a concise example and key steps:
Code (YAML):
zombie_warrior:
type
: ZOMBIE
name
:
"&cZombie Warrior"
health
: 50.0
damage
: 10.0
speed
: 0.3
armor
: 5.0
equipment:
mainHand
: IRON_SWORD
chestplate
: IRON_CHESTPLATE
drops
:
- IRON_INGOT:3
- ROTTEN_FLESH:2
skills:
fire_strike:
type
: FIREBALL
trigger
: onTick
target
: NEAREST_PLAYER
chance
: 0.1
cooldown
: 100
range
: 15.0
params:
damage
: 8.0
spawn:
biomes
:
[PLAINS, FOREST
]
chance
: 0.02
Steps to Create a Mob:
- Set Mob ID: Use a unique ID (e.g., zombie_warrior).
- Define Type: Specify the entity type (e.g., ZOMBIE, SKELETON).
- Set Attributes: Configure health, damage, speed, armor, and followRange.
- Customize Name: Add a colored name with name (e.g., &cZombie Warrior).
- Add Equipment: List gear in equipment (e.g., mainHand: IRON_SWORD).
- Define Drops: Set loot in drops (e.g., IRON_INGOT:3).
- Add Skills: Create abilities under skills with type, trigger, target, chance, cooldown, and params.
- Optional Spawning: Use spawn to set biomes and chance for natural spawning.
- Save and Test: Save mobs.yml, reload with /epicmobs reload, and test with /spawnmob zombie_warrior.
Tips:
- Keep skill chance low (e.g., 0.1) to balance gameplay.
- Check the console for config errors after reloading.
- Use conditions (e.g., healthBelow: 0.5) for conditional skill triggers.
Refer to the full documentation for advanced options like AI settings or faction grouping.