@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 ​
readonlyconditions:LootItemCondition[]
Defined in: @minecraft/server/index.d.ts:15793
Inherited from ​
damage ​
readonlydamage: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.