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
参数类型可选默认值
参数
target
类型
EntityTarget
可选
false
默认值
参数
score
类型
string
可选
false
默认值
参数
scale
类型
float
可选
true
默认值
1.0