[SPIGOT-4802] Crossbow methods Created: 28/Apr/19 Updated: 01/May/19 Resolved: 01/May/19 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Shane Bee | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 1.14, Suggestion | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Version: | 1.14+ | ||||||||
| Guidelines Read: | Yes | ||||||||
| Description |
|
I would like to suggest the addition of some methods for the cross bow. And maybe some methods (maybe item meta methods) for checking if the crossbow is currently loaded, get the current projectile that is loaded (included a picture for this one), and set a projectile to be loaded into the crossbow
Why Im suggesting this: Im working on a plugin where the player needs to have arrows in their offhand to fire a bow. This works fine for a bow, but the issue is with the cross bow, you need to hold down right click to load the bow. Then let off the clicking. Then right click again to fire. The issue here is the arrow has loaded into the bow, and I no longer have my (1) arrow in my off hand so its cancelling it. Im using both the EntityShootBowEvent as well as PlayerInteractEvent to detect these events. The issue is now, Im using the interact event to load the bow, but when I try to shoot it, I again have no arrow in my offhand, but I have no way to check whether or not the crossbow already has an arrow loaded.
Thank you for reading! |
| Comments |
| Comment by Shane Bee [ 01/May/19 ] |
|
Im slowly working on learning. In the last few weeks Ive really been trying to watch what you guys (mostly you) are doing on here, so I can see how its all done.
Also thank you for implementing that. I really appreciate it! |
| Comment by md_5 [ 01/May/19 ] |
|
>1) I don't know how to implement it, or I totally would, Im not that knowledgable in Java and the craftbukkit/nms code scares me.
There's always time to learn.
>3) I see things like village types was added when requested by another user. So again, I just simply wanted to check in. >There are a lot of bugs and easier to implement features that have priority. |
| Comment by Shane Bee [ 01/May/19 ] |
|
1) I don't know how to implement it, or I totally would, Im not that knowledgable in Java and the craftbukkit/nms code scares me. 2) I was just checking in since there was no response. 3) I see things like village types was added when requested by another user. So again, I just simply wanted to check in. I did see Coleman's PR regarding the event side of the crossbows. I PM'd him on SpigotMC asking if he would be willing to add some item metas to that. Hopefully he is able to make it work |
| Comment by md_5 [ 01/May/19 ] |
|
If you require the feature then you should consider implementing it yourself. There are a lot of bugs and easier to implement features that have priority. |
| Comment by Shane Bee [ 30/Apr/19 ] |
|
I just wanted to follow up on this. Wondering if this is something that would be possible? I haven't seen any comments/activity so just wanted to check in. |