Caves.yml is used to modify cave generation simply just by picking up one of five types that RWG offers to you, also you can change some values for each type.
NOTE: You will find it in plugins/RealisticWorldGenerator/worlds/<YourWorld>/caves.yml
This is the default configuration of caves.yml should look like this however it was updated in v4.7 so below 4.7 version misses few things that were added to cave-type 5.
caves:
water_caves:
enabled: false
types:
- 5
cave:
'1':
lava:
min: 5
max: 22
chance:
random: 500
one: 45
two: 5
airhits:
min: 10
max: 70
radius:
min: 1
max: 4
'2':
lava:
min: 5
max: 22
chance:
random: 500
one: 3
length:
min: 50
max: 150
'3':
octaves: 1
amplitude: 1
lava: 6
frequency: 1
'4':
max_noise: 128
lava: 7
max_height: 4
frequency: 2
'5':
lava: 7
heights:
'1': 64
'2': 32
'3': 16
fill_block: minecraft:air
radius: 3
iterations: 1
'6':
lava: 7
heights:
'1': 64
'2': 32
'3': 16
fill_block: minecraft:air
radius: 3
iterations: 2
'7':
lava: 7
amplitude: 8192.0
density: 0.7
scale: 0.08
frequency: 0.025
spawnrate: 50
enabled: true
By default RWG-Caves will not connect to oceans, if you want them to connect you can enable them.
Enabled set to true will generate water-caves, set to false there will be no connections between oceans and caves.
spawnrate: 50
types:
- 5
enabled: true
Spawnrate determines the spawn chance ONLY for CAVE-TYPE 1 & 2, if the value is higher less caves will be generated if the number is lower more caves will be generated.
Types determines the types, that are enabled. You can enable multiple cave-types at the same time and mix them all together. To add more types just add them to this list. You can currently use values between 1 & 7 for each cave-type
Enabled determines if RWG should generate caves or not, if you want caves then set this value to true if not use false
Appearance: This cave-type has holes, which go nearly straight down.
CPU-Usage: medium (Not high, but also not very low)
Appearance: This cave-type has holes, which go straight down and to the sites.
CPU-Usage: high (Worldpregenerating or a very strong dedicated CPU is recommended)
Appearance: This cave-type has many holes, which goes all around.
CPU-Usage: medium (Not high, but also not very low)
'3':
octaves: 1
lava-lavel: 6
amplitude: 1
frequency: 1
Frequency by changing the frequency of a cave in cave-type 3 you edit the detail and the length of them. The more the value is high, the more the caves are stretched.
Lava-level by changing (increasing or lowering) this value you are controling lava in caves so if you want lava more often you will increase this number if not then decrease it.
Octaves by changing the octaves of a cave in cave-type 3 you edit the detail of them. Higher value means more detailed caves, but the server-performance will get decreased. (It's not recommended to change this value)
Amplitude does pretty the same as frequency. Higher value means means longer caves and less detailed. (It's not recommended to change this value)
Appearance: This cave-type has some holes, which are less connected. But these caves are also on the top of the world
CPU-Usage: low (This should work on every server)
'4':
max_noise: 128
frequency: 2
Max-Noise determines the maximum y-axis-position, where caves should be allowed to be generated.
Frequency does same as for cave-type 1 & 2 so it determines how many caves will be generated, the higher the number is the less caves will be generated.
Appearance: This cave-type is pretty good when your caves should look like vanilla ones.
CPU-Usage: medium (This might affect server-performance)
'5':
heights:
'1': 64
'2': 32
'3': 16
radius: 3
iterations: 2
Heights determines the maximum height caves can move (up / down), heights are sorted into 1, 2, 3, by adding them together you will get the maximum number in blocks that they can go deep, so for example in default configuration it is 64+32+16 which together is 112, this means caves can be deep 112 blocks.
Radius determines the radius of the caves. So basically by a value of 3, the caves will get a diameter of 6 blocks.
Iterations can be set from 1 to 6. Higher value means more caves. Basically there 1 up to 6 layers of caves getting stacked on top of each other.