# Client-side entities

**What are the client-side entities?**\
Entities that are visible only to the game client, not to the server. They can only be manipulated and interacted using packets

**How to spawn a client-side entity?**\
effect: summon clientside entity %integer% with id %integer% with uuid %string% at %location% for %players%\
The first integer is used for entity type ID, you can find them here: <https://wiki.vg/Entity_metadata#Mobs> or use entity type ID expression.\
ID has to be unique, you will use it to interact with an entity, UUID doesn't need to be.\
\&#xNAN;*Example: summon clientside entity 5 with id 101 with uuid (new classic uuid) at player's location for player*

**How to remove client-side entities?**\
effect: destroy entity with id %integer% from %players%\
\&#xNAN;*Example: destroy entity with id 101 from player*

**How to move client-side entities?**\
effect move clientside entity \[with id] %integer% by \[x:] %integer% \[y:] %integer% \[z:] %integer% for %players%\
This packet allows at most 8 blocks movement in any direction, because short range is from -32768 to 32767. And 32768 / (128 \* 32) = 8\
(currentX/Y/Z  32 - prevX/Y/Z  32) \* 128\
\&#xNAN;*Example: move clientside entity with id 101 by 1600 0 1600 for player*

**How to rotate client-side entities?**\
effect: rotate clientside entity \[with id] %integer% by \[yaw:] %number% \[pitch:] %number% for %players%\
\&#xNAN;*Example: rotate clientside entity with id 101 by 16 0 for player*

**How to rotate heads of entities?**\
effect: rotate clientside entity with id %integer% by %number% for %players%\
Entities rotate their heads separately from the body, you can use this effect to rotate them.\
\&#xNAN;*Example: rotate clientside entity with id 101 by 90 for player*


---

# 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://jakub-zahomolkou.gitbook.io/skpapi/described-features-of-skpapi-1/client-side-entities.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.
