Mojira Archive
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.

Invalid

lepeltier

2025-01-19, 07:33 PM

2025-01-20, 06:06 PM

2025-01-20, 06:06 PM

0

1

Unconfirmed

(Unassigned)

25w03a

-