# How to enable or disable mob spawning

## **Introduction** <a href="#id-4wsyr3lg2r3j" id="id-4wsyr3lg2r3j"></a>

Greetings! If you're reading this guide, it's because you need to enable or disable mob spawning. This guide will teach you step-by-step how to do it.

## **🚀 Option #1** <a href="#l6gcpvw6y8uo" id="l6gcpvw6y8uo"></a>

**File Modifications**

<div align="left"><figure><img src="/files/3qQyBGupPrJ2f9rgOwff" alt=""><figcaption></figcaption></figure></div>

Start by going to your server and selecting the Files option. We'll search for this file:

**server.properties**

<div align="left"><figure><img src="/files/AQ6GgA78mdmIyPTx4iHY" alt=""><figcaption></figcaption></figure></div>

## **Text to localize** <a href="#id-63pvticgekyy" id="id-63pvticgekyy"></a>

Once you have located server.properties you must look for the option called

[spawn-monsters=(true or false)](#user-content-fn-1)[^1]

<div align="left"><img src="/files/bBUSNH1He1ZyyUZkRxfp" alt=""></div>

## **🚀 Option #2** <a href="#x4268fudn63y" id="x4268fudn63y"></a>

Go to your server and type the command <kbd>/gamerule doMobSpawnin</kbd>

Now simply type whether you want to enable or disable it.

[An example would be](#user-content-fn-2)[^2] [<kbd>/gamerule doMobSpawning (true or false)</kbd>](#user-content-fn-3)[^3]![](/files/DBpqouOjN2u8w0sFEGvy)

Thanks for reading the guide!

{% hint style="success" %}
Done! You should now know how to enable or disable mob spawning.
{% endhint %}

[^1]: This setting allows mobs to spawn naturally in the game world. If you prefer to disable mob spawning, you can change "true" to "false."

[^2]: Make sure you have operator mode (OP) if you don't have OP the command won't work

[^3]: This command allows mobs to spawn naturally in the game world. If you prefer to disable mob spawning, you can change "true" to "false" in the command.


---

# 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.plenix.net/guides/minecraft-guides/how-to-enable-or-disable-mob-spawning.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.
