Dialog API#12634
Conversation
|
I suggest adding that as an adventure like module, so that it can be used in Velocity as well, as Dialogs are basically protocol only stuff. |
I think that's a good idea aswell, however previous maintainers of PaperMC have expressed wishes to develop it in Paper first. While not official, I do believe it's a good idea to start on Paper. Additionally, we can always migrate these APIs to Adventure later, and I'm trying to keep the style similar so migration is easy and fits in with the pre-existing Adventure APIs. Also, your comment made me realize Kezz is working on a Dialog API for Adventure. |
| + return event; | ||
| + } | ||
| + // Paper end - Add fail move event | ||
| + |
There was a problem hiding this comment.
Instead implement MinecraftServer#handleCustomClickAction(ResourceLocation id, Optional<Tag> payload)
There was a problem hiding this comment.
I tried, and it did work, however I could not get the player that clicked in the event. Do you know of a way to do that?
|
I finished all of the main formats for the Dialog, so I changed the checklist. Now an overview of all of the Dialog formats are checked off, and the remainder tasks are ones I planned to do before. Edit: As a side note, I apologize if this PR goes slower over this upcoming weekend, I have a lot of things to do because of graduation. |
|
Hey, thank you for the time and effort you put into this PR. After an internal conversation we’ve decided we will be closing this. The dialogue system that we are going to be introducing has to be strictly tied to our registry API lifecycle so that dialogues can be fully utilized on Paper. This includes bootstrap registration to support quick-action support amongst other things. This in itself has a number changes that will be required, as our API does not nicely support mutating ItemStacks during bootstrapping, so some decisions are still being figured out as to the best path to go for that is. Because of all of this, continuing with this exact implementation would likely duplicate effort and fall out of sync quickly, as additionally we are having to plan a bit with adventure in order to make sure that the new click types are properly implemented. Your contribution is still much appreciated, and we’d love to see you still involved in Paper. If you’d like to help there, please keep in touch in dev channels on discord as update processes are more involved with the Paper Team. And going forward, especially for larger projects like these we would love to hear about first. |
No worries, I was somewhat expecting this anyways. I figured I'd try anyways, it was worth a shot. Had fun making it!
I am interested indeed, I was just wondering what channels? I don't have the Contributor role, so I can't see any special channels, if there are any you were mentioning. I see #paper-contrib, but I can't speak in it. |
|
Mostly in #paper-dev, if you are wanting to talk about stuff there are plenty of people who are interested in contributing to Paper who also talk in there. Feel free to ping me if you are thinking about adding anything in particular and we can chat about it! :) |
Thank you! :) I'm gonna be busy over these next few days, so I might not be able to do much for a little while, but after I'll see what I can do! |
|
All good, thanks again for your understanding! |


o/
Purpose
I'm creating this (draft) PR to attempt to create a Dialog API for PaperMC.
Currently, the scope of this PR is to create an API that allows you to:
I decided to give trying it a start since I have a lot of time on my hands (summer vacation!). I am aware that 1.21.6 is in pre-release, so the Dialog API is due for frequent change. Don't worry, I should be able to keep up with this. I'll turn this into an official PR when I finish covering the Dialog's API, and 1.21.6 comes into official release.
Progress Checklist
Holder<Dialog>MinecraftServer#handleCustomClickActionUnresolved Problems
These are questions I'm currently dealing with when working on this PR. If you're seeing this, feel free to chime in your opinion on any of these. I can solve these myself given some time, but extra feedback on any of these would be appreciated.
Note
Since this is my first Paper PR, I'm probably going to make mistakes along the way. If there's anything you don't like about my PR you want me to fix, feel free to comment and I'll get it done. :)