Skip to content

@minecraft/server


@minecraft/server / LootingEnchantFunction

Class: LootingEnchantFunction ​

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

Loot item function that drops extra items if the provided tool has the looting enchant.

Extends ​

Properties ​

conditions ​

readonly conditions: LootItemCondition[]

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

Inherited from ​

LootItemFunction.conditions


count ​

readonly count: NumberRange

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

Remarks ​

The value range from which the function randomly chooses the number of extra items to drop. Contains minimum and maximum values.