介绍
TeleportAPI is a comprehensive library designed for developers who require precise control over entity and structure teleportation. It moves beyond simple coordinate shifts, offering advanced handling of collision logic, NBT data, and cross-dimensional travel.
Core Features:
Placement & Collision Logic: Choose exactly how the teleported structure interacts with the destination environment using three distinct modes:
FORCE_REPLACE: The teleported structure takes absolute priority, overwriting any existing blocks at the destination.PRESERVE_EXISTING(Recommended): Ensures that blocks already present at the destination are protected and not overwritten.PRESERVE_LIST: Smart conditional replacement. Priority is given to the structure, but specific blocks (defined in your list) at the destination will remain untouched.“Teleport with Air” Support: Crucial for structure integrity. You can enable air block calculation to ensure empty spaces are transferred (essential for
FORCE_REPLACE) or disable it to only move solid blocks.- Flexible Structure Selection: Define what gets teleported. The API supports:
- Full Transfer: Teleport everything within the bounds.
- Array-Based Filtering: Use custom arrays to validate blocks before teleportation (e.g., if a block matches criteria X, it stays; otherwise, it moves).
Safety & Integrity:
- Automatic NBT persistence for all entities.
- Seamless interdimensional travel (handled via a single parameter).
- Safe region updates to prevent duplication or corruption.
🚧 Active Development & Feedback This library is a work in progress, and I am actively looking to add new features, helper methods, and integrations. If you find functionality missing or have a specific use case not covered by the current API, please leave a comment or open an issue. Your feedback is crucial for future updates.
⚠️ Developer Note: This library exposes complex logic via specific methods and parameters (including custom arrays for filtering). Please refer to the Source Code and README for the exact method signatures and usage examples.
常见问题
TeleportAPI 支持哪些 Minecraft 版本?
TeleportAPI 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
TeleportAPI 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分