NoobGuard
A minimal, server-side NeoForge mod to prevent mobs from targeting certain players.
About this Mod
NoobGuard
NoobGuard is a server-side only Minecraft NeoForge mod (1.21.x) designed to provide a "peace mode" for specific players, allowing them to explore and interact with the world without facing hostile mobs when they are alone or in the presence of other "guarded" players. This is especially useful for players who prefer a less challenging experience or for younger players.
Features
- Guarded Players: Prevents hostile mobs from targeting or damaging specific players when they are alone or only in the company of other guarded players.
- Hostile Entity Management:
- Prevents hostile mobs from targeting or damaging guarded players.
- Prevents hostile mobs from spawning near guarded players if configured.
- Allows the option to drop loot from hostile mobs killed by the plugin, or simply removes them without loot.
- Configurable Alone Distance: Set a configurable distance in blocks around a player, defining how far they need to be from other non-guarded players to trigger peace mode.
Installation
- Install Minecraft NeoForge.
- Download the NoobGuard mod file.
- Place the NoobGuard mod file into the
modsfolder of your Minecraft directory. - You will find the configuration file
noobguard-common.tomlin theconfigfolder of your Minecraft Server directory.
Usage
- After installation, launch the game.
- Add the UUIDs of guarded players in the
noobguard-common.tomlconfig file, or edit via the config screen in-game if supported.
Configuration Options
NoobGuard offers the following customizable options:
- preventSpawning: Boolean (
falseby default). Set totrueto prevent hostile entities from spawning near guarded players. - dropLoot: Boolean (
falseby default). Set totrueto enable loot drops from hostile mobs removed by the mod. - aloneDistance: Integer (default is
32blocks). Defines the distance around a guarded player to check for other players. - guarded-users: A list of UUIDs for players who should be protected. Only these players will be shielded from hostile entities.
Example Configuration
In noobguard.toml:
preventSpawning = true
dropLoot = true
aloneDistance = 40
guarded-users = ["uuid1", "uuid2", "uuid3"]
Replace uuid1, uuid2, and uuid3 with the actual UUIDs of the players you wish to guard.
Events
NoobGuard leverages the following events:
- LivingChangeTargetEvent: Prevents hostile mobs from targeting guarded players when peace mode is active.
- EnderManAngerEvent: Stops Enderman from targeting guarded players.
- FinalizeSpawnEvent: Prevents hostile mob spawning near guarded players.
- LivingIncomingDamageEvent: Cancels incoming damage to guarded players from hostile entities.
Logging
NoobGuard logs actions and events such as target prevention, entity removal, and spawn prevention for debugging and monitoring purposes under the DEBUG level.
License
This project is licensed under the MIT License. See LICENSE for details.
Available Versions
How to Install NoobGuard on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set neoforge Loader
In the panel under "Egg", select the neoforge loader and matching Minecraft version (1.21.3).
Install Mod
Open the mod browser in the dashboard and search for "NoobGuard". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.3, 1.21.2, 1.21.1 (+1 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
NoobGuard server crashes on startup – what to do?
Most common cause: wrong neoforge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.3). You can switch loaders with one click in the panel.
Is NoobGuard compatible with neoforge?
NoobGuard officially supports neoforge for Minecraft 1.21.3, 1.21.2, 1.21.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with NoobGuard – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if NoobGuard consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install NoobGuard with just one click on your server.