Skip to content

A script library that allows for better particle rendering in KubeJS via Lodestone. Made by squoshi, packaged for KJSPKG.

License

Notifications You must be signed in to change notification settings

gcatkjspkgs/lodestone-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LodestoneJS

kjspkg-available

Example

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)
})

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

No packages published