# 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.

![](/files/sSVZipFY0vRS1qXuKQzL)


---

# 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://ajneb97.gitbook.io/thesearch/examples/search-with-mythicmobs-example.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.
