#Hide Enchantments not working on 1.21

1 messages · Page 1 of 1 (latest)

unique chasm
#

As you can see in examples, not working.

#
    material: NAME_TAG
    priority: 2
    slot: 19
    amount: 1
    display_name: '&e&lAlex Pin'
    lore:
      - '&fDisplay[colon] ⌀&7Display in the tab'
      - ''
      - '&e➥ Left-Click to select'
    view_requirement:
     requirements:
       upgrade_requirement:
         type: has permission
         permission: deluxetags.tag.alexb      
    click_commands:
      - '[close]'
      - '[player] deluxetags:tags select Alex'
    hide_enchantments: true
    enchantments:
    - DURABILITY;1
  AlexB:
    material: NAME_TAG
    priority: 1
    slot: 19
    amount: 1
    display_name: '&e&lAlex Pin'
    lore:
      - '&fDisplay[colon] ⌀&7Display in the tab'
      - ''
      - '&c[!] &7You haven’t unlocked this tag!'
    hide_enchantments: true
    enchantments:
    - DURABILITY;1```
unique chasm
#

Abandoned?

agile fiber
#

Might need the latest devbuild

short abyss
#

I also had the issue and it works on the latest build)

ivory veldt
ivory veldt
#

Thank you, the massive amount of warnings the console spit out telling me to update should have been my first clue lol.

ivory veldt
#

I've tried:

item_flags:
  - "HIDE_ENCHANTS"
  - "HIDE_ATTRIBUTES"
item_flags:
  - HIDE_ENCHANTS
  - HIDE_ATTRIBUTES

For some reason I cannot get the enchant to hide. Here is an example:

rules:
  material: ENCHANTED_BOOK
  slot: 12
  enchantments:
    - "SILK_TOUCH;1"
  item_flags:
    - "HIDE_ENCHANTS"
    - "HIDE_ATTRIBUTES"
  display_name: "&#FFD9BE⚖ &#FFA462Rules"
  lore:
    - "&7Some Lore →"
  left_click_commands:
    - "[player] runalias /rules"
    - "[close]"
  right_click_commands:
    - "[player] runalias /rules"
    - "[close]"
#

I also did lowercase variations (I don't think it matters but wanted to be sure)

agile fiber
ivory veldt
#

This is the full file:

menu_title: "&0Help Guides"
open_command: help
size: 36
items:
  rules:
    material: ENCHANTED_BOOK
    slot: 12
    enchantments:
      - "SILK_TOUCH;1"
    item_flags:
      - "HIDE_ENCHANTS"
      - "HIDE_ATTRIBUTES"
    display_name: "&#FFD9BE⚖ &#FFA462Rules"
    lore:
      - "&7Example Lore →"
    left_click_commands:
      - "[player] runalias /rules"
      - "[close]"
    right_click_commands:
      - "[player] runalias /rules"
      - "[close]"
agile fiber
#

What's the server version?

ivory veldt
#

1.21.1

agile fiber
#

That's weird, honestly not too sure

#

I'll give it a try on my server soon, I know hide_attributes has been working for me but idk about hide enchants lol

ivory veldt
#

Yeah no worries - just kind of tripping me out. I appreciate you taking the time to troubleshoot this /w me.

#

I haven't touched this in like a year so I'm going through my honey-do list of things to fix.

agile fiber
#

hide_enchantments: true also doesn't hide it by chance?

#

I know they are legacy and scheduled for removal or whatever, but it's weird itemflags wouldn't work

ivory veldt
#

@agile fiber I found a strange pattern that idk how I didn't notice... this is only on Enchanted Books. Items are not an issue.

agile fiber
#

Oh so it does work, just not on enchanted books?

ivory veldt
#

Yup just tested on some others, just enchanted books don't seem to hide it.

agile fiber
#

Wait a sec, do you just want an enchanted book to display in your GUI with no enchants on it or?

ivory veldt
#

Yup

#

If I switch it to just BOOK it works fine.

agile fiber
#

You can just use the material ENCHANTED_BOOK and not add any enchants

agile fiber
#

Still has that glowy effect on it

ivory veldt
#

Yeah that's the fix. Thank you for playing my stupid game 😂

agile fiber
#

All good, I feel like I have something like that happen to me at least once per day