# Blocks

### blocks.yml

```yaml
ruby_ore:
  enabled: true
  permission: ruby_ore
  model_id: 14
  name: '&fRuby Ore'
  specific_properties:
    light_level: 15
    break_tools_blacklist:
      - WOODEN_PICKAXE
      - STONE_PICKAXE
    break_tools_whitelist:
      - PICKAXE
    ore:
      spawn_worlds:
        - world
      max_height: 16
      amount: 6
      iterations: 3
    cancel_drop: true
    drop_on_silktouch: true
```

### Specific properties

```yaml
  specific_properties:
    light_level: 15 #make block emit light
    #tools you can't use to break block(accepts partial name of material/customitem)
    break_tools_blacklist:
      - WOODEN_PICKAXE
      - STONE_PICKAXE
    #tools you can use to break block(accepts partial name of material/customitem)
    break_tools_whitelist: 
      - PICKAXE
    ore: #ore properties
      spawn_worlds: #list of worlds where the block must be spawned
        - world #world name
      max_height: 16 #max height where to spawn the blocks
      amount: 6 #amount of blocks to spawn
      iterations: 3 #amount of times to repeat this process
      chance: 20 #chance (20%) of spawning the ore in the current chunk 
    cancel_drop: true #default is false. if true the custom block won't be dropped when
                      #player mines it
    drop_on_silktouch: true #drops the current block when broken with silktouch
```

![Here you can see the ruby\_ore spawned under the world (I'm using X-Ray to see them)](https://media.discordapp.net/attachments/535266388537769995/563733404856614958/unknown.png)

{% hint style="success" %}
Click the link below to see how to create minerals to be dropped from your custom ore
{% endhint %}

{% hint style="warning" %}
If you are going to ask if you can create custom shaped blocks (stairs slabs) click below:
{% endhint %}

{% content-ref url="/pages/-LqVzMWpVJes6qmFV878" %}
[Can I create slabs, stairs...](/itemsadder/faq/can-i-create-slabs-stairs.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LcFmvm3fbJBL2H2JFtE" %}
[Minerals](/itemsadder/specific-items/ores/minerals.md)
{% endcontent-ref %}


---

# 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://lonedev.gitbook.io/itemsadder/specific-items/blocks.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.
