Back to mods
Area Protection project artwork

Modrinth · Minecraft mod

Area Protection

Protect anything you wish easily in one single command

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Area Protection release matches 26.2 datapack?

Updated 10 months ago
Best match for your filters 1.0
Game version 1.21.10, 1.21.11, 1.21.9
Loader datapack

Area Protection 1.0 targets 1.21.10, 1.21.11, 1.21.9 with datapack. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Area Protection required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release datapack
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Area Protection 1.0 need?

1.0 on 26.2 datapack. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Area Protection without breaking your instance.

Built for Area Protection 1.0 on 26.2 datapack. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0. It targets 1.21.10, 1.21.11, 1.21.9 with datapack; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0. It opens that exact file at the source.

About this project

What does Area Protection add?

If you don't want to read all this, you can just go in game and do /function, the commands will automatically be highlighted

FAQ:

Q: How to protect an area?
A: With one command that you can find below. It will claim a 30 blocks radius area, and you can use the command as much as you want for each 30 blocks radius you want to claim! It can also easily be unclaimed.

Q: How does the protection work, what does it protect?
A: Once entering a protected area, mobs with griefable abilities will be killed (creeper, ravager, enderman, ender dragon, wither, phantom, warden) along with their loots.
TNT & minecart tnt are disabled in a protected area.

Armor stands, item frames & glowing item frames, painting, are automatically set to invincible in a protected area. They are switching back to destroyable once the area get unclaimed.
Q: Will the datapack change something in my world if I install it?
A: It will only change the gamerule sendCommandFeedback to false to prevent the spam of the gamemode change message in the chat. Nothing else is changed

Q: If I uninstall the datapack, will the protections be gone?
A: Yes, but they will be saved in case you reinstall the datapack later, unless you run /function area_protection:reset_all.

Q: If I use this as a mod in singleplayer and then upload the world on my server, will the areas I protected still be protected?
A: No, unless you install the datapack or the mod on the server!

The datapack only uses tags, not teams, so if your world has teams enabled, the datapack is compatible with it.

How to use:

Simply run the first command to protect an area! If you don't want to read all this, you can just go in game and do /function, the commands will automatically be highlighted

/function area_protection:protect_this ----> Set a 30 blocks spherical protection around you.

/function area_protection:reset_this -----> Remove the protection(s) applied at your position up to 40 blocks around you.

/function area_protection:reset_all ------> Remove all the protections of your world (No undo).

/function area_protection:view_protection_borders -----> Allows you to briefly see with particles the spherical protection of the area you are in.

/function area_protection:get_admin_permission_level ----> Allows you to bypass protection. A message will notify you when you are in a protected area, and you will be set in creative mode when running the command.

/function area_protection:get_player_permission_level ------> Reset your permission to default: You can't bypass protection

Wish to give a player permission to build in every protected area, but not wanting to op him? Just do /execute as "name of the player" run function area_protection:get_admin_permission_level. He will be set in creative mode and will be able to build in every protected area.

Project description from Modrinth.

Pick your setup

Area Protection by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

95 available setups

Showing the newest 12 of 19 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Area Protection versions and loaders

1 of 4 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.