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.
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
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.
Enter, exit and stay events
Entities entering, leaving or remaining inside a region each raise an event that other mods can listen to.
Persistent region storage
Regions are saved with the world and reloaded with it, along with any metadata attached to them.
Overlap priority
A priority value decides which region applies where two regions overlap.
Optimized spatial tracking
Tracking is handled once by the library, replacing repeated distance checks in each dependent mod.
Gallery
Compatibility
Latest build for each game version and loader.
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
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.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Territory API | Fabric | 1.21.1 | Client and server | 2026-07-05 |
| Zones API | Fabric | 1.21.8 | Server-side only | 2025-08-06 |
| Zones | Fabric | 1.21 – 1.21.10 | Not published | 2026-01-05 |
| SafeZone | Fabric | 1.21.1 – 1.21.11 | Client and server | 2026-02-06 |
Questions
Does Territory API need to be installed on both sides?
Which loader does Territory API support?
Which mods use Territory API?
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
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…
Official listing
- Modrinth page
- modrinth.com/mod/territory-api
- Owner
- Nhbybnb
- Published
- 2026-07-05
- Updated on Modrinth
- 2026-07-05
- Facts verified
- 2026-10-15
