====== .xray ======
[{{ xray.webp?400|Viewing the help entry for .xray while X-Ray is enabled.}}]
^ .xray ^^
^Type|[[:Hack]]|
^Category|none|
^In-game description|"Shortcut for '.blocklist X-Ray Ores'.\\ \\ Syntax: .xray add \\ .xray remove \\ .xray list []\\ .xray reset\\ Example: .xray add gravel" [//[[:Wurst 7]] only//]|
|:::|"Manages X-Ray's block list." [//[[:Wurst 6]] only//]|
^[[:keybinds#default_keybinds|Default keybind]]|none|
^Source code|[[w7src>net/wurstclient/commands/XrayCmd.java]]|
.xray is a chat command that can be used to enable, disable, or configure the [[:X-Ray]] hack.
As of [[update:Wurst 7.20]], .xray acts as a shortcut to the [[.blocklist]] command.
===== Syntax =====
Main article: [[:command#syntax|Command Syntax]]
* ''.xray add '' adds the given block to your X-Ray blocks list.\\ \\
* ''.xray remove '' removes the given block from your X-Ray blocks list.\\ \\
* ''.xray list []'' lists up to eight entries of your X-Ray blocks list. Typing the command without specifying a page will always show the first page.\\ \\
* ''.xray reset'' resets the [[:X-Ray#Ores|X-Ray Ores]] list to its default values.
Examples:
* ''.xray add tnt'' adds [[mc>TNT]] to the X-Ray blocks list.\\ \\
* ''.xray add 46'' [//[[:Wurst 6]] only//] or ''.xray add 1487'' [//[[:Wurst 7]] only//] adds [[mc>TNT]] to the X-Ray blocks list.((The numbers are different because all numeric block IDs changed after [[mc>The Flattening]].))\\ \\
* ''.xray remove tnt'' removes [[mc>TNT]] from the X-Ray blocks list.\\ \\
* ''.xray list 2'' shows page two of the [[:X-Ray#Ores|X-Ray Ores]] list (if the list is large enough).
===== Changes =====
^Version^Changes^
|[[update:Wurst 1.9 Beta]]|Added ''.xray''.|
|[[update:Wurst 3.4]]|Fixed a crash when using the ''.xray'' command.|
|[[update:Wurst 6.22]]|Simplified the syntax of the ''.xray'' command.|
|:::|Added ''.xray reset'' to reset X-Ray's block list.|
|[[update:Wurst 7.0pre1]]|Removed ''.xray''.|
|[[update:Wurst 7.20]]|Added a new ''.xray'' command that acts as a shortcut for [[.blocklist]]. The syntax is the same as the old ''.xray'' command.|
{{tag>client-side}}