# Spawn Egg

You can create spawn eggs for your custom entities using the `entity_summoner` behaviour.

Example

{% tabs %}
{% tab title="Modern (Recommended)" %}

```yaml
items:
  happy_creeper_spawn_egg:
    name: Happy Creeper Spawn Egg
    graphics:
      texture: item/happy_creeper_spawn_egg
    behaviours:
      entity_summoner:
        entity: happy_creeper
```

{% endtab %}

{% tab title="Old (1.21.3 and lower)" %}

```yaml
items:
  happy_creeper_spawn_egg:
    name: Happy Creeper Spawn Egg
    resource:
      generate: true
      texture: item/happy_creeper_spawn_egg
      material: PAPER
    behaviours:
      entity_summoner:
        entity: happy_creeper
```

{% endtab %}
{% endtabs %}


---

# 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://itemsadder.devs.beer/adding-content/entities/spawn-egg.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.
