Options
All
  • Public
  • Public/Protected
  • All
Menu

Parameters object used in DamageModule.damageEntity method.

since

3.0

Hierarchy

  • DamageDealingParams

Index

Properties

attacker?: number

Unique ID of the attacker entity, needs to be specified if you put "actor" or "entity" in source param.

bool1?: boolean

Unknown param, defaults to false

bool2?: boolean

Unknown param, defaults to false

Same as position

position?: Partial<Vector>

Coordinates of the block, which dealt the damage, needs to be specified if you put "block" in source param.

region?: BlockSource

Same as world

source?: "entity" | "actor" | "blocksource" | "world" | "block"

Damage source type

  • omitting this param - common damage
  • "actor" or "entity" - damage from an attacking entity
  • "blocksource" or "world" - damage from the world
  • "block" - damage from a specific block
world?: BlockSource

World object, needs to be specified if you put "blocksource" or "world" in source param.

x?: number

Same as X coordinate in position

y?: number

Same as Y coordinate in position

z?: number

Same as Z coordinate in position

Generated using TypeDoc