Hide attributes is not working for spawners
Closed this issue · 3 comments
msmanui commented
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
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
Yeah but is not hiding it. I tried all flags.