Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-279641

select minecraft:component - flight_duration for firework star

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 25w03a
    • None
    • Unconfirmed
    • (Unassigned)

      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.

        1. ressources_pack.png
          ressources_pack.png
          20 kB
        2. no_ressources_pack.png
          no_ressources_pack.png
          22 kB
        3. firework_flight_duration_bug.zip
          76 kB
        4. data_star.png
          data_star.png
          19 kB
        5. data_no_star.png
          data_no_star.png
          13 kB

            Unassigned Unassigned
            lipki lepeltier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: