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
类型
浮点数
描述
No Description Provided
参数
max
类型
浮点数
描述
No Description Provided

Name: binomial

Return Type: NumberProvider

ZenScript
Copy
NumberProvider.binomial(n as int, p as int) as NumberProvider
参数类型描述
参数
n
类型
int
描述
No Description Provided
参数
p
类型
int
描述
No Description Provided

Name: exactly

Return Type: NumberProvider

ZenScript
Copy
NumberProvider.exactly(value as float) as NumberProvider
参数类型描述
参数
类型
浮点数
描述
No Description Provided

Name: scoreboard

Return Type: NumberProvider

ZenScript
Copy
NumberProvider.scoreboard(target as EntityTarget, score as string, scale as float) as NumberProvider
参数类型描述可选DefaultValue
参数
target
类型
EntityTarget
描述
No Description Provided
可选
false
DefaultValue
参数
score
类型
string
描述
No Description Provided
可选
false
DefaultValue
参数
scale
类型
浮点数
描述
No Description Provided
可选
true
DefaultValue
1.0