Импорт класса

Link to импорт-класса

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.

ZenScript
Copy
import crafttweaker.api.loot.NumberProvider;

Name: between

Return Type: NumberProvider

ZenScript
Copy
NumberProvider.between(min as float, max as float) as NumberProvider
ПараметрТип
Параметр
min
Тип
float
Параметр
max
Тип
float

Name: binomial

Return Type: NumberProvider

ZenScript
Copy
NumberProvider.binomial(n as int, p as int) as NumberProvider
ПараметрТип
Параметр
n
Тип
int
Параметр
p
Тип
int

Name: exactly

Return Type: NumberProvider

ZenScript
Copy
NumberProvider.exactly(value as float) as NumberProvider
ПараметрТип
Параметр
value
Тип
float

Name: scoreboard

Return Type: NumberProvider

ZenScript
Copy
NumberProvider.scoreboard(target as EntityTarget, score as string, scale as float) as NumberProvider
ПараметрТипOptionalDefault Value
Параметр
target
Тип
EntityTarget
Optional
false
Default Value
Параметр
score
Тип
string
Optional
false
Default Value
Параметр
scale
Тип
float
Optional
true
Default Value
1.0