Epic Core Api Wiki › Guides › Lock Down Boss Entities and Prevent Escape
Lock Down Boss Entities and Prevent Escape
Immobilizing Your Boss
Keep boss entities exactly where you want them during fights or cutscenes.
1. Target your boss with /eca lockLocation <boss> <x y z> to freeze it at specific coordinates
2. The entity cannot move or be pushed away from that position
3. Use /eca setForceLoading <boss> to ensure chunks around the boss stay loaded, preventing despawn
4. Combine with /eca setInvulnerable <boss> if the boss should not take damage during setup phases
Controlling Health and Damage
Manage boss durability independently:
- Set exact health with
/eca setHealth <boss> <amount> - Lock max health at a value with
/eca lockMaxHealth <boss> <value>so healing effects cannot increase it - Prevent all regeneration using
/eca banHealing <boss> - Force damage onto the boss with
/eca hurt <boss> <amount>to bypass resistance mechanics
These tools let you create predictable, scripted boss encounters where positioning and health are guaranteed.