ModsFinder

Territory API

by Nhbybnb

Territory API gives Fabric mods a shared way to define and manage in-world regions of arbitrary shape, for arenas, protected areas and RPG zones.

FabricClient and serverMIT License1.21.1

What it does

Territory API is a library that creates, stores and tracks regions in a world. Regions can take arbitrary shapes, and the library detects when entities enter, exit or stay within them, reporting these through one event-driven system instead of per-tick distance checks that each mod would otherwise write for itself. Region data is persisted and tied to the world lifecycle, so regions survive restarts.

Mods can attach custom metadata to a region and rely on a priority system to resolve overlapping areas, so one region takes precedence where two meet. The library is aimed at developers building gameplay systems such as arenas, protected territories and environment-based mechanics. Every player and the server need a copy of the mod. Files are published for Fabric only, for Minecraft 1.21.1, under the MIT License, and the code is not open source.

Key features

  1. Arbitrary region shapes

    Regions are defined by shape rather than fixed boxes, so a zone can follow the outline of a building or a clearing.

  2. Enter, exit and stay events

    Entities entering, leaving or remaining inside a region each raise an event that other mods can listen to.

  3. Persistent region storage

    Regions are saved with the world and reloaded with it, along with any metadata attached to them.

  4. Overlap priority

    A priority value decides which region applies where two regions overlap.

  5. Optimized spatial tracking

    Tracking is handled once by the library, replacing repeated distance checks in each dependent mod.

Compatibility

Latest build for each game version and loader.

1.21.11.0.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Arenas

A minigame can mark an arena as a region and react when players enter or leave it.

Protected territories

A claim or protection mod can define a region and check entities against it through the library's events.

RPG zones

Quest areas, danger zones or biomes with custom rules can be expressed as regions with their own metadata.

Who it’s for: Mod developers who need zones, arenas or protected areas in Fabric mods for Minecraft 1.21.1, and server owners running those mods.

How it compares

Full comparison

Zones API is a Fabric library for 1.21.8, server-side only and open source under the MIT License. Zones is an MIT-licensed open source Fabric library for 1.21 – 1.21.10 with no environment restriction listed. SafeZone is a client and server Fabric mod for 1.21.1 – 1.21.11 under All rights reserved, so it is not open source.

ModLoadersGame versionsEnvironmentUpdated
Territory APIFabric1.21.1Client and server2026-07-05
Zones APIFabric1.21.8Server-side only2025-08-06
ZonesFabric1.21 – 1.21.10Not published2026-01-05
SafeZoneFabric1.21.1 – 1.21.11Client and server2026-02-06

Questions

Does Territory API need to be installed on both sides?

Yes. Servers that run it need every player to install it too.

Which loader does Territory API support?

Fabric is the only loader listed. Files are published for Minecraft 1.21.1 only.

Which mods use Territory API?

The catalog lists no dependent mods for this library yet, so developers should check each mod's requirements directly.

In the catalog

Territory API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.

More from Nhbybnb

All projects

Similar mods

What the author says

Territory API is a framework for defining and managing in-world regions of arbitrary shapes, providing a unified event-driven system for detecting entity interactions such as entering, exiting, and staying within zones. It offers persistent region storage tied to the world lifecycle, flexible metadata support for…
Nhbybnb, on the Modrinth page

Official listing

Owner
Nhbybnb
Published
2026-07-05
Updated on Modrinth
2026-07-05
Facts verified
2026-10-15

Tags