> For the complete documentation index, see [llms.txt](https://ajneb97.gitbook.io/thesearch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajneb97.gitbook.io/thesearch/examples/search-with-mythicmobs-example.md).

# Search with MythicMobs example

To add entities to a Search you will need the plugin MythicMobs or Citizens.

{% hint style="info" %}
**Why?**

This plugin allows you to create very customized entities. I didn't want to add a new functionality to my plugin in which you can create entities and decorate them as you want, since MythicMobs/Citizens already do that.
{% endhint %}

## MythicMobs mob file

I created the following mob in the Mobs folder:

```yaml
LobbyMob:
  Type: SKELETON
  Health: 20
  Damage: 0
  Options:
    AlwaysShowName: false
    Despawn: false
    Glowing: false
    KnockbackResistance: 0.8
    MovementSpeed: 0
    NoAI: true
    Silent: true
    Invincible: true
    PreventOtherDrops: true
    PreventItemPickup: true
    PreventRandomEquipment: true
    PreventSunburn: true
    PreventJockeyMounts: true
    PreventTransformation: true
  Equipment:
  - LobbyMobHead HEAD
```

Make sure the `NoAI` option is set to `true`, so the entity can't move and remains always in the same position.

## MythicMobs item file

I also created an item file in the Items folder:

```yaml
LobbyMobHead:
  Id: PLAYER_HEAD
  Options:
    SkinTexture: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTY4NGYxMTQ4MGMwZmM5NzQ4MGVkMWI3MGMyMzEzOWJiNGZjZDYxNmNjOTY3ZTZjNzc5YmExZDJlZDU1In19fQ==
```

This custom textured head will be placed in the head of the mob.

## Creating the Search

Now to create the search:

1. Use the `/search create halloween` command.
2. Spawn the previously created mob using `/mm mob spawn LobbyMob` in the desired location.
3. Look at the mob and use the `/search addentity halloween` command.

The Search now requires players to find this mob. Of course you can add as many as you want. You can now modify the Search properties like display particles.

![](https://2821365744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5w36rgaZwnayfTveUQh3%2Fuploads%2FMrmAlLPetsVkoiHJxKSR%2F2021-10-31_12.11.12.png?alt=media\&token=181b4efd-1192-4b8e-a771-0636126e75ec)
