====== Search ======
^ Search ^^
|{{ :search.webp?500x265 |A block of diamond ore being highlighted by Search.}}||
^Type|[[Hack]]|
^Category|[[Render]]|
^In-game description|"Helps you to find specific blocks by\\ highlighting them in rainbow color."|
^[[keybinds#default_keybinds|Default keybind]]|none|
^Source code|[[w7src>net/wurstclient/hacks/SearchHack.java]]|
Search is a Minecraft hack that highlights blocks of a specific type with rainbow-colored boxes. These boxes can be seen through walls.
Search is similar to [[X-Ray]], but there are two main differences:
- Search can only reveal one type of block at a time, X-Ray can reveal multiple types of blocks simultaneously.
- Search works by highlighting blocks, X-Ray works by hiding blocks.
The second difference also allows Search to work with mods like OptiFine and Sodium, which alter Minecraft's rendering code in such a way that X-Ray can no longer hide blocks.
===== Settings =====
==== Block ====
^ Block ^^
^Type|[[:BlockSetting|Block]]|
^In-game description|"The type of block to search for."|
^Default block|[[mc>Diamond Ore]] (''minecraft:diamond_ore'')|
The "Block" setting determines the type of block that Search will highlight. It can be set to almost any block that exists in the game, including custom blocks added by mods. It cannot be set to [[mc>air]] blocks, as that would cause a lot of lag and have no practical use.
==== Area ====
^ Area ^^
^Type|Enum|
^In-game description|"The area around the player to search in.\\ Higher values require a faster computer."|
^Default value|11x11 chunks|
^Possible values|3x3 chunks, 5x5 chunks, 7x7 chunks, 9x9 chunks, 11x11 chunks, 13x13 chunks, 15x15 chunks, 17x17 chunks, 19x19 chunks, 21x21 chunks, 23x23 chunks, 25x25 chunks, 27x27 chunks, 29x29 chunks, 31x31 chunks, 33x33 chunks|
The "Area" setting determines the area around the player in which Search will search for blocks. The area is measured in chunks, not blocks. The default value of 11x11 chunks is equivalent to a 176x176 block area. Setting this to a higher value will cause Search to search for blocks in a larger area, but it will also cause a significant decrease in performance and increase in CPU usage.
==== Limit ====
^ Limit ^^
^Type|Slider|
^In-game description|"The maximum number of blocks to display.\\ Higher values require a faster computer."|
^Default value|104 (or 10,000)|
^Minimum|103 (or 1,000)|
^Maximum|106 (or 1,000,000)|
^Increment|[[wp>order of magnitude|1 order of magnitude]]|
The "Limit" setting determines the maximum number of blocks to display. The default value of 104 (or 10,000) means that Search will only highlight up to 10,000 blocks at a time, even if there are more blocks of the selected type nearby. Setting this to a higher value will cause Search to highlight more blocks at once, but it can also negatively affect performance.
Values are displayed as regular numbers, but saved as orders of magnitude (e.g. the default 10,000 blocks value is saved as ''4''). This becomes visible when shift-clicking on the "Limit" slider to manually enter a value: Instead of entering the desired number of blocks directly, the user must enter the desired order of magnitude.
===== Changes =====
^Version^Changes^
|[[update:Wurst 1.7 Beta]]|Added Search.|
|[[update:Wurst 1.7.2 Beta]]|Fixed Search causing a lot of lag.|
|[[update:Wurst 3.0pre1]]|Broke Search.|
|[[update:Wurst 3.0pre3]]|Fixed Search.|
|[[update:Wurst 6.1]]|Updated the overlay in Search.|
|[[update:Wurst 7.0pre1]]|Temporarily removed Search.|
|[[update:Wurst 7.0pre9]]|Re-added Search.|
|[[update:Wurst 7.0pre9]] (Minecraft 1.14+),\\ [[update:Wurst 6.27]] (Minecraft 1.12 & 1.8)|Added a "[[#Block]]" setting to Search that determines the type of block to search for.|
|:::|Removed [[cmd:.search]], as Search's "[[#Block]]" setting makes it obsolete.|
|:::|Search will now target ''minecraft:diamond_ore'' by default.|
|:::|Search will now scan whole [[mc>chunks]] instead of individual [[mc>blocks]].|
|:::|Added an "[[#Area]]" setting to Search that determines the area around the player in which it will search.|
|:::|Added a "[[#Limit]]" setting to Search that determines the maximum number of blocks to display.|
|:::|Greatly improved the performance of Search to allow for the increased range and block limit.|
|[[update:Wurst 7.0pre10]]|Fixed Search searching for [[mc>air]] blocks if you try to search for a block that doesn't exist.|
|:::|Removed the ability for Search to search for air blocks at all, as it creates a lot of lag and there is no practical use for it.|
|[[update:Wurst 7.1.2]] (Minecraft 1.14+),\\ [[update:Wurst 6.32.1]] (Minecraft 1.12 & 1.8)|Fixed Search not resetting when going to a different [[mc>dimension]].|
|[[update:Wurst 7.8]]|Fixed Search not working properly on low render distance. ([[pr>Wurst7:100]] - Thanks to [[gh>ThisTestUser]]!)|
|[[update:Wurst 7.12.1]]|Fixed Search not working below y=0 and above y=255.|
|[[update:Wurst 7.15]]|Fixed Search crashing the game in Minecraft 21w19a and later versions.|
|:::|Fixed BlockSettings (e.g. [[#block|Search Block]]) not rendering correctly in Minecraft 21w19a and later versions.|
|[[update:Wurst 7.26]]|Fixed an OpenGL error appearing in the logs when toggling Search.|
|[[update:Wurst 7.31]]|Slightly improved performance of Search, [[CaveFinder]] and [[BaseFinder]].|
{{tag>client-side mining has_blocksetting}}