06-05-2017, 04:07 PM
(This post was last modified: 06-05-2017, 04:23 PM by Seadragon91.)
Here a example, you would need to set the world object, e.g. world = Player:GetWorld()
cItems -> https://api.cuberite.org/cItems.html
Code:
-- The items to drop
local items = cItems()
items:Add(cItem(E_BLOCK_STONE, 12))
items:Add(cItem(E_BLOCK_COBBLESTONE, 6))
items:Add(cItem(E_BLOCK_SAND, 3))
-- The world where the pickup should be spawned
local world = <world>
-- Change the position of the spawn
world:SpawnItemPickups(100, 100, 100, items, 0)
cItems -> https://api.cuberite.org/cItems.html