add test block particles
This commit is contained in:
parent
f1dc983766
commit
8bfc7983da
18
res/content/base/scripts/torch.lua
Normal file
18
res/content/base/scripts/torch.lua
Normal file
@ -0,0 +1,18 @@
|
||||
function on_placed(x, y, z)
|
||||
particles.emit({x + 0.5, y + 0.4, z + 0.5}, -1, {
|
||||
lifetime=2.0,
|
||||
spawn_interval=0.3,
|
||||
acceleration={0, 0, 0},
|
||||
velocity={0, 0.3, 0},
|
||||
explosion={0, 0, 0},
|
||||
size={0.2, 0.2, 0.2},
|
||||
spawn_shape="ball",
|
||||
spawn_spread={0.05, 0.05, 0.05},
|
||||
lighting=false,
|
||||
frames={
|
||||
"particles:fire_0",
|
||||
"particles:smoke_0",
|
||||
"particles:smoke_1"
|
||||
}
|
||||
})
|
||||
end
|
||||
BIN
res/content/base/textures/particles/fire_0.png
Normal file
BIN
res/content/base/textures/particles/fire_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
BIN
res/content/base/textures/particles/smoke_0.png
Normal file
BIN
res/content/base/textures/particles/smoke_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
BIN
res/content/base/textures/particles/smoke_1.png
Normal file
BIN
res/content/base/textures/particles/smoke_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Loading…
x
Reference in New Issue
Block a user