Keeping Your Minecraft World Immersive with the Infectious Mod CleanUp
Modded Minecraft can breathe incredible life into your survival adventures, but sometimes a single mod introduces elements that clash with the atmosphere you are trying to build. The Infectious mod, for example, adds a host of unique zombies and themed items that might feel out of place in a carefully curated medieval or tech-focused pack. Instead of removing the entire mod and losing its other features, you can now silently prune exactly what you do not want. The Infectious Mod CleanUp (Mocagem Survival Tweak) is a lightweight KubeJS script that permanently removes unwanted mobs and items without touching the original mod files, keeping your immersion intact and your game stable.
What Exactly Does This Script Do?
This is not a typical config-heavy mod. It is a background script that runs the moment you load your world, and it stays active with zero player interaction. There are no toggles to flip, no config files to edit, and no setup beyond dropping a single file into the correct folder. The cleanup handles three distinct tasks, all designed to preserve the survival experience you want.
Entity Blacklist – Stop Unwanted Mobs from Spawning
The core feature is a precise entity blacklist. All listed Infectious zombies are completely prevented from spawning anywhere in the world, whether on the surface, in caves, or during special events. The script intercepts spawn attempts at the game mechanic level, so you will never stumble upon a mob that breaks your immersion. This keeps the challenge focused on the creatures you actually want to face, without disabling the entire mod’s spawning system.
Item Removal and JEI Integration
Visual clutter in your inventory and recipe viewer can be just as distracting as an out-of-place mob. The script removes the listed items and their spawn eggs from all crafting recipes, effectively erasing them from your progression path. If you also use the optional JEI addon script, those items are hidden from the Just Enough Items interface, so they never appear in your search results or recipe lookups. The production-ready version goes even further: it automatically clears these items from player inventories every 100 ticks (roughly every five seconds), ensuring no stray eggs or materials sneak in through creative mode or leftover loot bags.
Always Active, Completely Silent
There is no chat spam, no pop-up notifications, and no performance hit to worry about. The cleanup runs silently in the background, checking and adjusting the game state on a regular schedule. You can focus on building, exploring, and surviving while the script handles the housekeeping. This approach is ideal for modpack creators who want to enforce a consistent theme without overwhelming players with configuration options.
Why Choose a Script Over Traditional Configs?
Many mods offer in-game configs, but they often require players to restart the game or navigate complex files. A KubeJS script like this one works immediately and does not alter the original mod’s internals. If you ever decide to remove the cleanup, simply delete the script file and everything returns to normal. This makes it perfect for server administrators who want to tailor the experience for their community without distributing custom mod edits. Additionally, the script’s approach to item removal is more thorough than a simple recipe disable, because it actively clears existing items from inventories, preventing any accidental contamination.
Managing scripts across multiple modpacks can become tedious, but tools exist to streamline the process. For example, if you frequently test different server-side tweaks, the foxygame.net launcher lets you download and organize KubeJS scripts directly from its menu, making it a flexible hub for all your modded survival adjustments. This kind of integration keeps your setup clean and saves time when you are switching between different thematic packs.
Installation – A Single File Drop
Getting the Infectious Mod CleanUp running is straightforward, even if you have never used KubeJS before. Follow these steps and you will be ready in under a minute.
- Download the script file – it comes as either a .zip or a standalone .js file. No external links are needed; you can obtain it directly from the modpack’s distribution platform or trusted script repositories.
- Locate your Minecraft instance folder. If you are using a launcher that supports instance management, right-click the pack and open the folder.
- Navigate to the kubejs/server_scripts/ directory. If the folder does not exist, create it manually.
- Place the script file inside that folder. If you downloaded a .zip, extract its contents first so only the .js file remains.
- Launch the game. The script activates immediately and requires no further configuration.
That is the entire setup. The script will now prevent the blacklisted mobs from spawning and begin removing the specified items. If you ever want to verify it is working, you can check the game log for a silent load confirmation, but you will notice the difference simply by playing.
Compatibility and Modpack Integration
This tweak is designed to work alongside the Infectious mod without conflicts. It does not edit any of the mod’s core files, so updates to the mod will not break the script unless the internal mob or item IDs change drastically. It is also fully compatible with other KubeJS scripts, meaning you can stack multiple tweaks in the same server_scripts folder. Just ensure that no other script attempts to modify the same entities in a conflicting way.
Because the cleanup runs purely through KubeJS, it requires that mod to be installed in your pack. Most modern modpacks already include KubeJS, but if yours does not, simply add it like any other mod. The script has no other dependencies, so you can drop it into any Forge or Fabric setup that supports KubeJS.
Perfecting Survival Immersion
The Infectious Mod CleanUp is a perfect example of how small, focused scripts can dramatically improve your Minecraft experience. By removing only the elements that clash with your vision, you keep the parts of the mod that add depth while eliminating distractions. Whether you are building a hardcore zombie apocalypse with a very specific enemy roster or a peaceful fantasy realm where certain creatures simply do not belong, this script gives you that control without complex configuration.
The automatic inventory clearing in the production version is especially valuable for multiplayer servers, where a single misplaced spawn egg could ruin the intended challenge. With the cleanup running, you can trust that the world stays exactly as you designed it, session after session.
Conclusion
Immersion in Minecraft is personal, and the tools you use should respect that. The Infectious Mod CleanUp (Mocagem Survival Tweak) delivers a silent, permanent solution to unwanted mobs and items, requiring no maintenance and no learning curve. By leveraging the power of KubeJS, it stays lightweight, compatible, and easy to remove if your needs change. For modpack authors and solo players alike, this script is a must-have whenever the Infectious mod’s extra content threatens to break the mood. Drop it in, forget about it, and enjoy a world that feels exactly the way you want it to.