# Information

## Spigot page

{% embed url="<https://www.spigotmc.org/resources/%E2%AC%9B-blockstocommand-%E2%AC%9B.103602/>" %}

## ¿What the plugin does?

BlocksToCommand is a plugin that allows you to import from an area the needed setblocks to copy it, it is useful for creating structures that will be built block per block.

<figure><img src="/files/lbaNVd0L0s39FX8EPbQb" alt=""><figcaption></figcaption></figure>

## Example

```
dontcopythis:
  dontcopythis:
    playerCommands:
   - execute at %player% run setblock %block_x_int%+1 %block_y_int%+0 %block_z_int%-3
      minecraft:grass
    - DELAYTICK 1
    - execute at %player% run setblock %block_x_int%-3 %block_y_int%+0 %block_z_int%-2
      minecraft:grass
    - DELAYTICK 1
    - execute at %player% run setblock %block_x_int%-1 %block_y_int%+0 %block_z_int%-2
      minecraft:grass
    - DELAYTICK 1
    - execute at %player% run setblock %block_x_int%+1 %block_y_int%+0 %block_z_int%-2
      minecraft:grass_block[snowy=false]
    - DELAYTICK 1
    - execute at %player% run setblock %block_x_int%+2 %block_y_int%+0 %block_z_int%-2
      minecraft:grass
    - DELAYTICK 1
    - execute at %player% run setblock %block_x_int%-3 %block_y_int%+0 %block_z_int%-1
      minecraft:grass
    - DELAYTICK 1
    - execute at %player% run setblock %block_x_int%-1 %block_y_int%+0 %block_z_int%-1
      minecraft:grass
    - ..........
    - and so on until it copies every block of the area selected
```

## Usability

### Ssomar plugins

This plugin was mainly done to achieve Custom Structures Building such as the `Free_Hut` inside \[Default Items/Builds] for EB that builds a Hut :hut: block per block, to make something similar you would need to write every setblock needed, it would take a very long time, this plugin wants to save you that time.

* This works with either EI | EE | EB .
* It also imports EB and ItemsAdder (from EB) in the area of blocks.

It can be used outside the previous plugins, it brings you the needed setblocks, they may be useful.

{% embed url="<https://www.youtube.com/watch?v=q6Sw65dv1fc>" %}


---

# 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://vayk.gitbook.io/blockstocommand/information.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.
