Drop (Section) — Skript

Addon: Skript · Category: Section

Syntax

drop [:non ticking] %items% [%directions% %points%] [in [(world|instance)[s]] %instances%] [:sync]

Description

Drops items on the ground as dropped items, which any entity whose item pickup state is enabled can pick up right away. A non ticking dropped item never merges with other dropped items and never counts down its pickup delay. To spawn a dropped item that is only there to be looked at, spawn an item entity instead and give it an item through the dropped item expression.

Examples

drop diamond at position(0, 41, 0) in instance {_instance}
drop player's tool at player's position
drop 5 of stone above player's position

drop diamond at player's position:
	before spawn:
		set pickup delay of entity to 3 seconds
	after spawn:
		broadcast "dropped a diamond for %player%"

View source