# 地表生成器

## 在世界地表生成装饰

使用 ItemsAdder，您可以在世界各地生成装饰，使您的服务器更加专业和独特。

例如，您可以制作新的蘑菇、小植物、岩石和装饰品。

![](/files/pbs55phJ5pHx6d15E65r)

![](/files/D9U9vGsegT83nLITc2tZ)

## 创建地表生成器

### 创建配置

例如，让我们创建一个将在世界各地生成的玫瑰。

```yaml
info:
  namespace: myitems
surface_decorators:
  rose:
    block: rose
    bottom_blocks:
    - DIRT
    - GRASS_BLOCK
    biomes:
    - PLAINS
    - SUNFLOWER_PLAINS
    - RIVER
    - MOUNTAINS
    - MOUNTAIN_EDGE
    - BIRCH_FOREST
    - BIRCH_FOREST_HILLS
    - TALL_BIRCH_FOREST
    - TALL_BIRCH_HILLS
    worlds:
      - world
    chance: 10
    max_height: 255 
    min_height: 0
    amount: 1
```

正如您所看到的，我设置了一些属性：

`block` 是要生成为装饰的 ItemsAdder 方块。

`bottom_blocks` 属性用于决定装饰可以生成的方块类型。

`biomes` 属性用于决定装饰可以生成的有效生物群系。

`worlds` 属性决定装饰可以生成的世界。

`chance` 是每个世界区块中生成装饰的几率。

`max_height` 是装饰可以生成的最大世界高度。

`min_height` 是装饰可以生成的最小世界高度。

`amount` 是装饰组中要生成的方块的数量，例如，您可以设置为 5 以使一组 5 个装饰生成在一起。

## 创建方块

现在，您只需按照教程创建方块。您可以根据需要使用 `REAL_NOTE`、`REAL_WIRE`、`REAL_TRANSPARENT` 和 `REAL` 方块。

{% content-ref url="/pages/cv3Rv9Yu5e3P6qrnwvZu" %}
[方块](/chinese/cha-jian-shi-yong-fang-fa/adding-content/block.md)
{% endcontent-ref %}

## 示例

您可以在此处下载完整的工作插件：

{% embed url="<https://www.spigotmc.org/resources/deco-worlddeco-add-autogenerating-decorations-on-your-world-surface.95207>" %}

![](/files/aK354xBHRYDo9wn4bfYF)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/adding-content/surface-populators.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
