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/warden_dig.particle.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

52 lines
2.1 KiB
JSON

{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "minecraft:warden_dig",
"basic_render_parameters": {
"material": "particles_opaque",
"texture": "atlas.terrain"
}
},
"components": {
"minecraft:emitter_rate_steady": {
"spawn_rate": "Math.random(550, 650)",
"max_particles": 2000
},
"minecraft:emitter_lifetime_once": {
"active_time": 4.5
},
"minecraft:emitter_shape_point": {
"offset": ["Math.random(-0.7, 0.7)", 0, "Math.random(-0.7, 0.7)"],
"direction": ["Math.random(-0.5,0.5)", 1, "Math.random(-0.5,0.5)"]
},
"minecraft:particle_lifetime_expression": {
"max_lifetime": "Math.random(0.1, 1.0)"
},
"minecraft:particle_initial_speed": "Math.random(3.0, 4.5)",
"minecraft:particle_motion_dynamic": {
"linear_acceleration": [0, -9.8, 0],
"linear_drag_coefficient": 0.5
},
"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.dig_particle_texture_coordinate.u + (variable.dig_particle_texture_size.u/4) * (variable.particle_random_1*3)", "variable.dig_particle_texture_coordinate.v + (variable.dig_particle_texture_size.v/4) * (variable.particle_random_2*3)"],
"uv_size": ["variable.dig_particle_texture_size.u/4", "variable.dig_particle_texture_size.v/4"]
}
},
"minecraft:particle_motion_collision": {
"collision_drag": 8,
"coefficient_of_restitution": 0.2,
"collision_radius": 0.01
},
"minecraft:particle_appearance_lighting": {},
"minecraft:particle_appearance_tinting": {
"color": ["Math.clamp(variable.dig_particle_color.r, 0, 1)", "Math.clamp(variable.dig_particle_color.g, 0, 1)", "Math.clamp(variable.dig_particle_color.b, 0, 1)", "Math.clamp(variable.dig_particle_color.a, 0, 1)"]
}
}
}
}