-
Notifications
You must be signed in to change notification settings - Fork 0
Home
GatewaysJS is a KubeJS integration for Gateways to Eternity. It lets server scripts register dynamic gateways, create gate pearls, configure waves, rewards, failures, rendering metadata, and react to gateway lifecycle events.
GatewaysJS 是 Gateways to Eternity 的 KubeJS 附属。它允许服务端脚本动态注册网关、创建网关珍珠、配置波次、奖励、失败惩罚和渲染元数据,并监听网关生命周期事件。
| Branch | Minecraft | Loader | Mod version | Notes / 说明 |
|---|---|---|---|---|
master |
1.20.1 | Forge 47 | 1.6 | Stable 1.20.1 API / 稳定的 1.20.1 API |
codex/1.21.1-neoforge |
1.21.1 | NeoForge 21.1 | 1.7-neoforge | Components, Endless and Apotheosis tiered gateways / 数据组件、无尽与神化分层网关 |
Do not mix scripts between these branches without checking the version notes. In particular, gate pearl data changed from NBT in 1.20.1 to data components in 1.21.1.
不要直接混用两个分支的脚本。尤其是网关珍珠数据在 1.20.1 使用 NBT,而 1.21.1 已迁移到数据组件。
- Installation-and-Versions
- Quick-Start
- Gateway-Builder
- Rewards-and-Failures
- Events-and-Runtime-API
- JSON-Compatibility
- Apotheosis-Compatibility
Dynamic gateways are registered at runtime and synchronized to clients. Register them from a server script event such as ServerEvents.recipes, then create recipe outputs with Gateway.createPearlItem(id).
动态网关会在运行时注册并同步到客户端。请在 ServerEvents.recipes 等服务端脚本事件中注册,然后使用 Gateway.createPearlItem(id) 创建配方输出。
Minecraft and modded item/entity IDs are accepted as namespace:path strings. Internally, GatewaysJS parses them as resource locations and resolves them through Minecraft registries.
原版和模组物品、生物均可使用 命名空间:路径 字符串。GatewaysJS 会在内部将其解析为资源定位符,并通过 Minecraft 注册表查找。
GatewaysJS Wiki · English first, 中文同步说明 · GitHub