add module 'base:util' & fix attack

This commit is contained in:
MihailRis
2024-11-24 15:02:17 +03:00
parent f095edda7a
commit bc17abc8b3
3 changed files with 14 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
local base_entities = {}
function base_entities.drop(ppos, itemid, count)
return entities.spawn("base:drop", ppos, {base__drop={
id=itemid,
count=count
}})
end
return base_entities