On Can Build Check (Event) — Skript

Addon: Skript · Category: Event · Since: 1.0 (basic), 2.0 ([un]cancellable)

Syntax

[on] [block] can build check

Description

Called when a player rightclicks on a block while holding a block or a placeable item. You can either cancel the event to prevent the block from being built, or uncancel it to allow it. Please note that the <a href='#ExprDurability'>data value</a> of the block to be placed is not available in this event, only its <a href='#ExprIdOf'>ID</a>.

Event Values

  • event-block
  • event-location
  • event-player
  • event-world
  • past event-block

Examples

on block can build check:
	cancel event

View source