HelpChat / DeluxeMenus

DeluxeMenus but open source!?
https://wiki.helpch.at/clips-plugins/deluxemenus
MIT License
61 stars 30 forks source link

Hide attributes is not working for spawners #91

Closed msmanui closed 2 months ago

msmanui commented 2 months ago

Tested with lastest dev -> DeluxeMenus-1.14.1-DEV-178.jar

  'spawfnerb2':
    material: spawner
    slot: 38
    priority: 3
    hide_attributes: true
    display_name: '&#F5DEB3&lENDERMAN SPAWNER'
    left_click_commands:
    - '[close]'
BlitzOffline commented 2 months ago

Hello @msmanui,

The hide_attributes option simply adds the HIDE_ATTRIBUTES item flag to the item. The same thing can be achieved by using the item_flags property and adding the HIDE_ATTRIBUTES item flag.

If this option doesn't hide some attributes that is because of how Spigot and/or Minecraft handles the flags. It is very common for some attributes to be hidden by the HIDE_ENCHANTS item flag instead. You can try it like this:

item_flags:
- 'HIDE_ATTRIBUTES'
- 'HIDE_ENCHANTS'

You can find all valid item flags for the latest Spigot version here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html

msmanui commented 2 months ago

Yeah but is not hiding it. I tried all flags.

iGabyTM commented 2 months ago

Is this not the same issue as #90 @msmanui ?