Skip to content

@minecraft/server


@minecraft/server / SetItemCountFunction

Class: SetItemCountFunction ​

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

Loot item function that modifies the number items that drop from the loot pool entry.

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:19725

Remarks ​

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