mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
feat: support items data in base pack
This commit is contained in:
parent
5384843892
commit
3aa7d6ac28
6 changed files with 21 additions and 8 deletions
|
|
@ -1,12 +1,13 @@
|
|||
local util = {}
|
||||
|
||||
function util.drop(ppos, itemid, count, pickup_delay)
|
||||
function util.drop(ppos, itemid, count, data, pickup_delay)
|
||||
if itemid == 0 or not itemid then
|
||||
return nil
|
||||
end
|
||||
return entities.spawn("base:drop", ppos, {base__drop={
|
||||
id=itemid,
|
||||
count=count,
|
||||
data=data,
|
||||
pickup_delay=pickup_delay
|
||||
}})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue