A minimal, server-side NeoForge mod to prevent mobs from targeting certain players.
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.
mods folder of your Minecraft directory.noobguard-common.toml in the config folder of your Minecraft Server directory.noobguard-common.toml config file, or edit via the config screen in-game if supported.NoobGuard offers the following customizable options:
false by default). Set to true to prevent hostile entities from spawning near guarded players.false by default). Set to true to enable loot drops from hostile mobs removed by the mod.32 blocks). Defines the distance around a guarded player to check for other players.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.
NoobGuard leverages the following events:
NoobGuard logs actions and events such as target prevention, entity removal, and spawn prevention for debugging and monitoring purposes under the DEBUG level.
This project is licensed under the MIT License. See LICENSE for details.