1.0.0
Compatibility
Required content
Changes
SimpleMobSwitch Mod - ChangeLog
[1.0.0] - 2025-5-30
🎉 Initial Release
✨ New Features
-
Dynamic Mob Cap Control System
- Automatically spawns dummy mobs (Shulkers) based on player count
- Basic formula:
Player count × 70 = Required dummy mobs - Real-time mob count adjustment
-
Command System
/mobswitch on- Enable mob switch/mobswitch off- Disable mob switch- Requires OP permission (level 2+)
-
Persistence System
- State restoration after server restart
- World data saved in NBTCompound format
- Dummy mob UUID management
-
Spawn Chunk Method
- Utilizes always-loaded spawn chunks
- Stable chunk loading
- Independent from nether portal methods
🔧 Technical Specifications
- Supported Version: Minecraft 1.20.x + Fabric
- Placement: 3 chunks away from spawn chunk (Y=1000)
- Entity Type: Shulker (
EntityType.SHULKER)
⚡ Performance Optimization
-
AI Processing Optimization
- Dummy mob AI disabled (
setAiDisabled(true)) - Physics disabled (
setNoGravity(true)) - Sound processing disabled (
setSilent(true))
- Dummy mob AI disabled (
-
Visual Optimization
- Dummy mobs invisible (
setInvisible(true)) - Custom name hidden (
setCustomNameVisible(false)) - Invulnerable to prevent accidental removal (
setInvulnerable(true))
- Dummy mobs invisible (
-
Memory Efficiency
- Lightweight UUID-based state management
- Minimal data storage
🛡️ Safety Features
-
Error Handling
- Proper handling of spawn failures
- State consistency checking
- Detailed logging (INFO, ERROR levels)
-
Server Lifecycle Management
- Automatic state restoration on startup
- Proper cleanup on shutdown
- Dynamic adjustment on player join/leave
📋 Limitations
- Dimension Limitation: Overworld only
- Permission Requirement: Requires OP permission (level 2+)
- Impact Scope: Affects server-wide mob spawning
🔍 Implementation Details
- Mixin Usage: Minimal intervention to MinecraftServer class
- Non-invasive Design: Minimal impact on existing game systems
- Fabric API: Standard Fabric mod development practices
📖 Usage
- Place the mod in the server's
modsfolder - Start the server
- Execute
/mobswitch oncommand with OP permission - Mob spawning will be automatically controlled based on player count
🎯 Target Users
- Server administrators
- Mob farm operators
- Performance-focused server operators
- Players who want to control mob spawning for building projects
🔗 References
Warning: This mod affects server-wide mob spawning. Always create backups and test in a development environment before use.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:VheE6g9B:xxt7SMKh"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:VheE6g9B:xxt7SMKh"
}

