You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While developing a custom mining system for my server, I've noticed that the "CanBreak" tags always show on a Bedrock client's item description, even when the Java item has a component/nbt tag that hides those flags for Java clients. After doing some research, I've concluded that an adequate solution would be to allow setting global gamerules (preferably via the config) for all bedrock clients, and while on the server the clients would obey those gamerules.
There is a gamerule for bedrock called showtags that hides/shows bedrock item nbt tags in the item's lore, so setting that tag to false would be a perfect solution for my issue!
To Reproduce
Give yourself a custom item (on a Java server) with any enchantment or a custom adventure-mode breaking/placement rule.
Ensure that the custom item has the HideFlags tag set to hide the data (either the enchantments, adventure-mode rules, or all)
View the item on both Bedrock and Java clients. The Java client should hide the data properly, while the bedrock client will still see the data.
Expected behaviour
The item flags should stay hidden on Bedrock clients if they hide on Java clients as a result of an item flag in the item's component/nbt data.
Screenshots / Videos
Java: Bedrock:
Server Version and Plugins
Paper version git-Paper-318 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 9271ee7)
Describe the bug
While developing a custom mining system for my server, I've noticed that the "CanBreak" tags always show on a Bedrock client's item description, even when the Java item has a component/nbt tag that hides those flags for Java clients. After doing some research, I've concluded that an adequate solution would be to allow setting global gamerules (preferably via the config) for all bedrock clients, and while on the server the clients would obey those gamerules.
There is a gamerule for bedrock called
showtags
that hides/shows bedrock item nbt tags in the item's lore, so setting that tag to false would be a perfect solution for my issue!To Reproduce
HideFlags
tag set to hide the data (either the enchantments, adventure-mode rules, or all)Expected behaviour
The item flags should stay hidden on Bedrock clients if they hide on Java clients as a result of an item flag in the item's component/nbt data.
Screenshots / Videos
Java:
Bedrock:
![Image](https://private-user-images.githubusercontent.com/108705186/409313509-3cbc60ab-c572-4591-b4f4-3b8142ccf8f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MTY3MjQsIm5iZiI6MTczOTUxNjQyNCwicGF0aCI6Ii8xMDg3MDUxODYvNDA5MzEzNTA5LTNjYmM2MGFiLWM1NzItNDU5MS1iNGY0LTNiODE0MmNjZjhmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwNzAwMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xOTJhMzE0MGFjOTk0OWY5ZWRkMjdjNjU0MDRhNjVjN2MwNWQ2NGE2YmI1NDkxNGY4NTM4ZjY5NGFhZmVhZWQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.i3Od40U_yVHz0LwZuovbb9p0CGACKsmDhPY-v_xC1H0)
Server Version and Plugins
Paper version git-Paper-318 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 9271ee7)
Geyser Dump
https://dump.geysermc.org/7v3zLIsh5sdVnCojrK4pW5toPfZg0Upp
Geyser Version
2.6.0-b754 (git-master-ea13e58)
Minecraft: Bedrock Edition Device/Version
"1.21.40 - 1.21.44", "1.21.50 - 1.21.51"
Additional Context
No response
The text was updated successfully, but these errors were encountered: