2024-11-29 17:57:18 +03:00

15 lines
294 B
Lua

local util = {}
function util.drop(ppos, itemid, count, pickup_delay)
if itemid == 0 or not itemid then
return nil
end
return entities.spawn("base:drop", ppos, {base__drop={
id=itemid,
count=count,
pickup_delay=pickup_delay
}})
end
return util