Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obfuscation Changes #515

Merged
merged 6 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions config-specs/paper/paper-global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
anticheat:
obfuscation:
items:
all-models:
also-obfuscate:
default: "[]"
description: >-
Controls additional data components which should be hidden for all items from other players. It's
generally not recommended to configure this unless you know what you are doing, as you may change
how items look to other players.
dont-obfuscate:
default: "[minecraft:lodestone_tracker]"
description: >-
Controls which data components should not be hidden for all items from other players. This is because they may slightly change
the item's appearance, so hiding it isn't warranted.
In this example, lodestone trackers may reveal critical locations, but hiding the location causes the
compass to shake around for other players. It's up to your digression whether you think this tradeoff is important.
sanitize-count:
default: "true"
description: >-
Controls whether the item's count should be hidden from other players.
enable-item-obfuscation:
default: "false"
description: >-
Controls whether unnecessary item information (such as enchantments, lore, etc.) that can give cheat clients an advantage should be sent to other
players' clients. This may break resource packs that rely on information such as enchantments,
lore or item names when observing other players.
The hidden data components can be extended or reduced via the respective `also-obfuscate` and `dont-obfuscate` respectively.
lynxplay marked this conversation as resolved.
Show resolved Hide resolved
model-overrides:
minecraft:elytra:
also-obfuscate:
default: "[]"
description: >-
Controls the components that should also be obfuscated for items with the item model of `minecraft:elytra`.
This may be useful if you want to hide certain components not important to other players.
dont-obfuscate:
default: "[minecraft:damage]"
description: >-
Controls the components that should not be obfuscated for items with the item model of `minecraft:elytra`.
This defaults to `minecraft:damage` as elytras with 1 durability have a special texture.
sanitize-count:
default: true
description: >-
Controls whether the item count of items with the model `minecraft:elytra` should be hidden from other players.
block-updates:
disable-noteblock-updates:
default: "false"
Expand Down
24 changes: 0 additions & 24 deletions config-specs/paper/paper-world-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,30 +76,6 @@ anticheat:
With engine-mode: 3, the behavior is the same as engine-mode: 2, but the
replacement-blocks list is used to determine which blocks are used for
each vertical chunk layer.
obfuscation:
items:
hide-durability:
default: "false"
description: >-
Controls whether durability information is sent to other players'
clients. This may break resource packs that rely on durability values
when observing other players
hide-itemmeta:
default: "false"
description: >-
Controls whether unnecessary item information (such as enchantments,
items in a shulker box/bundle, etc.) that can give cheat clients an
advantage should be sent to other players' clients. This may break
resource packs that rely on information such as enchantments, lore or
item names when observing other players
hide-itemmeta-with-visual-effects:
default: "false"
description: >-
Controls whether item information that affects how an item is
displayed (such as lodestone compass positions) should be sent to
other players' clients. This information could be used by cheat
clients to give another advantage to the cheating player. However,
this will affect how certain items look when held by another player
chunks:
auto-save-interval:
default: default
Expand Down
Loading