Home Commands Examples Getting Started With Scripts Global Keywords

IntRange

Importing the class

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 at the very top of the file.

script.zs
import crafttweaker.api.loot.IntRange;

Static Methods

Return Type: IntRange

script.zs
IntRange.atLeast(min as int) as IntRange
ParameterType
Parameter
min
Type
int

Return Type: IntRange

script.zs
IntRange.atMost(max as int) as IntRange
ParameterType
Parameter
max
Type
int

Return Type: IntRange

script.zs
IntRange.between(min as int, max as int) as IntRange
ParameterType
Parameter
min
Type
int
Parameter
max
Type
int

Return Type: IntRange

script.zs
IntRange.exactly(value as int) as IntRange
ParameterType
Parameter
value
Type
int