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

# Tutorial

Let's start creating a herobrine shrine.&#x20;

{% hint style="info" %}
Herobrine or any mobs are not provided by the plugin, you can use a custom mob plugin and execute a command to spawn the entity you want.
{% endhint %}

## Step 1

Use the command: **/bm create** to open the following menu

<figure><img src="https://2117819696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7fOuq4ZsvMVJrWnig0O%2Fuploads%2F4IQ2G9LFzS9MNBVlbuVq%2Fimage.png?alt=media&amp;token=314ef279-77cc-44d6-a0b4-638f747e71ba" alt=""><figcaption></figcaption></figure>

## Step 2

Click the paper to set the name of the structure (for this example you would click the paper and type in chat "Herobrine Shrine")

## Step 3

* The **Bidirectional** button will stay off (because the structure we have is not built along an Axis since its a cube)
* The **Destroy on spawn** will also stay off (because we don't want the structure to disappear when the entity spawns)
* The **Keep BlockData** will also stay off (because the state of the blocks does not matter to us)\*

## Step 4

Now, if we click on the Command block, a new window will open and we can insert some actions.

We want to:

* Summon lightning
* Wait 2.5
* &#x20;seconds
* Summon a zombie

We click on "Spawn entity action" and we see that a new action has been added

<figure><img src="https://2117819696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7fOuq4ZsvMVJrWnig0O%2Fuploads%2F4cM5sAD5VGTV1eYRipLx%2Fimage.png?alt=media&amp;token=3eec90af-77b5-46d7-85b2-73724d271ccb" alt=""><figcaption></figcaption></figure>

We click on the egg and after a new menu opens, we click on the chick egg once more.\
Now we enter in chat "LIGHTNING" because we want to summon a lightning.\
After than we click on the compass and type "0 1 0" because we want to summon the lightning one block above. (you will understand later why).\
Then click on the green glass and we are done with spawning the lightning.

Now its time to spawn the entity. BUT WAIT!! we want to spawn the zombie after 2.5 seconds

So we click on "Delay" (clock) and when its added, we click on it and type "2500".

PERFECT!

Now we summon the zombie by clicking on the turtle egg again (at the top) and doing the same thing but this time we will type "ZOMBIE" instead of "LIGHTNING".

It should look like that:

<figure><img src="https://2117819696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7fOuq4ZsvMVJrWnig0O%2Fuploads%2FLIODthvpKnAaLI2nBaNI%2Fimage.png?alt=media&amp;token=c24f0ae2-1e27-477d-897d-14af34b91dfb" alt=""><figcaption></figcaption></figure>

And finish by clicking the green glass.&#x20;

## Step 5

Now we click on the blaze rod and build the structure we want to use

<figure><img src="https://2117819696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7fOuq4ZsvMVJrWnig0O%2Fuploads%2F1d7UdI80ReGumEsbTeih%2Fimage.png?alt=media&amp;token=3f9c02db-918c-44a2-9fbd-016632ff5267" alt=""><figcaption></figcaption></figure>

We left-click with the item we received at one corner of the structure (IMPORTANT: make sure you ONLY select the blocks you want the player to build, aka don't get any extra air blocks or glass blocks) and next we right-click with the item at the other corner

<figure><img src="https://2117819696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7fOuq4ZsvMVJrWnig0O%2Fuploads%2FEpqMnAt51V5dOA2QZZKu%2Fimage.png?alt=media&amp;token=1e004582-3dcc-4200-9e5a-7332ead71aa8" alt="Highlighted blocks are where you would right &#x26; left click"><figcaption><p>Highlighted blocks are where you would right &#x26; left click</p></figcaption></figure>

## Step 6

We use **/bm create** again to open the menu and now click on the green glass to complete our structure.

## Finish

Now you can reload the plugin to load the new structure

## Additional info

If you want to use commands to spawn a custom mob (for example from MythicMobs) then you would change the entity type to Command. Once you were done with the structure, you would open the file that was created in the **./plugins/BuildableMobs/Structures/** and then add

```
    "actions": {
        "0": {
            "action": "COMMAND",
            "executor", "console",
            "command": "mm mobs spawn [mob_name]:<level> <amount> %location_world%,%location_x%,%location_y%,%location_z% "
        }
    }
```

Also, the .json file contains "structure" & "finish". In structure you want to put everything that the player must build BEFORE building the "finish" part. "structure" or "finish" can be empty. "finish" is used to declare what blocks the player must build LAST in order to complete the structure (Like the wither spawns only if the player places the wither skulls AFTER the soul sand)\
You can just copy the block that was generated by the **/bm create** and move it to "finish"
