Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Anti-Xray engine-mode: 2 configurable # (or %) of blocks replaced

Open EvModder opened this issue 2 years ago • 1 comments

Is your feature request related to a problem?

One of the drawbacks as noted in Paper's docs with engine-mode: 2 is the increased computation cost for server/client.

Describe the solution you'd like.

A really nice feature would be a setting (either a %, or a # limit) for how many blocks get replaced in engine-mode: 2, allowing for the server impact to be adjusted as needed. Through testing (via plugin with packet intercept), it seems that even as low as replacing 2% of stone and air with ores is enough to effectively neutralize Xray.

Describe alternatives you've considered.

Currently the alternatives are to use engine-mode: 1 (less effective), use a plugin (likely more costly than a paper-native solution), or to disable Anti-Xray.

Other

No response

EvModder avatar Jan 05 '23 07:01 EvModder

Currently there is an alternative that just needs to add enough stone or air. I've been using it for a long time and it works and saves a lot of network traffic. Of course, it would be better to configure the ratio of blocks more conveniently.

anticheat:
  anti-xray:
    enabled: true
    engine-mode: 2
    hidden-blocks:
    - cave_air
    - cave_air
    - cave_air
    - cave_air
    - cave_air
   ...

KioProject123 avatar Jan 06 '23 07:01 KioProject123

Only partially replacing blocks in the chunks would make the anti-xray effectively useless, mode 3 was added shortly after this issue was opened and addresses some of the drawbacks mode 2 has.

Warriorrrr avatar Sep 09 '23 05:09 Warriorrrr