[SPIGOT-3842] Method in Player to launch that player with a firework Created: 04/Mar/18  Updated: 12/Sep/22  Resolved: 12/Sep/22

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Anrza Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None


 Description   

A method Player#launchWithFirework(Firework firework). It would launch the player as if he had right-clicked with that firework in hand while gliding.



 Comments   
Comment by Senmori [ 16/Mar/18 ]

Assuming we could get this work (and there's no guarantee there's a way to implement this in Bukkit), how would it work if the player is not gliding? Or if the player does not have elytra equipped? Which hand should the right click be with? Should you be able to specify the speed of the launch (i.e. more than 1.65)?

Should those questions throw errors if not successful, or should it return a boolean if the launch was successful? Maybe return a custom POJO that holds the return data?

There's several variables here that I'd like to be worked out before this is considered.

Comment by Anrza [ 16/Mar/18 ]

No, fireworks move the velocity closer to ~1.65 over their duratiom as well as creating a particle trail and finishing with an explosion. Regardless of whether you like the suggestion or not, sating that all it does is increase their velocity is not true.

Comment by Parker Hawke [ 15/Mar/18 ]

All fireworks do is increase the velocity of the player while they are gliding. Not sure this method would be of great use, nor is it all that necessary in the current API as it merely wraps an existing API

Generated at Sun Mar 30 17:57:30 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.