What are you searching for?

Suggestion Tweaker

Suggestion Tweaker

Improves the way suggestions are filtered and sorted when writing a command

download 489.1K Downloads · favorite 264 Followers · Updated 6 months ago
Fabric Forge Neoforge Utility 1.18 1.18.1 1.18.2 1.19 1.19.1 +21 more

Versions

inventory_2
[Fabric 1.20.5-1.21.8] v1.20.6-1.5.3

1.20.6-1.5.3+fabric · 6 months ago · 23.18 KB

Release download
Fabric 1.20.5 1.20.6 1.21
inventory_2
[NeoForge 1.20.5/6] v1.20.6-1.5.2

1.20.6-1.5.2+neoforge · 1 year ago · 20.92 KB

Release download
Neoforge 1.20.5 1.20.6 1.21
inventory_2
[Fabric 1.20.5/6] v1.20.6-1.5.2

1.20.6-1.5.2+fabric · 1 year ago · 23.00 KB

Release download
Fabric 1.20.5 1.20.6 1.21
inventory_2
[Forge 1.20.x] v1.20-1.5.2

1.20-1.5.2+forge · 1 year ago · 24.90 KB

Release download
Forge 1.20 1.20.1 1.20.2
inventory_2
[Fabric 1.20.x] v1.20-1.5.2

1.20-1.5.2+fabric · 1 year ago · 24.36 KB

Release download
Fabric 1.20 1.20.1 1.20.2

About

Suggestion Tweaker (Fabric/Forge)

This is a client/server mod that improves the way suggestions are filtered and sorted when writing a command.

Dependencies

This mod requires Cloth Config API. Mod Menu is optional in case you want more configuration like enabling case sensitivity and changing the filtering mode.

Improved filtering

  • Vanilla usually starts comparing the input with the start of the suggestion candidate and discards if it doesn't match. In some cases it checks for a . or _ and then the input. This can often be annoying when trying to search for something because it is too strict. This mod changes that, so now you have a choice between different filtering modes:

    • STRICT - the vanilla way
    • SLIGHTLY LOOSE - shows all suggestions containing the input anywhere inside
    • LOOSE - like the previous but with multiple words, separated by an underscore
    • VERY LOOSE - shows all suggestions containing every letter in the input
  • Suggestions with a specific prefix can be hidden. That applies to both directory and file names. For example, if the specific prefix is an underscore, an identifier named datapack:_function will be hidden and so will be datapack:_directory/function but datapack:directory/function won't be. It works for all identifiers, not just functions. This feature is disabled by default.

Improved sorting

Suggestions are sorted from the strictest to most loose match. Vanilla only sorts alphabetically, lacking multiple filtering modes.

Server and client

Suggestions can be separated into two groups:

  1. ones that are filtered on the server(based on the client's input);
    • e.g. functions, loot tables, item modifiers, predicates, and a few others
  2. ones that are filtered on the client.
    • e.g. scoreboard criteria, colors, blocks, and others

Since the first group's filtering is controlled by the server, a special workaround is established to let the client use the new way of filtering suggestions, independent of the server. Therefore, this mod is also a server mod and provides better suggestions even for clients without the mod.

Examples

Top - vanilla, bottom - Suggestion Tweaker.



Idea

Credit goes to SnaveSutit for the cool idea!

open_in_new View on Modrinth
Categories
Compatibility
Client: Optional Server: Optional
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.