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

61 lines
1.8 KiB
JSON

{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "minecraft:nectar_drip_particle",
"basic_render_parameters": {
"material": "particles_alpha",
"texture": "textures/particle/particles"
}
},
"components": {
"minecraft:emitter_rate_steady": {
"spawn_rate": "Math.random(1, 4)",
"max_particles": 20
},
"minecraft:emitter_lifetime_expression": {
"activation_expression": 1,
"expiration_expression": 0
},
"minecraft:emitter_shape_point": {
"offset": [ "Math.random(-0.3, 0.3)", 0.1, "Math.random(-0.3, 0.3)" ]
},
"minecraft:particle_initialization": {
"per_update_expression": "variable.stuck_time = 0.1;",
"per_render_expression": "variable.stuck_time = 0.1;"
},
"minecraft:particle_initial_speed": 0.0,
"minecraft:particle_lifetime_expression": {
"max_lifetime": 5.0
},
"minecraft:particle_motion_dynamic": {
"linear_acceleration": [ 0.0, -3.5, 0 ],
"linear_drag_coefficient": "variable.stuck_time = 0.1; return variable.particle_age < variable.stuck_time ? 277 : 0.01;"
},
"minecraft:particle_motion_collision": {
"expire_on_contact": true,
"collision_radius": 0.01
},
"minecraft:particle_appearance_billboard": {
"size": [ 0.15, 0.15 ],
"facing_camera_mode": "lookat_xyz",
"uv": {
"texture_width": 128,
"texture_height": 128,
"uv": [ 8, 56 ],
"uv_size": [ 8, 8 ]
}
},
"minecraft:particle_appearance_tinting": {
"color": [
0.92,
0.782,
0.72,
1.0
]
},
"minecraft:particle_appearance_lighting": {}
}
}
}