跳到正文

Spawn Rules

作者:moofy

A server-side Fabric mod that lets you block specific mobs and animals from spawning on your server.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Spawn Rules

A server-side Fabric mod that lets you block specific mobs and animals from spawning. It cancels spawns early in the tick loop to save server performance.

Key features:

  • Blocks spawns before the mob entity is created, which reduces server CPU load.
  • Prevents “Can’t spawn entity of type” warning spam in the console logs.
  • Player-spawned entities (spawn eggs, summon commands, breeding, buckets, and portal travel) are always allowed.
  • Includes an in-game GUI to change settings without editing files.

How to use the In-Game GUI (Click to expand)

Run the command /spawnrules config in-game (requires operator level 2).

  1. A menu will open showing all survival mobs in the game (including modded ones).
  2. Hovering over a mob shows if it is allowed or blocked in the Overworld, Nether, and End.
  3. Click any mob to toggle its spawn status for those dimensions.
  4. Changes save to disk and update in memory immediately.
Configuration File Example (Click to expand)

You can also edit the config file directly at config/spawnrules.json. Here is an example config that blocks zombies in the overworld:

{
  "dimensions": {
    "minecraft:overworld": {
      "blocked_types": [
        "minecraft:zombie"
      ],
      "blocked_categories": []
    }
  }
}
  • blocked_types: A list of entity IDs (like minecraft:zombie) to block in that dimension.
  • blocked_categories: A list of categories to block. The categories are:
  • monster (zombies, creepers, skeletons, etc.)
  • creature (cows, pigs, sheep, etc.)
  • ambient (bats)
  • water_creature (squids, dolphins)
  • water_ambient (tropical fish)
  • axolotls
  • underground_water_creature (glow squids)
Commands (Click to expand)
  • /spawnrules config – Opens the visual settings GUI (Requires OP level 2).
  • /spawnrules reload – Reloads the settings from the configuration file (Requires OP level 2).

常见问题

Spawn Rules 支持哪些 Minecraft 版本?

Spawn Rules 支持 Minecraft Java 版 26.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Spawn Rules 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

moofy 的其他作品

查看全部 →