mojira.dev
MC-279641

select minecraft:component - flight_duration for firework star

The selection property "minecraft:component" for the component "minecraft:fireworks".

The flight_duration property is not correctly interpreted if the firework contains a firework star.

{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:component",
    "component": "minecraft:fireworks",
    "cases": [
      {
        "when": { "flight_duration": 1},
        "model": {
          "type": "model",
          "model": "item/amethyst_shard"
        }
      }
    ],
    "fallback": {
      "type": "model",
      "model": "item/firework_rocket"
    }
  }
}

With this file the fireworks with or without firework star should appear as an amethyst shard.

This is not the case.

Attachments

Comments 2

The case has to match the value of the component exactly. There's no partial matches for any select property.

Change request, not a bug. See MC-279557.

And since the component contains the explosion information, it doesn't match perfectly.
And since there are too many colors, it will never match.

OK thanks.

lipki

(Unassigned)

Unconfirmed

(Unassigned)

25w03a

Retrieved