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

86 lines
2.3 KiB
JSON

{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "minecraft:stalactite_water_drip_particle",
"basic_render_parameters": {
"material": "particles_alpha",
"texture": "textures/particle/particles"
}
},
"events": {
"splash": {
"particle_effect": {
"effect": "minecraft:rain_splash_particle",
"type": "particle"
}
},
"hit_ground": {
"sound_effect": {
"event_name": "drip.water.pointed_dripstone"
}
}
},
"components": {
"minecraft:emitter_rate_manual": {
"max_particles": 50
},
"minecraft:emitter_lifetime_expression": {
"activation_expression": 1,
"expiration_expression": 0
},
"minecraft:emitter_shape_point": {
"offset": [ 0.0, 0.0, 0.0 ]
},
"minecraft:particle_initialization": {
"per_update_expression": "variable.stuck_time = 2.0;",
"per_render_expression": "variable.stuck_time = 2.0;"
},
"minecraft:particle_initial_speed": 0.0,
"minecraft:particle_lifetime_expression": {
"max_lifetime": 5.0
},
"minecraft:particle_motion_dynamic": {
"linear_acceleration": [ 0.0, -19.6, 0 ],
"linear_drag_coefficient": "variable.stuck_time = 2.0; return variable.particle_age < variable.stuck_time ? 500 : 0.01;"
},
"minecraft:particle_motion_collision": {
"expire_on_contact": true,
"collision_radius": 0.01,
"events": [
{
"event": "hit_ground",
"min_speed": 0.5
},
{
"event": "splash",
"min_speed": 0.5
},
{
"event": "splash",
"min_speed": 0.5
},
{
"event": "splash",
"min_speed": 0.5
}
]
},
"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.2, 0.3, 1.0 ]
},
"minecraft:particle_appearance_lighting": {}
}
}
}