NoSpawn
Disable selected mob spawns with commands, permissions, and persistent config.
介绍
NoSpawn
NoSpawn is a Fabric mod that disables spawning for selected mob types using in-game commands. It is useful for server management, modpack balancing, custom maps, and any setup that needs precise control over mob spawning.
Features
- Disable any single mob type or multiple mob types, not only the example mobs.
- Supports vanilla mobs and registered modded mob types.
- Supports both
/nsand/nospawn. - Works in singleplayer, LAN worlds, and dedicated servers.
- Saves disabled mob types to
config/nospawn.json, so changes persist after restarts. - Automatically switches between Chinese and English messages based on the player’s game language.
- Supports LuckPerms permission groups with OP fallback.
Commands
<type> is a mob ID, such as minecraft:creeper, minecraft:vex, or minecraft:phantom. These are examples only; you can use any valid mob ID. After typing /ns add or /nospawn add , Minecraft will show available mob suggestions.
/ns
/nospawn
/ns add <type>
/ns remove <type>
/nospawn add <type>
/nospawn remove <type>
Examples:
/ns add minecraft:creeper
/ns add minecraft:vex
/nospawn add minecraft:phantom
/ns remove minecraft:vex
Permissions
Either OP permission or a matching LuckPerms node is enough. nospawn.admin allows every NoSpawn command.
nospawn.admin
nospawn.use
nospawn.add
nospawn.remove
LuckPerms examples:
/lp group admin permission set nospawn.admin true
/lp group helper permission set nospawn.use true
/lp group helper permission set nospawn.add true
/lp group helper permission set nospawn.remove true
Compatibility
Minecraft: 1.21.4 - 26.1.1 official releases
Mod Loader: Fabric
Fabric Loader: 0.19.2+
Fabric API: required
Download the jar that matches your Minecraft version.
Author And Credits
- Developer: bentianjia
- Contributor: ZURAN_
Special thanks to ZURAN_ for the design inspiration and valuable testing opportunities.
Links
- Source code: https://github.com/bentianjia/NoSpawn
常见问题
NoSpawn 支持哪些 Minecraft 版本?
NoSpawn 支持 Minecraft Java 版 1.21.4–26.1.1,共 10 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
NoSpawn 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
评论
登录后评论和评分