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

54 lines
1.8 KiB
JSON

{
"format_version": "1.10.0",
"particle_effect": {
"description": {
"identifier": "minecraft:dragon_breath_fire",
"basic_render_parameters": {
"material": "particles_blend",
"texture": "textures/particle/particles"
}
},
"components": {
"minecraft:emitter_rate_instant": {
"num_particles": 1
},
"minecraft:emitter_lifetime_once": {},
"minecraft:emitter_shape_point": {
"direction": [ "variable.actor.direction_x", "variable.actor.direction_y", "variable.actor.direction_z" ]
},
"minecraft:particle_initial_speed": "variable.actor.speed * 20",
"minecraft:particle_lifetime_expression": {
"max_lifetime": "Math.random(2.0, 3.0)"
},
"minecraft:particle_motion_dynamic": {
"linear_acceleration": [ "variable.particle_age < 0.5 ? 0.0 : Math.random(-0.05, 0.05)", "variable.particle_age < 0.5 ? -9.8 : 1.0", "variable.particle_age < 0.5 ? 0.0 : Math.random(-0.05, 0.05)" ]
},
"minecraft:particle_motion_collision": {
"collision_drag": 7.5,
"coefficient_of_restitution": 0.0,
"collision_radius": 0.5
},
"minecraft:particle_appearance_billboard": {
"size": [ 0.125, 0.125 ],
"facing_camera_mode": "rotate_xyz",
"uv": {
"texture_width": 128,
"texture_height": 128,
"flipbook": {
"base_UV": [ 40, 0 ],
"size_UV": [ 8, 8 ],
"step_UV": [ 8, 0 ],
"frames_per_second": 3,
"max_frame": 3,
"stretch_to_lifetime": true,
"loop": false
}
}
},
"minecraft:particle_appearance_tinting": {
"color": [ "Math.random(0.7176, 0.8745)", 0.0, "Math.random(0.8235, 0.9765)", 1.0 ]
},
"minecraft:particle_appearance_lighting": {}
}
}
}