> For the complete documentation index, see [llms.txt](https://vayk.gitbook.io/blockstocommand/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vayk.gitbook.io/blockstocommand/information.md).

# 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>" %}
