mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-09-22 08:31:23 +00:00
a3b394c507
Initial layout
52 lines
2.2 KiB
JSON
52 lines
2.2 KiB
JSON
{
|
|
"format_version": "1.10.0",
|
|
"particle_effect": {
|
|
"description": {
|
|
"identifier": "minecraft:block_destruct",
|
|
"basic_render_parameters": {
|
|
"material": "particles_alpha",
|
|
"texture": "atlas.terrain"
|
|
}
|
|
},
|
|
"components": {
|
|
"minecraft:emitter_rate_instant": {
|
|
"num_particles": "variable.emitter_intensity * variable.emitter_intensity * (variable.emitter_intensity)"
|
|
},
|
|
"minecraft:emitter_lifetime_once": {
|
|
"active_time": 0
|
|
},
|
|
"minecraft:emitter_shape_point": {
|
|
"offset": [ "Math.random(-variable.emitter_radius, variable.emitter_radius)", "Math.random(-variable.emitter_radius, variable.emitter_radius)", "Math.random(-variable.emitter_radius, variable.emitter_radius)" ],
|
|
"direction": [ "Math.random(-1,1)", 1, "Math.random(-1, 1)" ]
|
|
},
|
|
"minecraft:particle_initial_speed": "Math.random(0, 4) * variable.velocity_scalar",
|
|
"minecraft:particle_lifetime_expression": {
|
|
"max_lifetime": "0.2f / (Math.random(0.0, 1.0) * 0.9f + 0.1f)"
|
|
},
|
|
"minecraft:particle_motion_dynamic": {
|
|
"linear_acceleration": [ 0, -9.8, 0 ],
|
|
"linear_drag_coefficient": 0.5
|
|
},
|
|
"minecraft:particle_motion_collision": {
|
|
"coefficient_of_restitution": 0.1,
|
|
"collision_drag": 5,
|
|
"collision_radius": 0.1
|
|
},
|
|
"minecraft:particle_appearance_billboard": {
|
|
"size": [ "variable.particle_random_1 * 0.0375 + 0.0375", "variable.particle_random_1 * 0.0375 + 0.0375" ],
|
|
"facing_camera_mode": "lookat_xyz",
|
|
"uv": {
|
|
"texture_width": 1,
|
|
"texture_height": 1,
|
|
"uv": [ "variable.emitter_texture_coordinate.u + (variable.emitter_texture_size.u/4) * (variable.particle_random_1*3)", "variable.emitter_texture_coordinate.v + (variable.emitter_texture_size.v/4) * (variable.particle_random_2*3)" ],
|
|
"uv_size": [ "variable.emitter_texture_size.u/4", "variable.emitter_texture_size.v/4" ]
|
|
}
|
|
},
|
|
"minecraft:particle_appearance_tinting": {
|
|
"color": [ "variable.color.r", "variable.color.g", "variable.color.b", "variable.color.a" ]
|
|
},
|
|
"minecraft:particle_appearance_lighting": {}
|
|
}
|
|
}
|
|
}
|