# Mob Stacking

To optimize server performance and enhance gameplay, Theatria uses a mob stacking plugin in the **Mining World**. This system helps reduce lag by combining multiple mobs of the same type into a single "stacked" entity.

## How Mob Stacking Works

* When mobs spawn in the Mining World, they automatically stack together if they are of the same type and close to each other.
* The stack is represented as a single mob with a number displayed above it, indicating how many mobs are in that stack.
* For example, if the number "10" appears above a mob, it means the stack contains 10 mobs.

## Interacting with Stacked Mobs

* **Killing a stacked mob:** When you kill one mob in the stack, the number decreases by one, and the stack remains until all mobs are defeated.
* **Using spawners:** If you place a spawner in the Mining World, mobs spawned from it will also stack. This ensures efficient farming while maintaining server performance.

## Benefits of Mob Stacking

* **Improved server performance:** By reducing the number of individual mobs, the plugin helps minimize lag, especially in areas with a high mob density.
* **Streamlined gameplay:** Players can still gather resources and XP efficiently without being overwhelmed by large numbers of individual mobs.

***

### Related articles

* [Spawners](/minecraft/gameplay-features/spawners.md)
* [Custom Mob Rules](https://github.com/JL-III/Theatria/blob/master/docs/gameplay-features/mob-rules.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.playtheatria.com/minecraft/gameplay-features/mob-stacking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
