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

CTAspectStack

A CTAspectStack is a CTAspect combined with an amount that shows how many aspect points the stack will be made of.

Importing the package

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import thaumcraft.aspect.CTAspectStack;

Retrieving such an object

You can retrieve a CTAspectStack object from the CTAspectStack Bracket Handler object:

script.zs
val aspect = <aspect:ignis>;

ZenGetters

NameType
Name
amount
Type
int
Name
internal
Type
CTAspect

Setting the amount

script.zs
//They do the same, both return a new CTAspectStack
val aspect = <aspect:ignis> * 10;
val aspect1 = <aspect:ignis>.setAmount(10);