Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5231

Create Firework as if Launched From Crossbow

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-1981d55-7f33c6a (MC: 1.14.4)
    • Yes

      The Firework (entity) API should include something along the lines of "setShotAtAngle(boolean)" to set whether the Firework entity is considered to be fired by a Crossbow (ie it flies straight as opposed to accelerating upward over time).
      The name I used there is based on the apparent internal name in Minecraft, per NMS EntityFireworks class line:

      nbttagcompound.setBoolean("ShotAtAngle", (Boolean)this.datawatcher.get(d));

      where "d" corresponds to the boolean datawatcher value that appears to be set "true" in NMS CrossbowItem class.

            Unassigned Unassigned
            mcmonkey Mick Monkey
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: