• check_circle Functions
  • 29,376 views, 20 today
  • 3,655 downloads, 1 today
  • 15
  • 19
  • 31
BruceVII avatar BruceVII
Level 42 : Master 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 : by BruceVII 11/22/2021 6:04:49 amNov 22nd, 2021

+ 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 42 : Master 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).
12/19/2021 3:52 pm
Level 1 : New Miner
Happyllama25 avatar
I placed the diamonds using commands (/fill X Y Z X Y Z diamond_ore) I don't think that would count as placing them myself, thanks for the older pack version!
11/22/2021 7:53 am
Level 36 : 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?
Planet Minecraft


© 2010 - 2022