mojira.dev
MCPE-46288

Add-on Bug, "facing_camera_mode" for minecraft:particle_appearance_billboard being ignored and causing particle to always be facing camera

Despite the given example particle files and wiki documentation, it appears "facing_camera_mode" is being fully ignored, if you set it to "direction", it does not behave as documented, you cannot set a particle in a specific direction, its always camera facing, how "lookat_xyz", the default, functions.

Also note the wiki says it should be called "face_camera_mode", I made sure to try both but neither worked.

 

Expected behavior:

Setting "facing_camera_mode" to "direction" makes the particle point in a specific direction provided by

"direction": [1, 0, 0]

Actual behavior:

Particle always faces the camera, as if set to "lookat_xyz"

 

Examples:

Here are 2 example json files that demonstrate the issue. The first one is an adapted example provided by a developer in the discord, but his example was for 1.8.0-beta1, no longer working as intended in 1.10.0

 

Example 1:

{
  "format_version": "1.10.0",
  "particle_effect": {
    "description": {
      "identifier": "test:kira",
      "basic_render_parameters": {
        "material": "particles_alpha",
        "texture": "textures/particle/particles"
      }
    },

    "components": {
      "minecraft:emitter_rate_steady": {
        "spawn_rate": 10,
        "max_particles": 1
      },

      "minecraft:emitter_shape_point": {
        "offset": [0, 0, 0],
        "direction": [1, 0, 0]
      },

      "minecraft:emitter_lifetime_looping": {
        "active_time": 1.0
      },

      "minecraft:particle_lifetime_expression": {
        "max_lifetime": "Math.random(100.0, 100.0)"
      },

      "minecraft:particle_appearance_billboard": {
        "size": [ 3.6, 3.6 ],
        "facing_camera_mode": "direction"
      },

      "minecraft:particle_appearance_tinting": {
      }
    }
  }
}

Example 2:

{
    "format_version": "1.10.0",
    "particle_effect": {
        "description": {
            "identifier": "mzo:lightning_floor",
            "basic_render_parameters": {
                "material": "particles_alpha",
                "texture": "textures/entity/lightning2x8"
            }
        },
        "components": {
            "minecraft:emitter_rate_steady": {
                "spawn_rate": "math.random(300, 600)",
                "max_particles": 100
            },
            "minecraft:emitter_lifetime_expression": {
                "activation_expression": 1
            },
            "minecraft:emitter_shape_custom": {
                "offset": [ "Math.sin(variable.particle_random_1 * 360) * variable.particle_random_2 * 3"
                , 0.1
                , "Math.cos(variable.particle_random_1 * 360) * variable.particle_random_2 * 3" ],
                "direction": [ 1, 0, 0 ]
            },
            "minecraft:particle_initial_speed": 0.0,
            "minecraft:particle_initialization": {
                "per_render_expression": "variable.size = (variable.particle_random_1*0.05 + 0.05) * variable.entity_scale * 5;"
            },
            "minecraft:particle_appearance_billboard": {
                "size": ["variable.size", "variable.size"],
                "facing_camera_mode": "direction",
                "uv": {
                    "texture_width": 128,
                    "texture_height": 16,
                    "flipbook": {
                        "base_UV": [ 0, 0] ,
                        "size_UV": [ 16, 16 ],
                        "step_UV": [ 16, 0 ],
                        "max_frame": 8,
                        "stretch_to_lifetime": true
                    }
                }
            },
            "minecraft:particle_lifetime_expression": {
                "max_lifetime": "0.4"
            }
        }
    }
}

Comments 3

The documentation says that the options are

direction_x
direction_y
direction_z

Do these work for you?

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Still seems to be an issue in 1.20.30.1 and higher

Kevin Gagnon

(Unassigned)

Unconfirmed

Windows

Windows 10 1809

1.11.1, 1.11.2

Retrieved