Skip to content

@minecraft/server


@minecraft/server / SetPotionFunction

Class: SetPotionFunction ​

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

Loot item function that assigns a type to a dropped potion.

Extends ​

Properties ​

conditions ​

readonly conditions: LootItemCondition[]

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

Inherited from ​

LootItemFunction.conditions


id ​

readonly id: string

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

Remarks ​

The id to be assigned to the dropped potion.