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

Class: PlayerPlaceBlockBeforeEvent experimental

event player block

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

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

Remarks

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 face of the block that the new block is being placed on.


faceLocation

readonly faceLocation: Vector3

Beta

相对于方块底部西北角的新方块放置位置。

Remarks

Location relative to the bottom north-west corner of the block where the new block is being placed onto.


permutationToPlace

readonly permutationToPlace: BlockPermutation

Beta

如果事件未被取消,将放置的方块排列。

Remarks

The block permutation that will be placed if the event is not cancelled.


player

readonly player: Player

Beta

放置此事件方块的玩家。

Remarks

Player that is placing the block for this event.

同领域相关