💎ItemService

Service for handling dropped items.

Example usage:

-- Randomly spawn resources around the map
while task.wait(0.2) do
    local position = BlockService.getAboveRandomBlock()
    ItemService.dropItem(ItemType.EMERALD, position)
end

Functions

dropItem(itemType: ItemType, position: Vector3, amount: bool | nil)

Drop an item at a location. If you supply an amount that will be the item stack size.

Last updated