Island Effects

2files
1figure
1min read
Sheet 15 of 53 · Playing

Filesfeatures/island.yml · progression/upgrades.yml

Filefeatures/island.ymlFileprogression/upgrades.ymlIsland effects are passive potion effects every member gets while standing on their island. A bit of Speed and Haste while you build, gone once you leave.

How it works

While a member is on an island, IgniteSky keeps the configured effects topped up. Step off and they fade a second or two later, so the buffs never follow a player out into the wider world. Effects refresh on a timer rather than reapplying every tick, which keeps them cheap.

Speed I from the base config and Haste IV because this island's generator upgrade is at tier 3: the third field adds the tier to the amplifier.
The inventory screen with Speed and Haste IV listed as active effects
features/island.yml
island-effects:
  enabled: true
  # How often (ticks) effects are refreshed. 20 ticks = 1 second.
  refresh-ticks: 40
  effects:
    - "SPEED:0"
    - "HASTE:0:generator"

Each entry is TYPE:amplifier. The amplifier is zero based, so SPEED:0 is Speed I and SPEED:1 is Speed II. Effect names follow Bukkit's potion effect enum, so anything vanilla offers is fair game (NIGHT_VISION:0, JUMP_BOOST:1, and so on).

Scaling effects with upgrades

Add a third field - TYPE:amplifier:upgrade - and the effect grows with an island upgrade. The island's current tier of that upgrade is added to the base amplifier, so buying the upgrade strengthens the buff instead of just toggling it on.

features/island.yml
  effects:
    - "HASTE:0:generator"      # Haste I at tier 0, Haste II at tier 1, Haste III at tier 2 ...
    - "SPEED:0:crop-growth"    # scales with the 'crop-growth' upgrade
    - "NIGHT_VISION:0"         # flat, no scaling

Fileprogression/upgrades.ymlThe upgrade id is any upgrade key from progression/upgrades.yml. Amplifiers are clamped to 0-9. That covers the usual "effect per upgrade tier" setup in one line, without a separate list per tier.

Loading the index

Enter openUp Down moveEsc close