trigger

fun trigger(player: ServerPlayerEntity, stack: ItemStack, damageSource: DamageSource)(source)

Triggers the criterion.

Parameters

player

The player triggering the criterion

stack

The item stack the player is using

damageSource

The damage the player took