Limit Mob Spawn

Quick rating

Community listing page, reviews here may not be monitored by the author.

Limit Mob Spawn

By Kotori316Owner

No reviews yet

Limit spawning mobs

Mod Loaders
Minecraft

About

Description

This mod allows you to prevent mobs from being spawned.

In this mod, I created these conditions.

  • Biome
  • Entity type (zombie, skeleton, bat, etc.)
  • Entity classification (Monster, Creature, Water Creature, Water Ambient, etc.)
  • Dimension (over world, nether, the end)
  • Position (x, y, z coordinate)
  • Spawn reason (natural, spawner, spawn egg, etc.)
  • Light level

You can make own rule by combining the conditions.

Rules can be added/removed via command.

  • /limitmobspawn query
  • /limitmobspawn add
  • /limitmobspawn remove

To change the number of mobs spawned from default Monster Spawner, execute this(1.18 only)

  • /limitmobspawn spawner spawnCount <new count>

To change the limit of numbers of mobs which can newly spawn, execute this.

  • /limitmobspawn category_limit set <category> <limit>

These are the default values in vanilla.

  • Monster: 70
  • Creature: 10
  • Ambient(bats): 15
  • Axolotls: 5
  • Underground Water Creature: 5
  • Water Creature: 5
  • Water Ambient: 20

To add rules, make data pack. In the data pack, create "limit-mob-spawn" directory and place rule file(json) in the dir. See Official Wiki for more detail of data pack.

datapacks in each world

└─pack.mcdata

└─data

    └─(name space)
         └─limitmobspawn
             └─demo1.json

             └─other rule files

Follow these link to see example rules.

1.16.5: this

1.17.1: this

1.19.2 Example Datapack


See this page for change log.

The LimitMobSpawn project is a Minecraft mod designed to control the spawning of mobs, effectively preventing them from being spawned under certain conditions. Here are the key details about this project:

  • Purpose: The mod helps players manage and limit the spawning of mobs in their Minecraft worlds, making the game more customizable and potentially reducing unwanted mob encounters.
  • Language: The entire mod is written in Java, which is the primary language for Minecraft mod development.
  • Functionality: By using this mod, players can specify conditions or areas where mobs should not spawn, enhancing gameplay and providing more control over the in-game environment.
  • Usage: Players need to install the mod into their Minecraft game. Once installed, they can configure the mod settings to establish rules for mob spawning.

This mod is particularly useful for players looking to create more controlled or themed environments within their Minecraft worlds.

To change the settings for the LimitMobSpawn mod, follow these steps:

  1. Locate the Configuration Directory: The mod loads settings from data packs. Place the limitmobspawn directory at the same level as recipes or advancements in your Minecraft world save directory.

  2. Add JSON Files with Rules: Inside the limitmobspawn directory, add JSON files that contain the rules for mob spawning. You can find example JSON files here.

  3. Refer to the Wiki: For detailed examples and additional settings, check the Wiki.

You can view more details and the complete README file.

CurseForge: https://legacy.curseforge.com/minecraft/mc-mods/limit-mob-spawn