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

Class: ItemUseOnEvent

event

Beta

包含有关在方块上使用物品的信息。

Contains information regarding the use of an item on a block.

Extended by

Properties

block

readonly block: Block

Beta

Remarks

此事件影响的方块。

The block impacted by this event.


blockFace

readonly blockFace: Direction

Beta

Remarks

使用物品所在的方块面。

The face of the block that the item was used on.


faceLocation

readonly faceLocation: Vector3

Beta

Remarks

相对于使用物品的方块西北底角的位置。

Location relative to the bottom north-west corner of the block that the item was used on.


itemStack

readonly itemStack: ItemStack

Beta

Remarks

在方块上使用的物品堆。

The item stack used on the block.

同领域相关