Dig Blocks, item not dropping
#3
Here a example, you would need to set the world object, e.g. world = Player:GetWorld()

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
Reply
Thanks given by:


Messages In This Thread
Dig Blocks, item not dropping - by ImCrafted - 06-05-2017, 07:13 AM
RE: Dig Blocks, item not dropping - by ImCrafted - 06-05-2017, 03:03 PM
RE: Dig Blocks, item not dropping - by Seadragon91 - 06-05-2017, 04:07 PM
RE: Dig Blocks, item not dropping - by ImCrafted - 06-05-2017, 04:27 PM
RE: Dig Blocks, item not dropping - by ImCrafted - 06-05-2017, 04:35 PM
RE: Dig Blocks, item not dropping - by xoft - 06-05-2017, 05:08 PM
RE: Dig Blocks, item not dropping - by ImCrafted - 06-05-2017, 05:24 PM
RE: Dig Blocks, item not dropping - by xoft - 06-05-2017, 10:03 PM



Users browsing this thread: 3 Guest(s)