Home Getting Started With Scripts Commands Examples
BracketDumpers BracketHandlers BracketValidators

NumberProvider

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.NumberProvider;

Static Methods

Return Type: NumberProvider

script.zs
NumberProvider.between(min as float, max as float) as NumberProvider
ParameterTypeDescription
Parameter
min
Type
float
Description
No Description Provided
Parameter
max
Type
float
Description
No Description Provided

Return Type: NumberProvider

script.zs
NumberProvider.binomial(n as int, p as int) as NumberProvider
ParameterTypeDescription
Parameter
n
Type
int
Description
No Description Provided
Parameter
p
Type
int
Description
No Description Provided

Return Type: NumberProvider

script.zs
NumberProvider.exactly(value as float) as NumberProvider
ParameterTypeDescription
Parameter
value
Type
float
Description
No Description Provided

Return Type: NumberProvider

script.zs
NumberProvider.scoreboard(target as EntityTarget, score as string, scale as float) as NumberProvider
ParameterTypeDescriptionOptionalDefaultValue
Parameter
target
Type
EntityTarget
Description
No Description Provided
Optional
false
DefaultValue
Parameter
score
Type
string
Description
No Description Provided
Optional
false
DefaultValue
Parameter
scale
Type
float
Description
No Description Provided
Optional
true
DefaultValue
1.0