-
Notifications
You must be signed in to change notification settings - Fork 0
Apotheosis Compatibility
Apotheosis support is optional. Scripts that call Apotheosis-specific methods require Apotheosis to be installed; otherwise GatewaysJS throws a clear error when the method is called.
Apotheosis 兼容是可选功能。调用 Apotheosis 专用方法时必须安装该模组,否则 GatewaysJS 会在调用时抛出明确错误。
The 1.20.1 branch exposes the legacy Gateways integration used by that Apotheosis version:
1.20.1 分支暴露该版本 Apotheosis 使用的旧 Gateways 联动:
wave.addApotheosisBoss()wave.addApotheosisBoss(bossId)builder.addApotheosisAffixReward(rarityId)wave.addApotheosisAffixReward(rarityId)
// 1.20.1 Apotheosis Boss 与词缀奖励
Gateway.customBuilder('kubejs:apotheosis_test')
.addWave(wave => {
wave.addApotheosisBoss('apotheosis:the_end/enderman')
wave.addApotheosisAffixReward('apotheosis:rare')
wave.buildWave()
})
.addApotheosisAffixReward('apotheosis:epic')
.register()The 1.21.1 branch follows the newer Apotheosis Gateways data model. Dedicated helpers include:
1.21.1 分支适配新版 Apotheosis Gateways 数据模型,专用方法包括:
addApotheosisInvader(invaderId, count[, description])addApotheosisTrueRandomInvader(count[, description])addApotheosisElite(eliteId, entityId[, description, count])addApotheosisAffixModifier(chance, ...rarityIds)addApotheosisPassenger(entityJson)addApotheosisAffixItemReward(...rarityIds)addApotheosisGemReward(...purityIds)addApotheosisTrueRandomGemReward(...purityIds)Gateway.apotheosisTieredBuilder(id, tier)
Valid tier names are haven, frontier, ascent, summit, and pinnacle.
可用世界层级为 haven、frontier、ascent、summit 和 pinnacle。
// 1.21.1 新版 Apotheosis 联动示例
Gateway.apotheosisTieredBuilder('kubejs:frontier_test', 'frontier')
.name('Frontier Test')
.addWave(wave => {
wave.addApotheosisTrueRandomInvader(2)
wave.addApotheosisAffixModifier(1.0, 'apotheosis:rare')
wave.addApotheosisGemReward('flawed', 'normal')
wave.buildWave()
})
.addApotheosisAffixItemReward('apotheosis:rare', 'apotheosis:epic')
.register()For compatibility types without a dedicated helper, use addEntityJson, addModifierJson, or addRewardJson with JSON matching the installed Apotheosis version.
如果某个兼容类型没有专用方法,请使用 addEntityJson、addModifierJson 或 addRewardJson,并确保 JSON 与当前安装的 Apotheosis 版本一致。
GatewaysJS Wiki · English first, 中文同步说明 · GitHub