Skip to content

feat(command): add suggestion providers and their support in argument nodes#2004

Open
SomeYellowGuy wants to merge 4 commits intoPumpkin-MC:masterfrom
SomeYellowGuy:add-suggestion-providers
Open

feat(command): add suggestion providers and their support in argument nodes#2004
SomeYellowGuy wants to merge 4 commits intoPumpkin-MC:masterfrom
SomeYellowGuy:add-suggestion-providers

Conversation

@SomeYellowGuy
Copy link
Copy Markdown
Contributor

@SomeYellowGuy SomeYellowGuy commented Apr 10, 2026

Description

This PR adds SuggestionProviders for specific arguments that may require them.

  • The suggests and suggests_arc methods can be used on an argument node to add a custom SuggestionProvider for it. This is used quite a lot: some commands that use this include /op, /execute, /bossbar, /scoreboard and /tick.
  • Added support for it in the command dispatcher.

Testing

  • Tested (locally) adding custom suggestions 1 to 5 for the integer argument of /setidletimeout, and it works for the server and the client!

@SomeYellowGuy SomeYellowGuy marked this pull request as draft April 10, 2026 15:37
@SomeYellowGuy SomeYellowGuy marked this pull request as ready for review April 10, 2026 16:01
@SomeYellowGuy SomeYellowGuy changed the title feat(command): add providers and their support in argument nodes feat(command): add suggestion providers and their support in argument nodes Apr 10, 2026
@RoosterBooster007 RoosterBooster007 added enhancement New feature or request command Anything command or chat-related labels Apr 11, 2026
@SomeYellowGuy SomeYellowGuy force-pushed the add-suggestion-providers branch from fd610a7 to 66caabd Compare April 11, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command Anything command or chat-related enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants