mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add block particles property
This commit is contained in:
parent
24af455bf0
commit
0eeb6b6eb2
11 changed files with 180 additions and 23 deletions
|
|
@ -15,5 +15,21 @@
|
|||
"obstacle": false,
|
||||
"grounded": true,
|
||||
"rotation": "pipe",
|
||||
"material": "base:wood"
|
||||
"material": "base:wood",
|
||||
"particles": {
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue