feat: support items data in base pack
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user