Mobs Blocker

Disable the spawning of specific mobs in Minecraft
Back to Files

mobs_blocker-1.0.3-neoforge-1.20.6.jar

File namemobs_blocker-1.0.3-neoforge-1.20.6.jar
Uploaded
Jul 17, 2024
Downloads
60
Size
77.2 KB
Mod Loaders
NeoForge
File ID
5540185
Type
R
Release
Supported game versions
  • 1.20.6

Curse Maven Snippet

NeoForge

implementation "curse.maven:mobblocker-1002185:5540185"

Learn more aboutΒ Curse Maven

What's new

πŸ›‘οΈ Mobs Blocker Changelog πŸ›‘οΈ

Version 1.0.3


New Features:

  1. 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.
  2. Ban List File: mobs.oas πŸ“„

    • Added functionality to manually manage banned mobs by adding their types to the mobs.oas file.
    • Ensures that mobs listed in this file will no longer spawn in your world.
  3. 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:

  1. 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.
  2. 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:

  1. Fixed Exception File Reading Issue 🐞

    • Resolved an issue where the exception file was not being read correctly if it contained empty lines.
  2. Error Handling Enhancements πŸ› οΈ

    • Improved error handling during file operations to provide more informative error messages.

General Enhancements:

  1. Code Optimization ⚑
    • Refactored code for better readability and maintainability.
    • Removed unnecessary System.out messages for a cleaner console output.

Enjoy the new features and improvements in Mobs Blocker 1.0.3! πŸŒπŸ”’

This mod has no related projects