Download Area Protection — Minecraft Mods — MetaMods
Area Protection

Area Protection

Active

Downloads

0

Last update

10 months ago

Versions

1.21 — 1.21.9
Server
Fabric
Forge
Neoforge
Quilt
Utils

Area Protection: Simple Territory Protection in Minecraft

Quick Start

Want to start using it right away? Just enter the game and execute /function - all necessary commands will be automatically highlighted for your convenience.

How It Works: Main Features

Creating a protected area takes just one command. The system automatically protects a spherical area with a 30-block radius around you. You can create any number of such zones as needed - just repeat the command in desired locations. Any protection can be removed at any moment.

What Exactly the System Protects:

  • Mobs with destructive abilities (creepers, ravagers, endermen, Ender Dragon, Wither, phantoms, wardens) are automatically eliminated upon entering protected zones along with their loot
  • TNT and TNT minecarts are completely disabled in protected territories
  • Armor stands, item frames and glowing item frames, paintings automatically become invincible

Important: When protection is disabled, frames return to their normal vulnerable state.

Technical Features

The datapack works only with tags, not teams, which ensures full compatibility with group functions if used in your world.

The datapack sets the game rule sendCommandFeedback to false to avoid spam of game mode change messages in the chat. No other changes are made.

Important Information: After uninstalling the datapack, protections disappear, but all settings are saved in case of reinstallation. The only exception is the /function area_protection:reset_all command, which completely clears all zones.

Multiplayer Support

If you play in singleplayer and then upload the world to your server, previously created protected zones will not be active until you install the datapack or corresponding mod directly on the server.

Management Commands

/function area_protection:protect_this - creates a spherical protection zone with a 30-block radius around you

/function area_protection:reset_this - removes protection within up to 40 blocks from your location

/function area_protection:reset_all - complete removal of all protection zones in the world (no undo)

/function area_protection:view_protection_borders - temporarily shows protection boundaries around you using particles

Access Rights Management

/function area_protection:get_admin_permission_level - grants administrator rights to bypass protection. The system will notify you when entering protected zones and switch you to creative mode

/function area_protection:get_player_permission_level - returns standard player rights without protection bypass capability

Want to grant a player building rights in all zones without giving them operator status? Use the command: /execute as "player name" run function area_protection:get_admin_permission_level. They will receive administrator rights and can work in protected territories.

Project members
ThirtyFangs

ThirtyFangs

Developer

Created: 4 Sep 2025

ID: 267694