What are you searching for?

Suggestion Provider Fix

Suggestion Provider Fix

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

download 248.2K Downloads · favorite 23 Followers · Updated 1 year ago
Forge Management Neoforge Utility 1.16.5 1.17.1 1.18.1 1.18.2 1.19 +6 more

Versions

inventory_2
1.21-1.0.0

1.21-1.0.0 · 1 year ago · 4.64 KB

Release download
Neoforge 1.21
inventory_2
1.16.5-1.0.0

1.16.5-1.0.0 · 2 years ago · 4.12 KB

Release download
Forge 1.16.5
inventory_2
1.17.1-1.0.0

1.17.1-1.0.0 · 2 years ago · 4.90 KB

Release download
Forge 1.17.1
inventory_2
1.18.1-1.0.0

1.18.1-1.0.0 · 2 years ago · 4.89 KB

Release download
Forge 1.18.1 1.18.2
inventory_2
1.19-1.0.0

1.19-1.0.0 · 2 years ago · 4.95 KB

Release download
Forge 1.19 1.19.1 1.19.2

About

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.

open_in_new View on Modrinth
Compatibility
Client: Required Server: Unsupported
gavel MIT

Conversation

What are your thoughts?

Related projects

Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.7M
favorite 22,127
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 66.1M
favorite 7,607
Adventure Transportation Utility
Xaero's Minimap
Xaero's Minimap

by thexaero

Displays a map of the nearby world terrain, players, mobs, entities in the corner of your screen. Lets you create waypoints which help you find the locations you've marked.

download 60.9M
favorite 13,668
lock Cookie consent

SkinMC uses cookies to provide functionality and features.