Suggestion Provider Fix

Quick rating

Community listing page, reviews here may not be monitored by the author.

Suggestion Provider Fix

No reviews yet

Small fix to the commands suggestion provider so modded resources are auto-filled properly.

No Theme
No Genre
Client Utility
Mod Loaders
Forge
NeoForge
Minecraft
1.21

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Client Only

Runs entirely on the client. Works on vanilla servers.

About

Project Details

Type
Mod
License
MIT License
Latest Version
SuggestionProviderFix-1.21-1.0.0.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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

For 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:

Without

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:


with.gif?raw=true

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 'ISuggestionProvider#filterResources(Iterable, String, Function, Consumer)', doing exactly the same thing but negating a check on whether or not the namespace of the 'ResourceLocation' is '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 from Minecraft itself.

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.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
1
In stacks

By the numbers

Statistics

6.1m
Total Downloads
CurseForge
5.7m
Modrinth
~380,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works