๐Ÿ„
Surface populators

Generate decorations on the world surface

With ItemsAdder you can generate decorations around the world to make your server more professional and original.
For example you can make new mushrooms, new little plants, rocks and decorations

Creating a Surface Populator

Creating the configuration

For example let's create a rose which will spawn around the world.
1
info:
2
namespace: myitems
3
surface_decorators:
4
rose:
5
block: rose
6
bottom_blocks:
7
- DIRT
8
- GRASS_BLOCK
9
biomes:
10
- PLAINS
11
- SUNFLOWER_PLAINS
12
- RIVER
13
- MOUNTAINS
14
- MOUNTAIN_EDGE
15
- BIRCH_FOREST
16
- BIRCH_FOREST_HILLS
17
- TALL_BIRCH_FOREST
18
- TALL_BIRCH_HILLS
19
worlds:
20
- world
21
chance: 10
22
max_height: 255
23
min_height: 0
24
amount: 1
Copied!
As you can see I set some properties:
block is the ItemsAdder block to spawn as decoration.
bottom_blocks property is used to decide the block types on which the decoration can spawn.
biomes property is used to decide the valid biomes in which the decoration can spawn.
worlds property decides the worlds in which the decoration can spawn.
chance is the change of a decoration to spawn in each chunk of the world.
max_height is the max world height where the decoration can spawn.
min_height is the min world height where the decoration can spawn.
amount is the amount of blocks to spawn in the decorations group, for example you can set 5 to make a group of 5 decorations spawn one attached to the other.

Creating the block

Now you just have to create the block following the tutorial. You can use REAL_NOTE, REAL_WIRE REAL_TRANSPARENT and REAL blocks, depends on your needs.

Example

You can download the fully working addon here:
[Deco] WorldDeco - Add autogenerating decorations on your world surface
SpigotMC - High Performance Minecraft