
Spawn protection
You can select area an area with command and players in combat cant access that area. When they try to go there they get knockbacked 3 blocks. Combat is 30...
00—paperServer1.21.10mod
SpawnProtection
- Added a spawn protection safe zone plugin with one configurable cuboid region saved in the config.
- Configure the region in-game with
/spawnprotection pos1,/spawnprotection pos2, and/spawnprotection save;/spawnprotection infoshows bounds and/spawnprotection clearremoves it (permissionspawnprotection.admin, op by default). - Players who deal or take damage enter combat for 30 seconds; death clears combat. Players flagged as in combat are prevented from entering the protected area, are knocked back roughly 3 blocks, and see a reminder with remaining combat time.
- Non-player mobs cannot enter the protected area: movement into the region is cancelled with a knockback, and mob spawns inside the region are blocked for a fully safe zone.
Known limitations / suggestions:
- Only one protected region is supported at a time; expand via additional region storage if needed.
- Knockback uses velocity pushes; extreme speed effects may slightly change the exact distance.
- Region Y-bounds are whatever you select; pick both corners carefully to cover the height you want.
Server Validation
✅ Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.