add block.place(...), block.destruct(...)
This commit is contained in:
@@ -23,7 +23,7 @@ function on_grounded()
|
||||
local iy = math.floor(pos[2])
|
||||
local iz = math.floor(pos[3])
|
||||
if block.is_replaceable_at(ix, iy, iz) then
|
||||
block.set(ix, iy, iz, block.index(blockid))
|
||||
block.place(ix, iy, iz, block.index(blockid), 0)
|
||||
else
|
||||
local picking_item = block.get_picking_item(block.index(blockid))
|
||||
local drop = entities.spawn("base:drop", pos, {base__drop={id=picking_item, count=1}})
|
||||
|
||||
Reference in New Issue
Block a user