跳到正文

Territory API

作者:Nhbybnb

API for creating and managing in-world regions with efficient tracking, persistent storage, and simple enter/exit/tick events for gameplay mechanics like zones, arenas, and protected areas

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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 attaching custom data to regions, and a consistent priority system for resolving overlapping areas. The API is designed to eliminate repetitive per-tick distance checks by providing optimized spatial tracking and a clean abstraction layer for gameplay systems like arenas, protected territories, RPG zones, and environment-based mechanics.

API Documentation >> click

常见问题

Territory API 支持哪些 Minecraft 版本?

Territory API 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Territory API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Nhbybnb 的其他作品

查看全部 →