From 630b6a2fc657be5b0b58c010bc754663198c27f5 Mon Sep 17 00:00:00 2001 From: zimzaza4 <53421735+zimzaza4@users.noreply.github.com> Date: Tue, 15 Mar 2022 16:52:16 +0800 Subject: [PATCH 1/2] change the effect of falling_dust Change the particle effect of falling_dust to redstone_wire_dust --- particles/falling_dust.json | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 particles/falling_dust.json diff --git a/particles/falling_dust.json b/particles/falling_dust.json new file mode 100644 index 0000000..b971349 --- /dev/null +++ b/particles/falling_dust.json @@ -0,0 +1,55 @@ +{ + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "minecraft:falling_dust", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/particles" + } + }, + "components": { + "minecraft:emitter_rate_instant": { + "num_particles": 1 + }, + "minecraft:emitter_lifetime_expression": { + "activation_expression": 1, + "expiration_expression": 1 + }, + "minecraft:emitter_shape_point": { + }, + "minecraft:particle_initial_speed": [ "Math.random(-0.4, 0.4)", "Math.random(-0.1, 0.1)", "Math.random(-0.4, 0.4)" ], + "minecraft:particle_lifetime_expression": { + "max_lifetime": "1.50 / math.random(0.4, 1.0)" + }, + "minecraft:particle_motion_dynamic": { + }, + "minecraft:particle_motion_collision": { + "coefficient_of_restitution": 0.0, + "collision_drag": 0.0, + "collision_radius": 0.01 + }, + "minecraft:particle_appearance_billboard": { + "size": [ "variable.particle_random_3 * 0.075 + 0.075", "variable.particle_random_3 * 0.075 + 0.075" ], + "facing_camera_mode": "lookat_xyz", + "uv": { + "texture_width": 128, + "texture_height": 128, + "flipbook": { + "base_UV": [ 56, 0 ], + "size_UV": [ 8, 8 ], + "step_UV": [ -8, 0 ], + "frames_per_second": 8, + "max_frame": 8, + "stretch_to_lifetime": true, + "loop": false + } + } + }, + "minecraft:particle_appearance_tinting": { + "color": [ "(variable.particle_random_1 * 0.2 + 0.8) * (variable.particle_random_2 * 0.4 + 0.6)", 0.0, 0.0, 0.0 ] + }, + "minecraft:particle_appearance_lighting": {} + } + } +} From 435b3e543ee7ee399fad249096911cc0fea44f9d Mon Sep 17 00:00:00 2001 From: zimzaza4 <53421735+zimzaza4@users.noreply.github.com> Date: Tue, 15 Mar 2022 21:02:38 +0800 Subject: [PATCH 2/2] colour support --- particles/falling_dust.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/particles/falling_dust.json b/particles/falling_dust.json index b971349..46f184a 100644 --- a/particles/falling_dust.json +++ b/particles/falling_dust.json @@ -47,7 +47,7 @@ } }, "minecraft:particle_appearance_tinting": { - "color": [ "(variable.particle_random_1 * 0.2 + 0.8) * (variable.particle_random_2 * 0.4 + 0.6)", 0.0, 0.0, 0.0 ] + "color": [ "variable.color.r", "variable.color.g", "variable.color.b", 1 ] }, "minecraft:particle_appearance_lighting": {} }