HomeJavaModsSearchWorldEnhance
SearchWorldEnhance

Mod Synopsis

This is a lightweight mod run on client-side, which brings a “Search World” box to world selection screens(prior MC 1.13) and enhance the searching behaviour by using key-value pair arguments.

How to Use This Mod

This mod adds a “Search World” box to the world select screen(prior MC 1.13), and the searching behaviour is now like this:
worlddirname-=foo - Search for worlds whose directory names contain foo, case-sensitive
worldname/="^New World$" - Search for worlds whose names exactly are New World, case-insensitive
gamemode=S,commands=true - Search for worlds whose default game modes are Survival and commands are enabled

Format of Arguments

Each two key-value pairs are separated by ,(which means &&(and), and trailing , is allowed once). In contrast, a key-value pair is like this: <key_name><relationship_symbol><value>.
For regex keys, available relationship symbols are:

Values are strings like this:

For long keys, available relationship symbols are:

Values are long integers like this:

For enum keys, available relationship symbols are:

Values are all enums defined by the enum class and null.

For boolean keys, there is only one available relationship symbol =(means left is right).

Values are like this:

If the format of arguments is valid, expected search result will be shown. Note that results of original search behaviour will be shown together, e.g. if there is a world named gamemode=C whose default gamemode is Survival, when you type gamemode=C in the box, this world will still be shown as a part of the result. If you want to avoid this, you can type worldname!="gamemode=C",gamemode=C in the box.

All Key-value Pair Parameters Added by This Mod

worldname(Regex) - Match world names
worlddirname(Regex) - Match world directory names
lastplayed(Long) - Match last played time
gamemode(Enum made up by S, C, A, SP) - Match default game modes
commands(Boolean) - Match commands enabling statuses
hardcore(Boolean) - Match whether the worlds are hardcore

I Want to Add My Key-value Pair Parameters!

There is a class rege.rege.minecraftmod.searchworldenhance.util.SearchKeyRegistry in this mod, you should register yours using this class's static methods. All valid keys are non-empty strings without -, , =, !, >, <, ,, /, ", \. An example is in the static block of rege.rege.minecraftmod.searchworldenhance.SearchWorldEnhanceMain's source code.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more