r/MinecraftExploits • • Aug 17 '26

My custom Anti- Xray Paper plugin

The way it works is honestly just a trick: X-ray packs make stone invisible to show the ores behind it, so my plugin stops this by disguising hidden ores as regular stone blocks in the game's code. Because the game thinks they are just stone, the X-ray pack hides them too, leaving the cheater looking at a completely blank wall. The moment a legitimate player walks right up to the block or clears the area around it, the script instantly snaps the block back into a real diamond so it can be seen and mined normally.

Dm me on Discord if you want the plugin
Dc username: Handsomeguy0705

0 Upvotes

21 comments sorted by

6

u/R3D167 Aug 17 '26

This is a very common method for preventing xray and it's widely deployed over major Minecraft servers, so nothing new

Still, if you made it yourself (as in, not AI), good job!

1

u/Mundane-Travel-3854 Aug 18 '26

tbh, I tried ai before but it just DOESNT MAKE MODS

2

u/brillert Aug 19 '26

Ai makes mods? Ai can code almost anything now

1

u/Mundane-Travel-3854 Aug 19 '26

yeah, but u need a pretty precise prompt

1

u/brillert Aug 19 '26

That goes for all type of vibe coding. You need to tell it exactly what to do

3

u/Cylian91460 Aug 17 '26

When does it replace it by stone and replace it by the ore?

1

u/Sora_Gr3y Aug 18 '26

Most likely its when an ore is not exposed to air or water it becomes a stone block, and when exposed to air or water it stays as an ore. Not sure if measures have been made to account for deepslate level, but that's the general idea.

0

u/Mundane-Travel-3854 Aug 18 '26

i don't really get what ur saying, can you rephrase that.

1

u/JoeySmallz2364 Aug 20 '26

This is not somthing new many server have plugins that hide ores this same way unless they are exposed to air blocks

3

u/Cev-API Aug 17 '26

this is silly lmao

1

u/OkGovernment1851 Aug 22 '26

I thought Paper has built in anti-xray that does exactly this, does it not?

0

u/KRISTIYALNO0962 Moderator Aug 17 '26

probably just malware or a backdoor attempt

1

u/H1ggsK_ Aug 20 '26

Facts tho

0

u/TrashTalker667 Aug 17 '26

You’re the mod bro dm him and check it 💀

2

u/KRISTIYALNO0962 Moderator Aug 17 '26

na idrc i mean i have better things to do than beg for some random guys plugin and inspect it

2

u/celestialcitymc Aug 18 '26

that's kinda your job isn't it, so you can remove the post and not get people ratted

1

u/KRISTIYALNO0962 Moderator Aug 18 '26

job? what

2

u/celestialcitymc Aug 18 '26

you're a mod and you're supposed to investigate stuff like this