Skip to content

Improve translation of commands - #6833

Open
eclipseisoffline wants to merge 9 commits into
masterfrom
feature/command-improvements
Open

eclipseisoffline wants to merge 9 commits into
masterfrom
feature/command-improvements

Conversation

@eclipseisoffline

@eclipseisoffline eclipseisoffline commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

This PR aims to improve the translation of server commands drastically.

For one, the PR changes the JavaCommandsTranslator to try to fetch the RESOURCE and RESOURCE_OR_TAG argument types from our registry cache system. This allows these argument types to work with more registries (specifically, all registries Geyser tracks, listed in JavaRegistries. To work with all vanilla registries, Geyser would have to track them all).
This also allows the removal of a lot of boilerplate code regarding enchantment, entity type, item, and biome name suggestions. This includes the WorldManager#getBiomeIdentifiers(boolean) method, which was only implemented by the Spigot-native world manager. This also allows the removal of the getBiomeSuggestions(boolean) method from our world adapters (see GeyserMC/geyser-adapters#11).

On top of this, the PR also adds support for the following argument types:

  • SCORE_HOLDER,
  • COMPONENT,
  • PARTICLE,
  • ITEM_SLOT,
  • ITEM_SLOTS,
  • SLOT_SOURCE,
  • ENTITY_ANCHOR,
  • INT_RANGE,
  • FLOAT_RANGE,
  • GAMEMODE,
  • RESOURCE_OR_TAG_KEY,
  • RESOURCE_KEY,
  • TEMPLATE_MIRROR,
  • TEMPLATE_ROTATION,
  • HEIGHTMAP,
  • DIALOG, and,
  • SWING_ANIMATION.

This allows these argument types to have better suggestions shown to players.

TO-DO for further improvements:

Supersedes #6826.

…_SOURCE, ENTITY_ANCHOR, INT_RANGE/FLOAT_RANGE, GAMEMODE, RESOURCE_OR_TAG_KEY, RESOURCE_KEY, TEMPLATE_MIRROR/TEMPLATE_ROTATION, HEIGHTMAP, DIALOG, SWING_ANIMATION argument types
darkcupid412 and others added 5 commits October 28, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Feature When a PR implements a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants