{
    "format_version": "1.10.0",
    "particle_effect": {
        "description": {
            "identifier": "simdistance_prepare",
            "basic_render_parameters": {
                "material": "particles_blend",
                "texture": "particles/armor_stand_pos"
            }
        },

        "components": {

            "minecraft:emitter_rate_instant": {
                "num_particles": 1
            },
            "minecraft:emitter_lifetime_once": {},
            "minecraft:particle_motion_parametric": {
                "relative_position": [
                    "math.floor(query.position(0)/16)*16 + 0.5",
                    "math.floor(query.position(1)/1)*1 + 0.01",
                    "math.floor(query.position(2)/16)*16 + 0.5"
                ]
            },

            "minecraft:particle_lifetime_expression": {
                "expiration_expression": "!query.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:arrow')"
            },
            "minecraft:particle_appearance_billboard": {
                "size": [
                    "math.clamp(8-v.particle_age*4, 0.5, 8)",
                    "math.clamp(8-v.particle_age*4, 0.5, 8)"
                ],
                "facing_camera_mode": "direction_y",
                "direction": {
                    "mode": "custom",
                    "custom_direction": [0, 0, -1]
                },
                "uv": {
                    "texture_width": 16,
                    "texture_height": 16,
                    "uv": [0, 0],
                    "uv_size": [16, 16]
                }
            },
            "minecraft:particle_appearance_tinting": {
                "color": [
                    1,
                    1,
                    1,
                    1
                ]
            }
        }
    }
}
