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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
43 changes: 43 additions & 0 deletions config-specs/paper/paper-global.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
anticheat:
obfuscation:
items:
all-models:
also-obfuscate:
default: []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: []
default: "[]"

description: >-
Controls whether certain data components should be hidden for all items from other players. It's
generally not recommended you configure this unless you know what you are doing, as you may change
how items may look visually to other players.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
how items may look visually to other players.
how items look to other players.

dont-obfuscate:
default: ['minecraft:lodestone_tracker']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: ['minecraft:lodestone_tracker']
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: false
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.
model-overrides:
minecraft:elytra:
also-obfuscate:
default: [ ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: [ ]
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 items.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This may be useful if you want to hide certain components not important to other items.
This may be useful if you want to hide certain components not important to other players.

dont-obfuscate:
default: [ minecraft:damage ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: [ minecraft:damage ]
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 items with the item model of `minecraft:elytra` count should be hidden from other players.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Controls whether the items with the item model of `minecraft:elytra` count should be hidden from other players.
Controls whether the item count for items with the item model of `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