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

Class: BlockComponentPlayerPlaceBeforeEvent

event player block component

Beta

包含有关玩家放置方块之前的事件信息。

Contains information regarding an event before a player places a block.

Extends

Properties

block

readonly block: Block

Beta

Remarks

当前世界中此事件所在位置的方块。

Block currently in the world at the location of this event.

Inherited from

BlockEvent.block


cancel

cancel: boolean

Beta

Remarks

如果设置为 true,则取消方块放置事件。

If set to true, cancels the block place event.


dimension

readonly dimension: Dimension

Beta

Remarks

包含此事件主体方块的维度。

Dimension that contains the block that is the subject of this event.

Inherited from

BlockEvent.dimension


face

readonly face: Direction

Beta

Remarks

放置时所朝向的方块面。

The block face that was placed onto.


permutationToPlace

permutationToPlace: BlockPermutation

Beta

Remarks

如果事件未被取消,将放置的方块置换。如果设置为不同的方块置换,则将放置该置换。

The block permutation that will be placed if the event is not cancelled. If set to a different block permutation, that permutation will be placed instead.


player?

readonly optional player?: Player

Beta

Remarks

正在放置此方块的玩家。

The player that is placing this block.

同领域相关