1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-11 13:49:29 +00:00
bedrock-samples/resource_pack/particles/snowflake.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

58 lines
1.8 KiB
JSON

{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "minecraft:snowflake_particle",
"basic_render_parameters": {
"material": "particles_alpha",
"texture": "textures/particle/particles"
}
},
"components": {
"minecraft:emitter_shape_custom": {
"offset": [
"0.5 + math.random(-0.2, 0.2)",
1.2,
"0.5 + math.random(-0.2, 0.2)"
],
"direction": [
"Math.random(-1.0, 1.0)",
0.2,
"Math.random(-1.0, 1.0)"
]
},
"minecraft:emitter_rate_manual": {
"max_particles": 9
},
"minecraft:emitter_lifetime_expression": {
"activation_expression": 1,
"expiration_expression": 0
},
"minecraft:particle_initial_speed": "Math.random(2.0, 2.5)",
"minecraft:particle_lifetime_expression": {
"max_lifetime": "0.5"
},
"minecraft:particle_motion_dynamic": {
"linear_acceleration": [ 0, -9.8, 0 ]
},
"minecraft:particle_initialization": {
"per_render_expression": "variable.size = 0.25 * math.pow(1.0-(variable.particle_age / variable.particle_lifetime), 0.08);"
},
"minecraft:particle_appearance_billboard": {
"size": ["variable.size", "variable.size"],
"facing_camera_mode": "lookat_xyz",
"uv": {
"texture_width": 4,
"texture_height": 4,
"uv": [ "1.25 - (Math.floor(5 * variable.particle_age / variable.particle_lifetime) / 4)", 0 ],
"uv_size": [ 0.25, 0.25 ]
}
},
"minecraft:particle_appearance_tinting": {
"color": "#dfe5ed"
},
"minecraft:particle_appearance_lighting": {}
}
}
}