[SPIGOT-165] HideFlags tag not working Created: 08/Dec/14 Updated: 11/Dec/14 Resolved: 11/Dec/14 |
|
Status: | Closed |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Reploid Zero | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 1 |
Labels: | None |
Attachments: |
![]() ![]() |
||||||||
Issue Links: |
|
Description |
Whenever spawning in an item with the HideFlags data, it doesn't hide any tags. Enchantments, if Unbreakable, and Attribute modifiers can still be seen. Code tested: /give @p minecraft:iron_sword 1 0 {HideFlags:7,AttributeModifiers:[ {AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDLeast:894654,UUIDMost:2872}],Unbreakable:1,ench:[ {id:16,lvl:5}]} In Vanilla, it results in a sword with sharpness 5, unbreakable, and adds one heart to the player when held, but none of that information readily available. In Spigot, it is the same sword statistically, but you can see the attribute modifier, the enchantment, and can see it is unbreakable. |
Comments |
Comment by mactso [ 08/Dec/14 ] |
1) Test in vanilla. 2)Test in vanilla spigot with /minecraft: prefix. Abilities do work (select and deselect sword and you can see the 1 heart of health add and go away). 3)Test in vanilla spigot without /minecraft: prefix. One other difference. |
Comment by Reploid Zero [ 08/Dec/14 ] |
I have it set up so that it isn't overridden in command blocks. So I did test with /give and not /minecraft:give. I did test it to make sure, but doing /minecraft:give did not fix the HideFlags data tag issue. |
Comment by Fabian Faßbender [ 08/Dec/14 ] |
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/37/overview Also /give is overriden in bukkit. Use /minecraft:give |