Cancel Drops (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.4, 2.12 (harvest event)

Syntax

(cancel|clear|delete) [the] drops [of (items|[e]xp[erience][s])]

Description

Cancels drops of items in a death, block break, block drop, and block harvest events. The dropped experience can be cancelled in a death and block break events. Please note that using this in a death event doesn't keep items or experience of a dead player. If you want to do that, use the <a href='#EffKeepInventory'>Keep Inventory / Experience</a> effect.

Examples

on death of a zombie:
	if name of the entity is "&cSpecial":
		cancel drops of items
on break of a coal ore:
	cancel the experience drops
on player block harvest:
	cancel the item drops

View source