# Events

## EventRender

```lua
function eventRender() 
end
```

## EventTick

```lua
function eventTick() 
end
```

## EventDamage

<pre class="language-lua"><code class="lang-lua">getEventDamageDamageType() --  ENDER_PEARL, ARROW, FALL
<strong>function eventDamage() 
</strong>end
</code></pre>

## EventRotation

```lua
getEventRotationOnGround()
getEventRotationPitch()
getEventRotationYaw()
setEventRotationOnGround(true)
setEventRotationPitch(90)
setEventRotationYaw(10)
function eventRotation() 
end
```

## EventKey

```lua
getEventKeyKey()
setEventKeyKey(1) --GLFW NUM
function eventKey() 
end
```

## EventSendPacket

```lua
function eventSendPacket() 
end
```

## EventReceivePacket

```lua
function eventReceivePacket() 
end
```

## EventBlockPlace

```lua
getEventBlockPlaceStack()-- имя поставленнего блока
function eventBlockPlace() 
end
```

## EventLivingTick

```lua
function eventLivingTick() 
end
```

## EventInput

<pre class="language-lua"><code class="lang-lua">getEventInputForward()
getEventInputJump()
getEventInputSneak()
getEventInputSneakSlowDownMultiPlier()
getEventInputStrafe()
setEventInputForward(1)
setEventInputJump(true)
setEventInputSneak(true)
setEventInputSneakSlowDownMultiPlier(0.3)
setEventInputStrafe(1)
<strong>function eventInput() 
</strong>end
</code></pre>

## OnLoad

```lua
function onLoad() 
end
```

## OnUnLoad

```lua
function onUnLoad() 
end
```

## EventRenderEffects

```lua
function eventRenderEffects() 
end
```

## EventRender3D

```lua
function eventRender3D() 
end
```

## EventNoSlow

```lua
getEventNoSlowSlow()
setEventNoSlowSlow(1) -- default 0.2
function eventNoSlow() 
end
```

## EventAttack

```lua
getEventAttackEntity().name
getEventAttackEntity().posX
getEventAttackEntity().posY
getEventAttackEntity().posZ
getEventAttackEntity().posY
getEventAttackEntity().posYEye
getEventAttackEntity().distance
getEventAttackEntity().isPlayer
function eventAttack() 
end
```

## EventJump

```lua
getEventJumpEntity().name
getEventJumpEntity().posX
getEventJumpEntity().posY
getEventJumpEntity().posZ
getEventJumpEntity().posY
getEventJumpEntity().posYEye
getEventJumpEntity().distance
getEventJumpEntity().isPlayer
function eventJump() 
end
```

## EventFirework

<pre class="language-lua"><code class="lang-lua">getEventFireworkPitch()
getEventFireworkYaw()
getEventFireworkBoost()
setEventFireworkBoost(1.5) -- default value
setEventFireworkYaw(60)
setEventFireworkPitch(2)
<strong>function eventFirework() 
</strong>end
</code></pre>

## EventFlight

<pre class="language-lua"><code class="lang-lua">getEventFlightPitch()
getEventFlightYaw()
setEventFlightPitch(70)
setEventFlightYaw(10)
<strong>function eventFlight() 
</strong>end
</code></pre>


---

# 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://winnerclient-lua-api.gitbook.io/winnerclient-api/catigories/events.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.
