For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/RandomBlockStateFunction.md.

Class: RandomBlockStateFunction

block

Beta

随机修改掉落物品方块状态的战利品物品函数。

Loot item function that randomly modifies the block state of the item dropped.

Extends

Properties

blockState

readonly blockState: string

Beta


conditions

readonly conditions: LootItemCondition[]

Beta

Inherited from

LootItemFunction.conditions


values

readonly values: NumberRange

Beta

Remarks

函数随机选择给定方块状态值的范围,包含最小值和最大值。

The range from which the function randomly chooses the value to assign to the given block state. Contains minimum and maximum values.

同领域相关