mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
update entities.spawn(...) semantics to the docs state
This commit is contained in:
parent
51a57d3d1f
commit
1b99a48849
9 changed files with 23 additions and 13 deletions
|
|
@ -1,6 +1,7 @@
|
|||
local function update(x, y, z)
|
||||
if block.is_replaceable_at(x, y-1, z) then
|
||||
entities.spawn("base:falling_block", {x+0.5, y+0.5, z+0.5}, {block='base:sand'})
|
||||
entities.spawn("base:falling_block", {x+0.5, y+0.5, z+0.5},
|
||||
{base__falling_block={block='base:sand'}})
|
||||
block.set(x, y, z, 0)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue