stonar96 / RayTraceAntiXray

Paper plugin for server-side async multithreaded ray tracing to hide ores that are exposed to air using Paper Anti-Xray engine-mode 1.
MIT License
128 stars 26 forks source link

Feature request #23

Closed groundbreakingmc closed 5 months ago

groundbreakingmc commented 5 months ago

Add suport for plugin orebfuscator, because engine mod in paper can obfuscate blocks only to stone -_-, mod 2 can use only blocks from config and engine mod 3 the same, and i wont that blocks will be replaced with blocks are which are nearby becouse it's much more better to prepair gameplay for cheaters

groundbreakingmc commented 5 months ago

For exmple this is without antixray photo_5310101465613853004_y photo_5310101465613853007_y

This is paper angine mod 1 photo_5310101465613853005_y photo_5310101465613853008_y

This is what i want photo_5310101465613853006_y photo_5310101465613853009_y

stonar96 commented 5 months ago

Add suport for plugin orebfuscator

This is not how this works. This would require modifying how Orebfuscator works. For the built-in Paper Anti-Xray I'm doing this by basically replacing parts of the server's internal Anti-Xray implementation by the plugin's one. Also note that Orebfuscator also has a ray tracing feature. However, it works quite a bit different, less accurate and less efficient (hence RayTraceAntiXray, which uses Paper Anti-Xray, which also does the block replacements in a more efficient way to begin with).

paper can obfuscate blocks only to stone

That's not quite true. engine-mode: 1 replaces specified blocks (hidden-blocks) with other "fake" blocks, stone (deepslate at y < 0), netherrack, or end_stone based on the dimension. (See Paper docs.) Hiding ores is the primary scope of Paper Anti-Xray and this plugin.

i wont that blocks will be replaced with blocks are which are nearby

Duplicate of #2. Read my comment in this issue. As you can see, I've even implemented custom block replacement for testing purposes. However, this is at the expense of efficiency (the Paper Anti-Xray obfuscation algorithm is highly optimized, custom block replacement is not envisaged) and config backward compatibility.