Skip to content

Configuration

KS Dungeons keeps its files in the mod’s data folder: config.json, the biome files and the loot tables.

config.json — Main configuration
biomes/
stone_caves.json
forest_ruins.json
desert_tombs.json
frozen_crypts.json
lava_depths.json
void_sanctum.json
loot/
<biome>.json — Loot table per biome
<biome>_boss.json — Boss loot table per biome
boss_common.json
localization/
en-US.json
de-DE.json
{
"dungeon": {
"maxPartySize": 4,
"defaultTeamLives": 3
},
"cooldown": {
"defaultMinutes": 30
},
"permissions": {
"adminPermission": "kyuubisoft.dungeons.admin"
},
"mapDrops": {
"chance": 0.05,
"defaultLevel": 5
},
"stoneDrops": {
"chance": 0.02
}
}
KeyDefaultDescription
dungeon.maxPartySize4Maximum party size
dungeon.defaultTeamLives3Team lives at Normal difficulty; Easy adds 2, Hard removes 1, Heroic removes 2 (at least 1)
cooldown.defaultMinutes30Biome cooldown after a completed run (shown in the browser, not enforced yet)
permissions.adminPermissionkyuubisoft.dungeons.adminExtra node checked by the admin commands; see Permissions
mapDrops.chance0.05Chance per open-world mob kill to drop a dungeon map (0.05 = 5 %)
mapDrops.defaultLevel5Map level when the mob’s level cannot be read
stoneDrops.chance0.02Chance per mob kill to drop a crafting stone

The shipped file does not contain mapDrops and stoneDrops; add these blocks to change the defaults. It does contain dungeon.defaultFloors, dungeon.reconnectWindowSeconds, dungeon.roomClearPercentForStairs and a performance block. They are left over from earlier builds and have no effect.

Each biome file defines one biome:

FieldDescription
id, displayName, colorID, name and colour shown in maps and the browser
instanceTemplateThe arena world template
environmentIdThe world environment used in the arena
terrainMaterialsBlock materials for the arena terrain
centerAnchor, bossArenaPrefabs placed at the center and for the boss arena
structuresPrefabs scattered across the arena
regularMobsMob pool, each entry with an NPC role and a weight
bossMobsNPC roles that spawn as bosses
lootTableIdThe biome’s loot table

Example from stone_caves.json: the regular pool includes Skeleton_Knight (weight 25) and Skeleton_Soldier (weight 20); the boss is Skeleton_Praetorian.

Loot tables ship for every biome and its boss. In this build they are loaded but not handed out yet: a completed run gives tokens, and bosses drop dungeon maps.