mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-09-22 08:31:23 +00:00
52 lines
1.7 KiB
JSON
52 lines
1.7 KiB
JSON
{
|
|
"format_version": "1.10.0",
|
|
"particle_effect": {
|
|
"description": {
|
|
"identifier": "minecraft:dust_plume",
|
|
"basic_render_parameters": {
|
|
"material": "particles_alpha",
|
|
"texture": "textures/particle/particles"
|
|
}
|
|
},
|
|
"components": {
|
|
"minecraft:emitter_rate_instant": {
|
|
"num_particles": 7
|
|
},
|
|
"minecraft:emitter_lifetime_once": {
|
|
},
|
|
"minecraft:emitter_shape_point": {
|
|
"direction": [ "Math.random(-0.45, 0.45)", 0.95, "Math.random(-0.45, 0.45)" ]
|
|
},
|
|
"minecraft:particle_lifetime_expression": {
|
|
"max_lifetime": "7.0 / 20.0 / Math.random(0.5, 1.0)"
|
|
},
|
|
"minecraft:particle_initial_speed": "Math.random(1.5, 3.0)",
|
|
"minecraft:particle_motion_dynamic": {
|
|
"linear_acceleration": [ 0, "-2.0 * Math.pow(0.88, variable.particle_age)", 0 ],
|
|
"linear_drag_coefficient": "1.96 * Math.pow(0.92, variable.particle_age)"
|
|
},
|
|
"minecraft:particle_appearance_billboard": {
|
|
"size": [ 0.165, 0.165 ],
|
|
"facing_camera_mode": "lookat_xyz",
|
|
"uv": {
|
|
"texture_width": 128,
|
|
"texture_height": 128,
|
|
"flipbook": {
|
|
"base_UV": [ 56, 0 ],
|
|
"size_UV": [ 8, 8 ],
|
|
"step_UV": [ -8, 0 ],
|
|
"frames_per_second": 8,
|
|
"max_frame": 8,
|
|
"stretch_to_lifetime": true,
|
|
"loop": false
|
|
}
|
|
}
|
|
},
|
|
"minecraft:particle_appearance_tinting": {
|
|
"color": [ "0.73 - variable.particle_random_1 * 0.2", "0.69 - variable.particle_random_1 * 0.2", "0.76 - variable.particle_random_1 * 0.2", 1.0 ]
|
|
},
|
|
"minecraft:particle_appearance_lighting": {}
|
|
}
|
|
}
|
|
}
|