Skip to content
Joe Goett edited this page Jul 2, 2015 · 1 revision

Spawn limits are a way to limit when entities are able to spawn, such as a maximum number allowed or disabled completely. Spawn limits usually have a filter to go along with them so they only effects very certain entities spawning.

This allows keeping things like mob farms and grinders under control by limiting the number of entities allowed within a chunk. It can also be used to keep destructive mobs out of some dimensions, like keeping Ghasts out of the overworld.

Spawn Limits are typically stored as JSON objects, as shown by the examples below.

Disabled

Disables spawning completely

Value - None

Ex:

{
  "type": "Disabled"
}

ServerCount

Limits based on number of entities in the server

Value - Maximum allowed

Ex:

{
  "type": "ServerCount",
  "value": 50
}

WorldCount

Limits based on number of entities in the world

Value - Maximum allowed

Ex:

{
  "type": "WorldCount",
  "value": 50
}

ChunkCount

Limits based on number of entities in the chunk range

Value - Object holding the limit and the range Range is the number of chunks from the chunk the entity is standing. 0 means only that chunk, 1 means a 3x3 area centered around the entity, etc

Ex:

{
  "type": "ChunkCount",
  "value": {
    "limit": 5,
    "range": 1
  }
}
Clone this wiki locally