Skip to content

@pumpkin-plugins/dynamic-lights-pumpkin API / lights/dropped-items / newDroppedItemId

Function: newDroppedItemId() ​

newDroppedItemId(previous, current): number | undefined

Defined in: packages/dynamic-lights-pumpkin/src/lights/dropped-items.ts:37

Identifies a single new item after a drop, excluding existing or ambiguous nearby items.

Parameters ​

previous ​

ReadonlySet<number>

current ​

readonly number[]

Returns ​

number | undefined

Pumpkin Plugins documentation