ItemPotionComponent Class
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
Extends
When present on an item, this item is a potion item.
Properties
potionEffectType
read-only potionEffectType: PotionEffectType;
The PotionEffectType associated with the potion item.
Type: PotionEffectType
Warning
This property can throw errors when used.
potionLiquidType
read-only potionLiquidType: PotionLiquidType;
The PotionLiquidType associated with the potion item.
Type: PotionLiquidType
Warning
This property can throw errors when used.
potionModifierType
read-only potionModifierType: PotionModifierType;
The PotionModifierType associated with the potion item.
Type: PotionModifierType
Warning
This property can throw errors when used.
Constants
componentId
static read-only componentId = "minecraft:potion";
Type: string
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for