๐Ÿ’Ž
Worlds populators

Example: two populators

1
worlds_populators:
2
custom_block:
3
block: myitems:custom_block
4
worlds:
5
- world
6
replaceable_blocks:
7
- STONE
8
- DIRT
9
- ANDESITE
10
- GRANITE
11
- COBBLESTONE
12
- GRAVEL
13
biomes:
14
- PLAINS
15
chunk_chance: 70.0
16
max_height: 45
17
min_height: 25
18
vein_blocks: 6
19
chunk_veins: 1
20
custom_block_2:
21
block: myitems:custom_block_2
22
worlds:
23
- world
24
replaceable_blocks:
25
- DIRT
26
chunk_chance: 100.0
27
max_height: 64
28
min_height: 40
29
vein_blocks: 3
30
chunk_veins: 1
Copied!
This code allows you to tell ItemsAdder to generate the block "myitems:custom_block" in the world named "world" and replace only block of types STONE, DIRT, ANDESITE, GRANITE, COBBLESTONE, GRAVEL and only in biome PLAINS. It will spawn 1 vein made of 3 blocks in each chunk.

vein_blocks, chunk_veins, chunk_chance

I suggest you to read values from the blocks.yml file I created in the ItemsAdder folder. Don't put too high values or the server could lag. Take my values as example.
chunk_veins: number of veins to be spawned in the chunk vein_blocks: number of blocks in each ore vein (or the vein size) chunk_chance: chance of that generation to happen in the chunk. You should set it to 100 to normal ores and lower it down for more rare ores.
Old ItemsAdder versions before 3.1.6 used these properties instead: chunk_veins -> iterations
vein_blocks -> amount
chunk_chance -> chance

Biomes

You can remove this option and the plugin will spawn ores in every biome.
1
custom_block:
2
block: myitems:custom_block
3
worlds:
4
- world
5
replaceable_blocks:
6
- STONE
7
- DIRT
8
- ANDESITE
9
- GRANITE
10
- COBBLESTONE
11
- GRAVEL
12
chunk_chance: 70.0
13
max_height: 45
14
min_height: 25
15
vein_blocks: 6
16
chunk_veins: 1
Copied!

Replaceable blocks

You can remove this option and the plugin will spawn ores replacing every block instead of checking if it can be replaced.
1
custom_block:
2
block: myitems:custom_block
3
worlds:
4
- world
5
chunk_chance: 70.0
6
max_height: 45
7
min_height: 25
8
vein_blocks: 6
9
chunk_veins: 1
Copied!
โ€‹