Skip to content

Apotheosis Compatibility

hp-1e edited this page Jul 15, 2026 · 1 revision

Apotheosis Compatibility / Apotheosis 神化兼容

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 会在调用时抛出明确错误。

Minecraft 1.20.1 Forge

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()

Minecraft 1.21.1 NeoForge

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.

可用世界层级为 havenfrontierascentsummitpinnacle

// 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.

如果某个兼容类型没有专用方法,请使用 addEntityJsonaddModifierJsonaddRewardJson,并确保 JSON 与当前安装的 Apotheosis 版本一致。

Clone this wiki locally