预览版
An array of item stacks dropped from the loot drop event. Can be empty if no loot dropped, or undefined if the provided tool is insufficient to mine the block.
Throws if the block is in an unloaded chunk, or if the block's position is outside of world bounds.
可选
tool: ItemStackOptional. The tool to use in the looting operation.
An array of item stacks dropped from the loot drop event. Can be empty if no loot dropped, or undefined if the provided tool is insufficient to mine the block.
An array of item stacks dropped from the loot drop event. Can be empty if no loot dropped, or undefined if the provided tool is insufficient to mine the block.
An array of item stacks dropped from the loot drop event. Can be empty if no loot dropped, or undefined if the entity was invalid.
可选
tool: ItemStackOptional. The tool to use in the looting operation.
An array of item stacks dropped from the loot drop event. Can be empty if no loot dropped.
实验性
An array of item stacks dropped from the loot drop event. Can be empty if no loot dropped, or undefined if the provided tool is insufficient to mine the block.
实验性
Path to the table to retrieve. Does not include file
extension, or 'loot_tables/' folder prefix. Example:
entities/creeper
.
Returns a LootTable if one is found, or undefined
if the
provided path does not correspond to an existing loot table.
Manager for Loot Table related APIs. Allows for generation of drops from blocks and entities according to their loot tables.