Custom Modes
Fileskyblock.ymlFileoneblock.ymlCommand/is createCommand/is unlockA mode is a file. Every modes/<id>.yml in the IgniteSky folder is a mode, and the file name is its id. Drop a new file in, restart, and players can pick it from the create menu, the welcome dialog and /is create <id>. No addon and no code needed.
Fileskyblock.ymlFileoneblock.ymlFilechunkblock.ymlFilecaveblock.ymlIgniteSky ships six files: skyblock.yml, oneblock.yml, chunkblock.yml, caveblock.yml, acidisland.yml and skygrid.yml. The first three are the modes you know. CaveBlock, AcidIsland and SkyGrid are new and switched off out of the box, and CaveBlock doubles as the worked example for making your own.
How a mode is put together
A mode does not bring new game logic. It picks one of the three built-in engines with base: and changes everything around it: where islands sit, what the world looks like, the starter kit, the rules, the phases.
base | What the engine does |
|---|---|
skyblock | Plain islands: a platform and optional tree (or a schematic) at the island centre. |
oneblock | The regenerating source block with phases, rewards, jackpots, the hologram and the boss bar. |
chunkblock | Chunk-by-chunk claims, the claim border, BUY CHUNK markers and /is unlock. |
So a CaveBlock is base: skyblock with a cave world under it, and a second OneBlock with harder phases is base: oneblock with its own oneblock: block. Chunk locking, OneBlock phases and holograms follow the engine, whatever the mode is called.
Make your own in three steps
Copy the example
Filemodes/caveblock.ymlFilemodes/deepdark.ymlCopy
modes/caveblock.ymltomodes/<id>.yml. The id is the file name:a-z,0-9,_and-, 32 characters at most.modes/deepdark.ymlmakes a mode calleddeepdark.Edit it
Set
enabled: true, adisplay-nameandicon, then change the world, the starter kit and the rules. Every key is below.Restart
Command/is createCommand/is topA new mode needs a restart, because its world is made at startup. After that it is in
/is create, the picker and/is top <id>.
CaveBlock
CaveBlock starts every island in a small room carved into solid rock, deep underground. Stone above 0, deepslate below it, ores in the walls, bedrock at the bottom and a bedrock ceiling at 128. There is no sky to build into: the island is whatever you dig out.
Filemodes/caveblock.ymlTurn it on with enabled: true in modes/caveblock.yml and restart. It gets its own world, ignitesky_caveblock, plus its Nether and End.
enabled: true
selectable: true
base: skyblock
display-name: "<gray><bold>CaveBlock"
icon: DEEPSLATE_DIAMOND_ORE
description:
- "<gray>Start in a cave deep"
- "<gray>underground and dig"
- "<gray>your island out of the rock."
# Y of the island centre: the floor of the start room here.
height: 40
hosting: grid
world:
generator: cave # void | cave | flat | normal
environment: normal # normal | nether | the_end
biome: DRIPSTONE_CAVES # blank = island.void-biome from config.yml
layers: # bottom up, each fills up to and including its Y
- { block: BEDROCK, up-to: -64 }
- { block: DEEPSLATE, up-to: 0 }
- { block: STONE, up-to: 127 }
- { block: BEDROCK, up-to: 128 }
ores: # chance = share of the rock between min-y and max-y
DIAMOND_ORE: { chance: 0.0012, min-y: -64, max-y: 16 }
EMERALD_ORE: { chance: 0.0004, min-y: 32, max-y: 127 }
GOLD_ORE: { chance: 0.003, min-y: -64, max-y: 32 }
REDSTONE_ORE: { chance: 0.004, min-y: -64, max-y: 16 }
LAPIS_ORE: { chance: 0.002, min-y: -64, max-y: 48 }
IRON_ORE: { chance: 0.009, min-y: -64, max-y: 80 }
COPPER_ORE: { chance: 0.008, min-y: -16, max-y: 96 }
COAL_ORE: { chance: 0.014, min-y: 0, max-y: 127 }
vein-size: 2
vein-density: 0.6
room:
radius: 5
height: 6
light: SHROOMLIGHT
generation:
platform-top: MOSS_BLOCK
platform-base: DIRT
platform-radius: 1
platform-depth: 1
tree: false
starter-content:
enabled: true
chests:
- material: CHEST
offset: { x: 1, y: 0, z: 0 }
items:
- { slot: 0, material: WOODEN_PICKAXE, amount: 1 }
- { slot: 1, material: TORCH, amount: 16 }
- { slot: 2, material: BREAD, amount: 8 }
- { slot: 3, material: WATER_BUCKET, amount: 1 }
- { slot: 4, material: OAK_SAPLING, amount: 2 }
- { slot: 5, material: BONE_MEAL, amount: 8 }
- { slot: 6, material: WHEAT_SEEDS, amount: 4 }
signs:
- offset: { x: 0, y: 0, z: 1 }
lines: ["<gold>Welcome down!", "<gray>Everything around", "<gray>you is yours.", "<gray>Dig."]A new island gets a dome of air five blocks out and six tall around its centre, a moss floor, a chest and a sign, and a shroomlight set into the ceiling. Ores come in small clumps rather than lone blocks, and inside deepslate each ore turns into its DEEPSLATE_ variant on its own.
A second OneBlock
Filemodes/oneblock.ymlThe phases of a base: oneblock mode live in its own file, in the same format as modes/oneblock.yml. Leave oneblock: out and the mode runs the built-in OneBlock's phases.
enabled: true
base: oneblock
display-name: "<dark_aqua><bold>DeepBlock"
icon: SCULK
height: 90
progress-hologram:
enabled: true
height: 1.5
lines: ["<dark_aqua>DeepBlock", "<gray>{phase} {progress}/{length}"]
oneblock:
loop: true
phases:
sculk:
display: "<dark_aqua>Sculk"
length: 50
reward: 100.0
blocks: { SCULK: 70, DEEPSLATE: 30 }
obsidian:
display: "<dark_purple>Obsidian"
length: 100
reward: 250.0
blocks: { OBSIDIAN: 60, CRYING_OBSIDIAN: 40 }Every key
| Key | Default | What it does |
|---|---|---|
enabled | true | Whether players get the mode at all. Off: no menu tile, no /is create, no worlds. Islands already on it keep loading. |
selectable | true | The older name of the same switch. The mode is offered only when both are true. |
base | the id for the three built-ins, else skyblock | The engine: skyblock, oneblock or chunkblock. |
display-name | blank | MiniMessage name in the menus. Blank falls back to mode.name.<id> in the language file, then the id. |
icon | by engine | The material of the menu tile. |
description | none | MiniMessage lore lines on the tile. |
height | 100 | Y of the island centre. The platform, the OneBlock source or the cave room floor sits here. |
hosting | config.yml modes.<id>.hosting, else grid | grid (one shared world) or world_per_island. See World Hosting. |
world.generator | normal for chunkblock, else void | void: empty. cave: solid layers with ores and a room carved at every new island. flat: layers only. normal: vanilla terrain. |
world.environment | normal | normal, nether or the_end for the mode's main world. Its Nether and End twins stay void. |
world.biome | island.void-biome | One biome for the whole void, cave or flat world. |
world.layers | see below | { block, up-to } entries from the bottom up. Nothing generates above the last one. |
world.ores | none | <BLOCK>: { chance, min-y, max-y, deep }. deep picks the block used inside deepslate; left out, the DEEPSLATE_ variant is used when there is one. Ores never replace bedrock, and the first one listed wins where two meet. |
world.vein-size | 2 | Edge of an ore clump, 1 to 8 blocks. |
world.vein-density | 0.6 | How full a clump is, 0.05 to 1. |
world.room | radius: 5, height: 6, light: SHROOMLIGHT | The dome a cave island starts in and the block set into its ceiling (blank for none). Cave only. |
rules | inherit | Per-mode rules: max-per-player, locked-by-default, public-warps-default, nether, end, starting-balance, base-size, drops-multiplier, limit-multiplier. |
flags | inherit | Per-mode flag defaults. |
island-effects | none | Island effects members get on this mode's islands. |
generation | built-in platform | The island generation block: schematic, platform, tree, OneBlock source base, ChunkBlock spawn search. |
starter-content | none | Starter chests and signs for a new island. |
generator-tiers | progression/generator.yml | The mode's own cobblestone generator tiers, same format as generator.tiers. |
maps | one map named after the mode | Extra maps, same keys as islands/maps.yml without mode:. |
oneblock, progress-hologram | the built-in OneBlock's | Phases and hologram of a base: oneblock mode. |
Without layers:, a cave world is bedrock at -64, deepslate up to 0, stone up to 127 and a bedrock ceiling at 128. A flat world is bedrock at -64, stone up to 60, dirt up to 63 and grass at 64, so a flat mode wants height: 64 to sit on the ground.
What needs a restart
Command/is admin reloadA new mode file, switching a mode on or off, and anything under world: or hosting need a restart, since worlds are made at startup. /is admin reload lists the mode files waiting for one. Everything else in an existing mode file (rules, generation, starter kit, phases, generator tiers, names) applies on reload.
Top lists and placeholders
Command/is topPlaceholder%ignitesky_top_caveblock_1_name%Placeholder%ignitesky_rank_mode%Placeholder%ignitesky_mode%/is top <id> shows the leaderboard of one mode's islands, and the sort tab keeps the mode while it cycles. For scoreboards, %ignitesky_top_<id>_<rank>_<field>% reads that board, like %ignitesky_top_caveblock_1_name%, and %ignitesky_rank_mode% is an island's place among islands of its own mode. %ignitesky_mode% shows the mode's name and %ignitesky_mode_id% its id in upper case (CAVEBLOCK). See Integrations & Placeholders.
Resets
Command/is resetFilefeatures/island.ymlConfig keyisland-reset.min-y/is reset on a cave or flat island puts the original rock and ores back where the island was, then carves the start room again. The reset band in features/island.yml (island-reset.min-y / max-y) is written for an island at Y 100 and moves with the mode's height, so CaveBlock at 40 wipes -10 to 90. A mode on natural terrain cannot be rebuilt, so its islands are disbanded rather than reset.
Folia
Filebukkit.ymlFolia cannot create worlds, so a new mode is in the same spot as the built-in ones. Its islands go into the server's own world for its environment and a warning says so, and IgniteSky writes generator: IgniteSky:<id> (cave and flat) or IgniteSky:void into bukkit.yml for the world it wanted. A CaveBlock on a borrowed world still gets its start room carved at height, in whatever terrain is there. For a real cave world, pre-create ignitesky_<id> with that generator, the same way as the void worlds on World Hosting.
From an addon
Addons can list modes, create islands by id and register their own engine under an id. The file is still what gives a mode its worlds and menu entry, so an addon that brings a new mode ships a modes/<id>.yml with it. See Addon API.