Mod
SearchWorldEnhance
No reviews yet
Add a “Search World” box for MC pre-1.13 || Enhance the searching behaviour
Provides a framework or library for other mods to use.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
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.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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:
=- left contains right, case-insensitive!=- left does not contain right, case-insensitive-=- left contains right, case-sensitive!-=- left does not contain right, case-sensitive/=- left matches right, case-insensitive!/=- left does not match right, case-insensitive/-=- left matches right, case-sensitive!/-=- left does not match right, case-sensitive
Values are strings like this:
foo- resolved asfoo"Foo Bar"- resolved asFoo Bar"One says \"\\s are useful\""- resolved asOne says "\s are useful"
For long keys, available relationship symbols are:
=and==- left equals right<- left is less than right<=- left is less than or equal to right>- left is greater than right>=- left is greater than or equal to right!=- left does not equal right
Values are long integers like this:
01234567-98765432109999
For enum keys, available relationship symbols are:
=- left is right!=- left is not right
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:
true,t,yes,y,1- for truefalse,f,no,n,0- for false
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.
Screenshots
Gallery
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
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers