Firework Rocket/ED

From Minecraft Wiki
Jump to: navigation, search
  • Entity data
    • Tags common to all entities see Template:Nbt inherit/entity/template
    • Tags common to all projectiles see Template:Nbt inherit/projectile/template
    •  Life: The number of ticks this fireworks rocket has been flying for.
    •  LifeTime: The number of ticks before this fireworks rocket explodes. This value is randomized when the firework is launched: ((Flight + 1) * 10 + random(0 to 5) + random(0 to 6))
    •  ShotAtAngle: 1 if the firework was shot from a crossbow, 0 otherwise.
    •  FireworksItem: The crafted firework rocket.
      •  id: The id of the item, should be minecraft:firework_rocket.
      •  Count: The item count, typically 1.
      •  tag: The tag tag.
        •  Fireworks: The firework rocket's item data.
          •  Flight: Indicates the flight duration of the firework (equals the amount of gunpowder used in crafting the rocket). While this value can be anything from -128 to 127, values of -2 and under almost never detonate at all.
          •  Explosions: List of compounds representing each explosion this firework causes.
            •  Explosion: One of the explosions.
              •  Flicker: 1 or 0 (true/false) - true if this explosion has the Twinkle effect (glowstone dust). May be absent.
              •  Trail: 1 or 0 (true/false) - true if this explosion has the Trail effect (diamond). May be absent.
              •  Type: The shape of this firework's explosion. 0 = Small Ball, 1 = Large Ball, 2 = Star-shaped, 3 = Creeper-shaped, 4 = Burst. Other values are named "Unknown Shape" and render as Small Ball.
              •  Colors: Array of integer values corresponding to the primary colors of this firework's explosion. If custom color codes are used, the game renders it as "Custom" in the tooltip, but the proper color is used in the explosion. Custom colors are integers in the same format as the color tag from Display Properties.
              •  FadeColors: Array of integer values corresponding to the fading colors of this firework's explosion. Same handling of custom colors as Colors. May be absent.