mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-11 13:49:29 +00:00
a3b394c507
Initial layout
53 lines
1.6 KiB
JSON
53 lines
1.6 KiB
JSON
{
|
|
"format_version": "1.10.0",
|
|
"particle_effect": {
|
|
"description": {
|
|
"identifier": "minecraft:conduit_particle",
|
|
"basic_render_parameters": {
|
|
"material": "particles_alpha",
|
|
"texture": "textures/particle/particles"
|
|
}
|
|
},
|
|
|
|
"components": {
|
|
"minecraft:emitter_rate_instant": {
|
|
"num_particles": 1
|
|
},
|
|
|
|
"minecraft:emitter_lifetime_once": {},
|
|
"minecraft:emitter_shape_point": {},
|
|
|
|
"minecraft:particle_lifetime_expression": {
|
|
"max_lifetime": "Math.random(0.5, 2.5)"
|
|
},
|
|
|
|
"minecraft:particle_motion_parametric": {
|
|
"relative_position": [
|
|
"variable.pos = 1 - (variable.particle_age / variable.particle_lifetime); return variable.direction_x * variable.pos;",
|
|
"variable.direction_y * variable.pos - Math.pow((1 - variable.pos), 3) * 1.2",
|
|
"variable.direction_z * variable.pos"
|
|
]
|
|
},
|
|
|
|
"minecraft:particle_appearance_billboard": {
|
|
"size": [ "variable.particle_random_1 * 0.05 + 0.02", "variable.particle_random_1 * 0.05 + 0.02" ],
|
|
"facing_camera_mode": "lookat_xyz",
|
|
"uv": {
|
|
"texture_width": 128,
|
|
"texture_height": 128,
|
|
"uv": [ "Math.round(variable.particle_random_2 * 11) * 8", 104 ],
|
|
"uv_size": [ 8, 8 ]
|
|
}
|
|
},
|
|
|
|
"minecraft:particle_appearance_tinting": {
|
|
"color": [
|
|
"variable.particle_random_3 * 0.54 + 0.36",
|
|
"variable.particle_random_3 * 0.54 + 0.36",
|
|
"variable.particle_random_3 * 0.6 + 0.4"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|