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/smash_ground_particle_center.json
Mike Ammerlaan c989e80c35 v1.21.0.3
2024-06-13 09:45:16 -07:00

59 lines
2.3 KiB
JSON

{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "minecraft:smash_ground_particle_center",
"basic_render_parameters": {
"material": "particles_alpha",
"texture": "atlas.terrain"
}
},
"curves": {
"variable.smash_particle": {
"type": "linear",
"input": "v.particle_age",
"horizontal_range": "v.particle_lifetime",
"nodes": [0, 2, -1, -1]
}
},
"components": {
"minecraft:emitter_rate_instant": {
"num_particles": 250
},
"minecraft:emitter_lifetime_once": {
"active_time": 1.0
},
"minecraft:emitter_shape_point": {
"direction": [ "math.random( -0.2, 0.2 )", 1.0, "math.random( -0.2, 0.2 )" ],
"offset": [ 0, 0.1, 0 ]
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": "math.random( 2.0, 2.5 )"
},
"minecraft:particle_initial_speed": "math.random(6, 16)",
"minecraft:particle_motion_dynamic": {
"linear_acceleration": ["math.random(-2, 2)", -9.81, "math.random(-2, 2)"]
},
"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.surface_particle_texture_coordinate.u + (variable.surface_particle_texture_size.u/4) * (variable.particle_random_1*3)", "variable.surface_particle_texture_coordinate.v + (variable.surface_particle_texture_size.v/4) * (variable.particle_random_2*3)" ],
"uv_size": [ "variable.surface_particle_texture_size.u/4", "variable.surface_particle_texture_size.v/4" ]
}
},
"minecraft:particle_motion_collision": {
"coefficient_of_restitution": 0.1,
"collision_drag": 5,
"collision_radius": 0.1
},
"minecraft:particle_appearance_lighting": {},
"minecraft:particle_appearance_tinting": {
"color": ["variable.surface_particle_tint.r", "variable.surface_particle_tint.g", "variable.surface_particle_tint.b", "variable.surface_particle_tint.a"]
}
}
}
}