mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
add particles.emit(...) (WIP)
This commit is contained in:
parent
9728c674fc
commit
c8187c5f25
14 changed files with 125 additions and 47 deletions
8
res/content/base/scripts/world.lua
Normal file
8
res/content/base/scripts/world.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function on_block_broken(id, x, y, z, playerid)
|
||||
particles.emit({x+0.5, y+0.5, z+0.5}, 100, {
|
||||
lifetime=1.0,
|
||||
spawn_interval=0.0001,
|
||||
explosion={4, 4, 4},
|
||||
texture="blocks:"..block.get_textures(id)[1]
|
||||
})
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue