Skip to content
Samuel Waggoner edited this page Jan 24, 2021 · 8 revisions

The roguelike.cfg file is auto-generated the first time a chunk is loaded. it contains the following fields.

  • dimensionBL=
    • Black list of dimensions to exclude (None if left blank)
  • dimensionWL=0
    • White list of dimensions in which dungeons will spawn (All if left blank)
  • doNaturalSpawn=true
    • If set to false dungeons will not naturally spawn, however may still be spawned in using a command.
  • doNoveltySpawn=true
    • unused at this time.
  • encase=false
    • add a solid shell to the dungeon, preventing holes from surrounding caves, ravines, etc.
  • furniture=true
    • add objects such as beds and crafting tables
  • generous=true
    • Whether helpful features like brewing stands, ender chests, enchanting stations, anvils should generate.
  • levelMaxRooms=30
    • The maximum number of rooms that will spawn in a dungeon
  • levelRange=80
    • The distance from the stairs dungeon levels will spread
  • levelScatter=10
    • how far apart the rooms should be
  • looting=0.085
    • A scale of the probability of mob drops. if set to 0 will require looting enchant to get drops.
  • lowerLimit=60
    • Adjust the lower limit on dungeon surface spawning (the tower)
  • preciousBlocks=true
    • If set to false, precious blocks like diamond/gold/lapis blocks will be omitted from dungeon generation. (unless included by a theme)
  • random=false
    • make dungeon generation absurdly random.
  • rogueSpawners=true
    • enable modded control over spawners. Otherwise vanilla spawners (with vanilla custom metadata) are used.
  • spawnFrequency=10
    • A roughly inverse logarithmic scale value.
    • Essentially 1 dungeon every (spawnFrequency*spawnFrequency) chunks.
    • See table below
  • upperLimit=100
    • Adjust the upper limit on dungeon surface spawning (the tower)

Spawn Frequency Table

You can loosely calculate these numbers using the following formula:
# dungeons = # of chunks / (9 * (spawnFrequency)^2)

For example,
With a spawnFrequency of 25
across 90,000 chunks (300 chunk square area), we get:
25 dungeons = 90,000 chunks / (9 * (25)^2)

Simulation

Based on a python simulation of how many dungeons would spawn in a 300 chunk square area (4800 blocks) given different values for frequency.

This is also assuming that every biome can support the dungeons, which is not the case. So this number is higher than it would be in the actual game.

Spawn Frequency Value Dungeons generated
1 5666
2 2514
3 1117
4 675
5 342
6 246
7 199
8 136
9 143
10 100
11 69
12 69
13 41
14 60
15 37
16 46
17 33
18 29
19 22
20 17
21 18
22 17
23 23
24 18
25 16
26 15
27 12
28 13
29 10
30 12
31 8
32 4
33 11
34 9
35 8
36 9
37 8
38 3
39 12
40 5
41 3
42 2
43 4
44 12
45 8
46 1
47 2
48 3
49 2
50 2
Clone this wiki locally