Skip to content

@minecraft/server


@minecraft/server / SetItemDamageFunction

Class: SetItemDamageFunction ​

Defined in: @minecraft/server/index.d.ts:19733

Loot item function that modifies the durability value of the item dropped.

Extends ​

Properties ​

conditions ​

readonly conditions: LootItemCondition[]

Defined in: @minecraft/server/index.d.ts:15793

Inherited from ​

LootItemFunction.conditions


damage ​

readonly damage: NumberRange

Defined in: @minecraft/server/index.d.ts:19742

Remarks ​

The value range from which the function randomly chooses the durability value to assign. Contains minimum and maximum values. Must always be between 0.0 and 1.0.