JannisX11 / snowstorm

Minecraft Bedrock Particle Generator
https://snowstorm.app
GNU General Public License v3.0
150 stars 25 forks source link

Array value for `minecraft:particle_initial_speed` is not supported #34

Closed stirante closed 2 years ago

stirante commented 3 years ago

After importing knockback_roar.json vanilla particle, I noticed, that it uses minecraft:particle_initial_speed component with an array as a value to define separate speeds for each axis. Snowstorm completely ignored that and instead treated those values as a direction.

Example from knockback_roar.json

"minecraft:particle_initial_speed": [ "15 * Math.random(-1.0, 1.0)", "15 * Math.random(-1.0, 1.0)", "15 * Math.random(-1.0, 1.0)" ],
JannisX11 commented 2 years ago

This is intentional since it works exactly the same as a direction.