#Anti-Xray

1 messages · Page 1 of 1 (latest)

novel kindle
#

Quick showcase of upcoming anti-xray module for Shard. I think its hella good for what it is. Basically it replaces ores (that arent exposed) with purple wool. It can be a little laggy with large radius & short intervals but it calms down once most ores are gone.

There is some fine tuning I need to do with the default settings & the stored data because right now it stores all spoofed blocks in dynamic properties which can take up considerable storage if you have thousands of ores spoofed. From my (crude) testing it took about 1.4 MB for a 100x300x100 area im sure I can get that down a lot since I have not focused on memory optimization at all yet.

https://github.com/phosxd/mc-shard
Its late at night rn so im not gonna update the repo with the module until tomorrow, plus I gotta add some functionality for reverting all spoofed blocks if you no longer wanna use it.

#

its not perfect and still lets players xray for surface ores, but it significantly reduces the amount they can see
im also realizing wool is not great choice because it can burn ._.

left grail
#

me x-raying for wool

novel kindle
#

after staying up till 5 am i finished some optimizations.

  • Clears ores faster & farther while causing less lag, it was slowed down by some unnecessary logic I was able to strip down.
  • Doesnt save as much data & now saves each spoof block in their own properties because there were some issues with saving times putting everything in the same property.
  • Added command to unspoof nearby ores.
  • Using concrete instead of wool now.

I also have an idea to completely remove all lag caused by this, but Ima wait until tomorrow to test it.

slim cape
#

Okay so this is all script driven?

#

Personally just would have utilised worldgen for this

#

even then cheaters always find ways to cheat

novel kindle
slim cape
#

You can place vanilla blocks using worldgen

#

There are many approaches I'm envisioning for this but aye, it's tough to know what's best because people can and will find ways around it

novel kindle
# novel kindle Quick showcase of upcoming anti-xray module for Shard. I think its hella good fo...

Made some more changes.

  • Removed all lag caused by retrieving blocks at interval start. Now retrieves blocks over time. User can select speed to fit their needs. There will be an option to revert back to the old system which works a lot faster but has huge lag spikes at the start of the interval with large radius.
  • Implemented "cost per tick" system to gauge total "cost" of a set of iterations (based on what checks it passes) & yields to next tick if cost reaches a threshold. Threshold is based on module settings.
  • Spoofed blocks are stored as a single integer instead of a stringified json object, so takes up a lot less space. From testing 13.5k ores takes about 0.8MB.

If you have any ideas how I could improve this, I would love to hear them.

novel kindle
#

Got down to 0.4 MB per 13k, I dont think I can get it lower than this. Already so much better than originally.

tidal kayak
novel kindle
novel kindle
novel kindle
#

After combining ideas from the new system & the old system I finally found a sweet spot that is super fast & creates absolutely no lag.
This involved a bunch of math which was a pain to figure out

vestal valley
#

👍

novel kindle
#

you can now easily unspoof all ores in your world, even in unloaded chunks. This does unfortunately use ticking area command if necessary. I tried to use entities to load chunks but you cant summon in unloaded chunks & teleporting it wont load the chunk unless a player enters it then leaves it.