Links
Tags
Creators
Details
1.0.3
Compatibility
Changes
🛡️ Mobs Blocker Changelog 🛡️
Version 1.0.3
New Features:
-
Activate Auto Ban 🚀
- Added the ability to activate auto ban for mobs using the command:
/gamerule autoBanMob true. - Automatically adds the mob type to the ban list file when a mob dies, if it is not an excepted mob.
- Added the ability to activate auto ban for mobs using the command:
-
Ban List File:
mobs.oas📄- Added functionality to manually manage banned mobs by adding their types to the
mobs.oasfile. - Ensures that mobs listed in this file will no longer spawn in your world.
- Added functionality to manually manage banned mobs by adding their types to the
-
Exceptions Management:
auto_ban_except.oas🚷- Introduced a file to specify mobs that should never be banned, even if auto ban is activated.
- Allows exclusion of all mobs from a specific mod by adding a line in the format
mod_name:*. For example,minecraft:*will exclude all Minecraft mobs from being banned.
Improvements:
-
Optimized Exception Handling 🔧
- Improved the logic to check if a mob type is in the exception list before adding it to the ban list.
- Supports prefix-based exceptions, allowing broader control over mob types from specific mods.
-
Streamlined File Operations 💾
- Enhanced file reading and writing operations for better performance and reliability.
- Ensured proper handling of non-empty lines and directory creation.
Bug Fixes:
-
Fixed Exception File Reading Issue 🐞
- Resolved an issue where the exception file was not being read correctly if it contained empty lines.
-
Error Handling Enhancements 🛠️
- Improved error handling during file operations to provide more informative error messages.
General Enhancements:
- Code Optimization ⚡
- Refactored code for better readability and maintainability.
- Removed unnecessary
System.outmessages for a cleaner console output.
Enjoy the new features and improvements in Mobs Blocker 1.0.3! 🌍🔒
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:W0JWCVNo:ZcNbbJka"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:W0JWCVNo:ZcNbbJka"
}

