> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/events/entityspawn.md).

# EntitySpawn

Example usage:

```lua
-- Make all entities have only 1 health
Events.EntitySpawn(function(event)
    event.entity:setMaxHealth(1)
end)
```

### Parameters

#### entity: [Entity](/scripting/bedwars-scripting/objects/entity.md)

The spawning entity
