Dropped Item (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[the] drop[ped] item [slot] of %entities%

Description

The item a dropped item entity is showing. This also works on an item entity that was spawned through the spawn section rather than dropped, which is how such an entity is given an item to show.

Examples

on item pickup:
	give dropped item of event-entity to player

spawn item at player's position:
	before spawn:
		set dropped item of entity to diamond

View source