update base:drop

This commit is contained in:
MihailRis
2025-08-06 23:34:31 +03:00
parent f6be6689aa
commit 5f7a75bd7a
2 changed files with 11 additions and 1 deletions
+8 -1
View File
@@ -1,6 +1,13 @@
{
"components": [
"base:drop"
{
"name": "base:drop",
"args": {
"item": "base:stone.item",
"count": 1
}
}
],
"hitbox": [0.4, 0.25, 0.4],
"sensors": [
@@ -8,6 +8,9 @@ timer = 0.3
local def_index = entity:def_index()
dropitem = ARGS
if dropitem.item then
dropitem.id = item.index(dropitem.item)
end
if dropitem then
timer = dropitem.pickup_delay or timer
end