feat: support items data in base pack

This commit is contained in:
MihailRis
2025-02-18 01:03:34 +03:00
parent 5384843892
commit 3aa7d6ac28
6 changed files with 21 additions and 8 deletions
+2 -1
View File
@@ -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