
Suggestion Provider Fix
Small fix to the commands suggestion provider so modded resources are auto-filled.
About this Mod
A minor change to Minecraft's suggestion provider so that it auto-completes resource locations for all mod namespaces.
Whilst this is a very tiny change, if you use commands a lot in modded it is likely to save you a lot of time.
Note that this mod does not need to be installed on a dedicated server to work, though doing so is advisable so that the client and server mod list match.
Usage example
Let's say you want to use /give to spawn yourself an oak_seed from Dynamic Trees. With vanilla, you may begin to type /give @p oak_seed. However, no auto-complete suggestions come up, as it expects you to type the fully qualified dynamictrees:oak_seed name:

When Suggestion Provider Fix is installed, beginning to type oak_seed will suggest any items with that name, regardless of which mod adds it. So, the oak seed from Dynamic Trees will be suggested:

This also works with other registries that use resource locations, including blocks, biomes, and even custom registries from other mods.
Licensing
Permission is hereby granted to use this mod in ANY mod pack or server. Attribution would be nice but isn't required.
Technical description
This mod uses a Mixin to overwrite SharedSuggestionProvider#filterResources(Iterable, String, Function, Consumer), doing exactly the same thing but negating a check on whether or not the namespace of the ResourceLocation is equal to minecraft (since this is the default when a path is typed without a namespace). This means that suggestion providers for ResourceLocation objects will suggest all paths matching the input string if no namespace was entered, instead of only those from Minecraft itself.
Available Versions
How to Install Suggestion Provider Fix on Your Client
Install the Mod Loader Locally
Install forge for your local Minecraft version.
Download the Matching File
Choose the Suggestion Provider Fix file for forge and Minecraft 1.21.
Install Mod
Place the .jar file in your local .minecraft/mods folder and restart Minecraft. No server-side installation is required.
Compatibility
Mod Loaders
Minecraft Versions
1.21, 1.20.1, 1.19.4 (+8 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Does Suggestion Provider Fix need to be installed on the Minecraft server?
No. Modrinth marks Suggestion Provider Fix as unsupported on the server side. Install it only in your local Minecraft mods folder. Your server can remain unchanged unless the mod page lists an additional dependency.
Which version and loader does Suggestion Provider Fix require?
Use a file for forge, neoforge and your exact Minecraft version. Supported versions include 1.21, 1.20.1, 1.19.4. Files for different loaders are not interchangeable.
Suggestion Provider Fix is not working – what should I check?
First check the Minecraft version, loader version and required dependencies. Put the .jar file in your local .minecraft/mods folder and remove older duplicates. Because this mod is client-side, adding server RAM will not fix it.
Similar Mods
Minecraft Server for Your Group
Suggestion Provider Fix stays on your client. Host a compatible world for your group.