Custom Generators

2commands
1file
1figure
3min read
Sheet 13 of 53 · Playing

Filesprogression/generator.yml

Fileprogression/generator.ymlCommand/is upgradesCommand/is generatorVanilla gives you cobblestone forever. Here the block that forms is rolled from a weighted table, and the table gets better as the island buys generator upgrades.

The generator tiers an island can buy into.
The generator menu, iron ore hovered showing its 25 percent chance

How it works

Whenever lava meets water on an island and a block would normally form, IgniteSky replaces it with a weighted random block from the island's current generator tier. Each tier is a list of blocks with weights, so a higher number means that block comes out more often.

Command/is upgradesAn island's tier is its generator upgrade level (see Upgrades & Limits), so players climb tiers by buying that upgrade through /is upgrades. Tier 0 is the first entry below.

progression/generator.yml
generator:
  enabled: true
  # Which vanilla formed blocks the generator intercepts. Others (e.g. obsidian) are left vanilla.
  # Omit to use the default cobblestone / stone / basalt.
  sources:
    - COBBLESTONE
    - STONE
    - BASALT
  tiers:
    - name: Basic
      display: "<gray>Basic Generator"   # MiniMessage label for menus / placeholders
      fallback: COBBLESTONE              # produced if the table is empty/misconfigured
      blocks:
        COBBLESTONE: 80
        COAL_ORE: 15
        IRON_ORE: 5
    - name: Reinforced
      display: "<white>Reinforced Generator"
      fallback: COBBLESTONE
      blocks:
        COBBLESTONE: 55
        COAL_ORE: 18
        IRON_ORE: 18
        GOLD_ORE: 6
        REDSTONE_ORE: 3
    - name: Advanced
      display: "<aqua>Advanced Generator"
      fallback: COBBLESTONE
      blocks:
        COBBLESTONE: 30
        IRON_ORE: 25
        GOLD_ORE: 20
        REDSTONE_ORE: 12
        LAPIS_ORE: 8
        DIAMOND_ORE: 5
    - name: Elite
      display: "<gold>Elite Generator"
      fallback: IRON_ORE
      blocks:
        IRON_ORE: 25
        GOLD_ORE: 25
        REDSTONE_ORE: 15
        DIAMOND_ORE: 20
        EMERALD_ORE: 15

The weights are relative, so they do not have to add up to 100. A block listed with weight 25 against a total of 100 simply forms a quarter of the time. Material names follow Bukkit's enum.

Two extra per-tier knobs: display is a MiniMessage label used wherever the tier is shown, and fallback is the block produced if a tier's table is empty or misconfigured (defaults to cobblestone). The top-level sources list controls which vanilla blocks the generator intercepts in the first place, so you can, for example, also catch stone-generator output or leave basalt vanilla.

Nether and End tables

Lava and water meeting in the island Nether or End can roll their own tables, so a Nether generator gives netherrack, quartz and gold instead of overworld ores. A world left out shares the overworld tiers. Tiers are still indexed by the same generator upgrade level (plus any biome bonus).

progression/generator.yml
generator:
  worlds:
    nether:
      tiers:
        - name: Basic
          display: "<red>Basic Nether Generator"
          fallback: NETHERRACK
          blocks:
            NETHERRACK: 70
            BASALT: 15
            NETHER_QUARTZ_ORE: 10
            NETHER_GOLD_ORE: 5
        # Reinforced, Advanced and Elite follow, and an end: block does the same for the End

Every block in a table has to be a real, placeable block; anything else is dropped with a console warning at load instead of failing when the generator fires.

Previewing the odds

Command/is generatorPlayers can open a read-only preview of their island's current generator with /is generator. It lists every block the active tier can roll with its exact percentage chance, plus what the next tier would roll, so players can see what the upgrade actually buys them.

CommandWhat it does
/is generatorPreview the current generator tier, its block odds and the next tier (alias /is gen, or the Generator tile under Island Tools)

Biome bonus

A generator sitting in certain biomes rolls a higher tier for free. Each biome-bonus entry adds that many tier levels (capped at the top tier) when the generating block sits in that biome.

progression/generator.yml
generator:
  # A generator in one of these biomes rolls this many tiers higher (capped at the top tier).
  biome-bonus:
    DESERT: 1
    BADLANDS: 2

The bonus stacks on top of the island's generator upgrade level, so a fully upgraded generator in a bonus biome reaches tiers a flat setup never could. Biome names follow Bukkit's keys; remove the block for no biome bonus.

Loading the index

Enter openUp Down moveEsc close