test

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

Tests the given parameters against the datapack-specified conditions.

Parameters

player

The player triggering the criterion

stack

The item stack the player is using

damageSource

The damage the player took