
Suggestion Provider Fix
This mod introduces a small but highly useful change to Minecraft's auto-completion system, allowing it to automatically suggest resources from all mods, not just from the vanilla game.
While the change may seem minor, for players who frequently use commands in modded versions of the game, it will save a lot of time and eliminate the need to memorize exact namespace names.
How it works in practice
Imagine you want to get an oak seed from the Dynamic Trees mod using the /give
command. In the standard version of Minecraft, when you start typing /give @p oak_seed
, you won't see any suggestions because the system expects the full name dynamictrees:oak_seed
:
With Suggestion Provider Fix installed, when typing oak_seed
, the system will automatically suggest all items with that name from any mods, including the oak seed from Dynamic Trees:
Supported resources
The feature works not only with items but also with all other resource types that use locations: blocks, biomes, as well as custom registries from other mods.
Technical features
The mod does not require installation on a dedicated server to work, but it is recommended to have the same mod list on the client and server to ensure compatibility.
Technical implementation
The mod uses Mixin to modify the method SharedSuggestionProvider#filterResources(Iterable, String, Function, Consumer)
, performing the same actions but removing the check for matching the minecraft
namespace. This allows the suggestion system for ResourceLocation
objects to show all paths matching the entered string if the namespace is not specified, instead of limiting to only resources from Minecraft.