• check_circle Functions
  • 29,376 views, 20 today
  • 3,655 downloads, 1 today
  • 15
  • 19
  • 31
BruceVII avatar BruceVII
Level 42 : Master Procrastinator
12
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
Tags

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
LOAD MORE LOGS

Create an account or sign in to comment.

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

And if not do you will update it ?
2
11/28/2021 1:31 am
Level 1 : New Miner
Happyllama25
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...
1
11/28/2021 6:48 am
Level 42 : Master Procrastinator
BruceVII
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:

https://www.planetminecraft.com/data-pack/anti-xray-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).
1
12/19/2021 3:52 pm
Level 1 : New Miner
Happyllama25
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!
1
11/22/2021 7:53 am
Level 36 : Artisan Pixel Painter
PickAUsername
PickAUsername avatar
Oh mY GOd HoW DID u GeT ThaT MaNY DiAMonDS?!?! I ThiNK hE MiGHT bE ChEAtInG GUys
1
04/08/2021 4:44 am
Level 1 : New Explorer
Alexis_Kim
Alexis_Kim avatar
Finally a datapack that counters x-ray. Very well done!
1
03/24/2021 10:41 am
Level 1 : New Miner
Gunde007
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?
1
03/20/2021 8:10 pm
Level 1 : New Miner
User3384424G
User3384424G avatar
How can i test if this is working or not?
Thanks
1
04/08/2021 3:43 am
Level 1 : New Miner
Gunde007
Gunde007 avatar
just put it in a single player world and star x-rayin
1
03/17/2021 6:16 am
Level 1 : New Miner
eLcacos
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

Website

© 2010 - 2022
www.planetminecraft.com

Welcome