# 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 | /
isCancelable | boolean | /
getAmount | float | /
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
registerInteger | void | data - IntegerThreeData defaultValue - double
registerFloat | void | data - FloatThreeData defaultValue - double
getAbility | AbilityAccessor | /
isCancelable | boolean | /
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
registerInteger | void | data - IntegerThreeData defaultValue - double
registerFloat | void | data - FloatThreeData defaultValue - double
isCancelable | boolean | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## rightClickItem

Function | Return Type | Parameters
--- | --- | ---
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getItemStack | ItemStackAccessor | /
getHand | String | /
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
--- | --- | ---
getJump | int | /
isCancelable | boolean | /
getAbility | AbilityAccessor | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## livingHurt

Function | Return Type | Parameters
--- | --- | ---
getDamageSource | DamageSourceAccessor | /
setAmount | void | amount - float
isCancelable | boolean | /
getAmount | float | /
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
--- | --- | ---
getUseItem | String | /
setUseItem | void | useItemResult - String
getUseBlock | String | /
setUseBlock | void | useBlockResult - String
isCancelable | boolean | /
getPos | Vector3dAccessor | /
getItemStack | ItemStackAccessor | /
getHand | String | /
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 | /
getItemStack | ItemStackAccessor | /
getHand | String | /
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 | /
getItemStack | ItemStackAccessor | /
getHand | String | /
getLivingEntity | LivingEntityAccessor | /
getEntity | EntityAccessor | /
getWorld | WorldAccessor | /
isCancelled | boolean | /
setCanceled | void | canceled - boolean

## leftClickEmpty

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

## setRotationAngles

Function | Return Type | Parameters
--- | --- | ---
getAgeInTicks | float | /
getNetHeadYaw | float | /
getHeadPitch | float | /
getLimbSwing | float | /
getLimbSwingAmount | float | /
getPartialTicks | float | /
isCancelable | boolean | /
setRotationAngle | void | part - String xyz - String angle - 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