• check_circle Functions
  • 20,109 views, 58 today
  • 2,453 downloads, 8 today
  • 14
  • 17
  • 30
BruceVII avatar BruceVII
Level 38 : Artisan Procrastinator
An Anti-xray pack for 1.17.1:

I couldn't find a simple anti-xray datapack that worked properly for me so i decided to create it myself.

What does it do?

It logs how many diamonds and ancient debris a player has mined.

The maximum is 20 valuables each ~10 minutes and if the player reaches this count all people with the OP tag will be notified.

The xrayer will get the tag 'XRAY_WARNING_[​RESOURCE]' so if all moderators are offline, they can check for the tag once they're online.

How do i give someone OP?

OP in this pack isn't the same as the /op command; It's just a tag.

You give this tag to someone with the command /tag [​username] add OP

To remove it, type /tag [​username] remove OP

How to install?

1. Download the .zip file
2. Drag the file into %appdata%\.minecraft\saves\yourworldnamehere\datapacks
3. Extract the .zip (for some reason my packs never work while zipped)
4. Open your minecraft world and type /reload

How to uninstall?

1. Type '/function ax:uninstall'
2. Remove the Anti-Xray pack

About this pack:

It is definitely not my intention to copy people who created similar packs; it's just that i made a really simple one myself and wanted to share it on here.

I know that there are plugins out there that do the job way better, but this pack is aimed at small servers/realms.
CompatibilityMinecraft 1.17

4 Update Logs

Patch 4 : 11/22/2021 6:04:49 amNov 22nd

+ Upgraded the pack to 1.17.1, it can handle deepslate diamonds as well now

+ Made the pack less resource intensive by checking scores every 5 ticks instead of every tick

+ Improved the color scheme of the messages

+ The ax:uninstall function actually works now

Create an account or sign in to comment.

12/02/2021 9:01 am
Level 1 : New Miner
LeMobsilia avatar
Does this work on 1.18 ?

And if not do you will update it ?
11/28/2021 1:31 am
Level 1 : New Miner
Happyllama25 avatar
Does this work on 1.16.5?
How do I enable it? I put it in singleplayer, did /reload and tested and didnt get any tags...
11/28/2021 6:48 am
Level 38 : Artisan Procrastinator
BruceVII avatar
This version doesn't work on 1.16.5, as it uses deepslate diamond which is only available in 1.17.

However, here's a version of the pack which will work on 1.16.5:


Also, keep in mind whilst testing that placing ores and mining them won't give you a tag (because you placed them first). You have to mine ores you didn't place for the counter to go up (this is to prevent false-positives from people who mine a lot of diamonds with silk touch, place them down, and mine all of them with fortune 3).
11/22/2021 7:53 am
Level 31 : Artisan Pixel Painter
PickAUsername avatar
Oh mY GOd HoW DID u GeT ThaT MaNY DiAMonDS?!?! I ThiNK hE MiGHT bE ChEAtInG GUys
04/08/2021 4:44 am
Level 1 : New Explorer
Alexis_Kim avatar
Finally a datapack that counters x-ray. Very well done!
03/24/2021 10:41 am
Level 1 : New Miner
Gunde007 avatar
I want to reset xray tags but the advise i hawe goten from the comants takes away all the scores. In my server we hawe a death count which will of course be reset if i reset all the scores. So should i reset all the scores in the data pack and hawe a comand block or are u gona make a trigger command or something to help the player with the reseting?
03/20/2021 8:10 pm
Level 1 : New Miner
User3384424G avatar
How can i test if this is working or not?
04/08/2021 3:43 am
Level 1 : New Miner
Gunde007 avatar
just put it in a single player world and star x-rayin
03/17/2021 6:16 am
Level 1 : New Miner
eLcacos avatar
Hi, i have a problem, a diamond chestplate flashes in my inventory and that gives me the full diamond armour advancement, how do i fix that?
02/23/2021 3:16 pm
Level 7 : Apprentice Engineer
iijj22gg avatar
I would use this datapack, but I have one question. In late game, it's easier to mine with silk touch, as it keeps the full block and takes up less space. When your inventory and/or shulkers are full, people go outside and place all their ores and mine them all at once with a fortune 3 pick. You can get like 3 stacks of diamonds in five minutes with this method. So, my question is this: does the pack check the diamond ore you mine and add a tag to mined ore stating they have already been found? Otherwise, this pack is impossible to use.
Planet Minecraft


© 2010 - 2021