# Script Events

## Overview

- livingAttack
- abilityDataUpdated
- registerAbilityThreeData
- abilityLocked
- abilityUnlocked
- registerEntityThreeData
- rightClickItem
- livingFall
- multiJump
- livingHurt
- conditionDataUpdated
- livingDeath
- abilityEnabled
- entityJoinWorld
- leftClickBlock
- livingUpdate
- abilityTick
- abilityDisabled
- superpowerSet
- projectileImpact
- rightClickEmpty
- projectileTick
- entityInteract
- leftClickEmpty
- entityStruckByLightning
- rightClickBlock
- setRotationAngles
- livingJump

## livingAttack

Function | Return Type | Parameters
--- | --- | ---
getDamageSource | DamageSourceAccessor | /
getAmount | float | /
isCancelable | boolean | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## abilityDataUpdated

Function | Return Type | Parameters
--- | --- | ---
getValue | Object | /
getData | String | /
getOldValue | Object | /
isCancelable | boolean | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## registerAbilityThreeData

Function | Return Type | Parameters
--- | --- | ---
register | void | data - ThreeData defaultValue - Object
isCancelable | boolean | /
getAbility | AbilityAccessor | /
registerFloat | void | data - FloatThreeData defaultValue - double
registerInteger | void | data - IntegerThreeData defaultValue - double
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## abilityLocked

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## abilityUnlocked

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## registerEntityThreeData

Function | Return Type | Parameters
--- | --- | ---
register | void | data - ThreeData defaultValue - Object
isCancelable | boolean | /
registerFloat | void | data - FloatThreeData defaultValue - double
registerInteger | void | data - IntegerThreeData defaultValue - double
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## rightClickItem

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getHand | String | /
getItemStack | ItemStackAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## livingFall

Function | Return Type | Parameters
--- | --- | ---
getDistance | float | /
setDistance | void | distance - float
isCancelable | boolean | /
getDamageMultiplier | float | /
setDamageMultiplier | void | damageMultiplier - float
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## multiJump

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getJump | int | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## livingHurt

Function | Return Type | Parameters
--- | --- | ---
setAmount | void | amount - float
getDamageSource | DamageSourceAccessor | /
getAmount | float | /
isCancelable | boolean | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## conditionDataUpdated

Function | Return Type | Parameters
--- | --- | ---
getValue | Object | /
getData | String | /
getOldValue | Object | /
isCancelable | boolean | /
getCondition | ConditionAccessor | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## livingDeath

Function | Return Type | Parameters
--- | --- | ---
getDamageSource | DamageSourceAccessor | /
isCancelable | boolean | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## abilityEnabled

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## entityJoinWorld

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## leftClickBlock

Function | Return Type | Parameters
--- | --- | ---
getUseBlock | String | /
getUseItem | String | /
setUseBlock | void | useBlockResult - String
setUseItem | void | useItemResult - String
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getHand | String | /
getItemStack | ItemStackAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## livingUpdate

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## abilityTick

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## abilityDisabled

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## superpowerSet

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getSuperpower | String | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## projectileImpact

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## rightClickEmpty

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getHand | String | /
getItemStack | ItemStackAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## projectileTick

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## entityInteract

Function | Return Type | Parameters
--- | --- | ---
getTarget | EntityAccessor | /
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getHand | String | /
getItemStack | ItemStackAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## leftClickEmpty

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getHand | String | /
getItemStack | ItemStackAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## entityStruckByLightning

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getLightningBoltEntity | EntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## rightClickBlock

Function | Return Type | Parameters
--- | --- | ---
getUseBlock | String | /
getUseItem | String | /
setUseBlock | void | useBlockResult - String
setUseItem | void | useItemResult - String
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getHand | String | /
getItemStack | ItemStackAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## setRotationAngles

Function | Return Type | Parameters
--- | --- | ---
getPartialTicks | float | /
isCancelable | boolean | /
getLimbSwing | float | /
getAgeInTicks | float | /
getNetHeadYaw | float | /
getHeadPitch | float | /
setRotationAngle | void | part - String xyz - String angle - float
getLimbSwingAmount | float | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## livingJump

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean