On Harvest Block (Event) — Skript
Addon: Skript · Category: Event · Since: 2.12
Syntax
[on] [player] [block|crop] harvest[ing] [of %-itemtypes/blockdatas%]Description
Called when a player harvests a block. A block being harvested is when a block drops items and the state of the block is changed, but the block is not broken. An example is harvesting berries from a berry bush.
Event Values
- event-block
- event-equipmentslot
- event-object
- event-player
- event-slot
- event-world
Examples
on player block harvest:
send "You have harvested %event-block% that dropped %event-items% using your %item of event-slot% in your %event-equipment slot%"
on crop harvesting of sweet berry bush:
chance 5%:
set drops to a diamond
chance 1%
cancel the drops