Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

IPotionType

Importing the package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.potions.IPotionType;

Getting an IPotionType object

You can get such an object through the use of the PotionType Bracket handler

script.zs
<potiontype:minecraft:long_strength>;

ZenGetter

ZenGetterType
ZenGetter
Type
ZenGetter
effects
Type
List<IPotionEffect>

ZenMethods

Imitate the PotionType Bracket Handler

This method does the same as the PotionType Bracket Handler.

script.zs
//fromString(String potiontype);
IPotionType.fromString("minecraft:mundane");