Anti Xray is a lightweight fabric mod that allows server owners to combat xrayers.
enabled = false
[overworld]
enabled = true
engineMode = 2
maxBlockHeight = 256
updateRadius = 2
lavaObscures = false
hiddenBlocks = ["copper_ore", "deepslate_copper_ore", "gold_ore", "deepslate_gold_ore", "iron_ore", "deepslate_iron_ore", "coal_ore", "deepslate_coal_ore", "lapis_ore", "deepslate_lapis_ore", "mossy_cobblestone", "obsidian", "chest", "diamond_ore", "deepslate_diamond_ore", "redstone_ore", "deepslate_redstone_ore", "clay", "emerald_ore", "deepslate_emerald_ore", "ender_chest"]
replacementBlocks = ["stone", "deepslate"]
[the_nether]
enabled = true
engineMode = 1
maxBlockHeight = 128
updateRadius = 2
lavaObscures = false
hiddenBlocks = ["ancient_debris", "nether_quartz_ore", "nether_gold_ore"]
replacementBlocks = ["netherrack"]
enabled
if set to true anti xray will be active in the specified world
engineMode
can either be 1 or 2, see [Engine Modes](#Engine Modes)
maxBlockHeight
controls the max height at which blocks should get obfuscated
updateRadius
controls how many blocks away from shown blocks obfuscation should start (if your players see fake ores
it is recommended to increase this value)
lavaObscures
if set to true blocks next to lava will get obscured
hiddenBlocks
is a list of block ids that will get hidden
replacementBlocks
is a list of blocks that will get used for block obfuscation
This mod is a port of Papers Async Anti Xray Patch from 1.17 and it's 1.14 patch for networking code, to fabric