WIKI:
描述:GatewaysJS 是一个 KubeJS 插件模组,旨在将 GatewaysToEternity 模组与 Minecraft 1.20.1 Forge 的 KubeJS 脚本功能连接起来。它允许服务器所有者和整合包开发者通过 JavaScript 自定义传送门行为,而无需编写 Java 代码。
特性:事件系统:通过 KubeJS 事件监听所有传送门事件(开启、完成、失败、波次开始/结束、实体生成);传送门 API:查询已注册的传送门、检查存在性、获取传送门配置和类型;实体操作:访问传送门实体属性、生成物品、播放声音等;动态奖励:在波次完成后添加自定义奖励。


版本 1.1 新增内容:
自定义传送门珍珠允许你通过 KubeJS 动态创建并生成传送门。你可以配置传送门 ID、颜色、大小、波次、奖励以及完整的规则行为设置。
如果再次使用相同的 ID 注册传送门,旧的注册将被新的配置替换。换句话说,具有相同 ID 的最新注册将成为活跃版本。

版本 1.4 允许玩家自定义传送门实体纹理和 Boss 血条样式。示例如下:

**版本 1.5
此更新扩展了自定义传送门构建器的实体修改器系统。你现在可以全局应用属性、药水效果、装备套装、NBT、描述和生成初始化设置到所有波次、特定波次中的每个实体或单独的实体条目。新的 API 使复杂的传送门波次构建更加容易,并支持 ProbeJS 对属性、效果和属性操作的补全提示。

**
WIKI:
Description: GatewaysJS is a KubeJS addon mod designed to bridge the GatewaysToEternity mod with KubeJS scripting capabilities for Minecraft 1.20.1 Forge. It enables server owners and modpack developers to customize gateway behavior through JavaScript without writing Java code.Key
Features: Event System: Listen to all gateway events (opened, completed, failed, wave started/ended, entity spawned) via KubeJS events Gateway API: Query registered gateways, check existence, get gateway configurations and types Entity Manipulation: Access gateway entity properties, spawn items, play sounds, and more Dynamic Rewards: Add custom rewards when waves complete


version 1.1 add
Custom Gateway Pearls allow you to dynamically create and spawn Gateways through KubeJS. You can configure the gateway ID, color, size, waves, rewards, and the full rules behavior settings.
If a gateway is registered again with the same ID, the old registration is replaced by the new configuration. In other words, the latest registration with the same ID becomes the active version.

Version 1.4 allows players to customize the gateway entity texture and boss bar style. Here's an example:

**version 1.5
This update expands the entity modifier system for the custom Gateway Builder. You can now apply attributes, potion effects, gear sets, NBT, descriptions, and spawn initialization settings globally to all waves, to every entity in a specific wave, or to individual entity entries. The new API makes complex gateway waves easier to build and supports ProbeJS completions for attributes, effects, and attribute operations.

**
下载 gatewaysjs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 gatewaysjs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 gatewaysjs
下载 gatewaysjs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 gatewaysjs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 gatewaysjs
下载 gatewaysjs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 gatewaysjs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 gatewaysjs
下载 gatewaysjs
中文
- 修复旧版 addApotheosisBoss 接口仍生成已移除的 apotheosis:boss 类型的问题,现在使用原生 Apotheosis 入侵者实现。
- 无参数调用按玩家世界阶层随机选择入侵者;指定参数需要使用当前版本的入侵者 ID。
- 补充旧接口说明和英文调试日志。
- 无效动态网关在脚本注册或存档恢复时记录错误并跳过,保留存档定义供依赖恢复后重新加载。
English
- Fixed the legacy addApotheosisBoss API producing the removed apotheosis:boss type; it now uses native Apotheosis invaders.
- Calls without an ID select an invader using the player's world tier. Specific IDs must refer to an invader in the current version.
- Updated API documentation and diagnostic logging.
- Invalid dynamic gateways are logged and skipped during script registration or save restoration, while saved definitions are retained for later recovery.
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧