onEvent('level.explosion.post', event => {
const { x, y, z, level } = event
let count = 0
event.affectedBlocks.forEach(block => {
if (block.id == 'minecraft:air') return
count++
})
let SmokeParticle = new Particle(event)
SmokeParticle.colorData([0,0,0], [100,100,100])
SmokeParticle.lifetime(count / 100 * 600)
SmokeParticle.motion(0, 0.05, 0)
SmokeParticle.position(x, y, z)
SmokeParticle.randomMotion(0.05, 0.05, 0.05)
SmokeParticle.randomOffset(count / 60)
SmokeParticle.scaleData(0.5, 0)
SmokeParticle.transparencyData(0.5, 0)
SmokeParticle.type('SMOKE')
SmokeParticle.spawn(count * 20)
})
-
Notifications
You must be signed in to change notification settings - Fork 0
A script library that allows for better particle rendering in KubeJS via Lodestone. Made by squoshi, packaged for KJSPKG.
License
gcatkjspkgs/lodestone-library
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A script library that allows for better particle rendering in KubeJS via Lodestone. Made by squoshi, packaged for KJSPKG.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published