Compatibility
Minecraft: Java Edition
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
This light-weight data pack displays the enchantments of the item in your main hand, which will be translated into your Minecraft language. You can now easily see your items' enchantments at your actionbar (above your inventory) without having to rename them or open your inventory.
Basic functions also work with cheat off (Allow Commands: OFF), but changing the text style requires command permission. This data pack should work with other modded enchantments if their translations follow the vanilla naming rules (enchantment.<namespace>.<id>), and no annoying "enchantment.level.xxx" will show up.
This data pack is re-written from an earlier version, so the setting menu isn't very perfected and is only in English, but the text should be easy to understand.
Commands:
/function enchantment_display:setting
To open setting menu.
/function enchantment_display:setting/set_text_color {color:"<color>"}
To change the color of displayed enchantments. Replace <color> with a color code or a color name (such as #000000, black, dark_blue...).
/function enchantment_display:setting/toggle_level_one_visibility
"Sharpness I" or "Sharpness".
/function enchantment_display:setting/toggle_space_before_level
"Sharpness II" or "SharpnessII", usually for languages without letters, such as Chinese.
/function enchantment_display:setting/toggle_text_bold
"Sharpness II" or "Sharpness II".
/function enchantment_display:uninstall
To fully uninstall the data pack, removing all storage data and related entities and disable the data pack. If you have renamed the data pack file, you will have to manually run "/datapack disable <name>" to disable the data pack.