Download No Op Spawn Protection — Minecraft Mods — MetaMods
No Op Spawn Protection

No Op Spawn Protection

Active

Downloads

0

Last update

3 years ago

Versions

1.11.2 — 1.12.2
Server
Forge
Control
Utils

No Op Spawn Protection

The Spawn Protection Problem

Starting from version 1.8, Mojang developers changed how the spawn_protection setting in server.properties works. If there are no operators at the time of world creation, this setting is ignored and completely disabled. Even appointing an operator later doesn't activate spawn protection.

The Solution

This mod fixes this issue by establishing default spawn protection within a 16-block radius. You can configure the protection radius from 0 to 10000 blocks and precisely control what actions players can perform in the spawn area.

Important: The mod must be installed only on the dedicated server. It's not required on the client side and has no effect there.

Key Features

  • Protection and spawn configuration for the three main dimensions: Overworld, Nether, and The End
  • Detailed player action control:
    • Button and lever activation (circuits)
    • Door, gate, and trap door opening/closing
    • Access to chests, furnaces, and other containers
    • Block placement
    • Right-click item usage
    • Right-click block interaction
  • Commands for changing settings directly in-game without server reboot

Management Commands

Commands allow configuring the mod's operation during gameplay:

  • /sp-allow <action_type> <true|false> - allow/prohibit specific actions
  • /sp-debug <true|false> - debug mode
  • /sp-dimension <dimension> <true|false> - enable/disable protection for dimension
  • /sp-display <info_type> - display current settings
  • /sp-ignore_op <true|false> - account for operator permissions
  • /sp-radius <radius> - set protection radius

Debug mode can be useful for testing and troubleshooting.

Operational Details

Currently, the /sp-radius command sets the same protection radius for all three dimensions. Future versions plan to add independent configuration capability.

Important note: If you notice protection working more strictly than configured, edit the server.properties file and set the spawn-protection parameter to 0.

Limitations and Future Improvements

The current version doesn't block pressure plate activation since they don't generate events used by the protection mechanism.

Development plans:

  • Different protection radii for different dimensions
  • Support for custom dimensions
  • Protection against mob destruction
  • Explosion blocking
  • Other protection system extensions

Settings Visual Interface

The /sp-display command outputs a convenient summary of current protection parameters, making it easy to customize the system for your needs.

Settings display example

Use in Modpacks

You're free to include this mod in your modpacks without special permission. Additional information is not available.

Project members
kreezxil

kreezxil

Developer

Created: 26 May 2022

ID: 18473