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/CarryOverBlockEntityDataFunction.md.

Class: CarryOverBlockEntityDataFunction experimental

entity block

Beta

战利品物品函数,会尝试将被破坏方块的方块实体数据复制到掉落的物品上。

Loot item function that will try to copy the block entity data from the destroyed block to the dropped item.

Extends

Properties

conditions

readonly conditions: LootItemCondition[]

Beta

Inherited from

LootItemFunction.conditions


dynamicProperties

readonly dynamicProperties: boolean

Beta

Remarks

如果为 true,并且方块实体具有 dynamic_properties,则该函数会将动态属性从方块实体复制到掉落的物品上。

If true, and if the block entity had dynamic_properties, the function will copy the dynamic properties from the block entity to the dropped item.

同领域相关