On Block Drop (Event) — Skript

Addon: Skript · Category: Event · Since: 2.10

Syntax

[on] block drop[ping] [[of] %-itemtypes/blockdatas%]

Description

Called when a block broken by a player drops something. <ul> <li>event-player: The player that broke the block</li> <li>past event-block: The block that was broken</li> <li>event-block: The block after being broken</li> <li>event-items (or drops): The drops of the block</li> <li>event-entities: The entities of the dropped items</li> </ul>

If the breaking of the block leads to others being broken, such as torches, they will appearin "event-items" and "event-entities".

Event Values

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

Examples

on block drop:
	broadcast event-player
	broadcast past event-block
	broadcast event-block
	broadcast event-items
	broadcast event-entities
on block drop of oak log:

View source