damageSource

Utility function to create a DamageSource.

Parameters

damageKey

The registry key of the damage type


Utility function to create a DamageSource.

Parameters

damageKey

The registry key of the damage type

attacker

The causer entity of the damage


fun World.damageSource(damageKey: RegistryKey<DamageType>, source: Entity, attacker: Entity): DamageSource(source)

Utility function to create a DamageSource.

Parameters

damageKey

The registry key of the damage type

source

The causer entity of the damage

attacker

The owner of source