mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add module 'base:util' & fix attack
This commit is contained in:
parent
f095edda7a
commit
bc17abc8b3
3 changed files with 14 additions and 6 deletions
10
res/content/base/modules/util.lua
Normal file
10
res/content/base/modules/util.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue