The HideFlags tag can be used to hide various tooltips, including enchantments, attribute modifiers, and CanPlaceOn. However, it will not hide tooltips on potion effects, such as "Speed (3:00) When Applied: +20% Speed".
To demonstrate, "HideFlags:1023" will hide all tooltips (except those made by F3+H) on any item, except for the potion effect flags. Sample commands:
/give @p minecraft:potion 1 8194 {HideFlags:1023}
/give @p minecraft:potion 1 8194 {HideFlags:31}
/give @p minecraft:potion 1 8194 {HideFlags:1}
/give @p minecraft:potion 1 8194 {HideFlags:2}
/give @p minecraft:potion 1 8194 {HideFlags:4}
/give @p minecraft:potion 1 8194 {HideFlags:8}
/give @p minecraft:potion 1 8194 {HideFlags:16}
/give @p minecraft:potion 1 8194 {HideFlags:32}
All of the above will fail; there is no bit tested for potion effects (and the attribute modifiers produced by them).
Comments 9
@Searge
I have a question, I can't seem to get it to work with mob drops. The mob drops a splash potion but I don't want the effect it has to show. I tried HideFlags:32 and I tried HideFlags:5. I think I am misunderstanding what you mean by bit 5.
I tried to find it on the wiki and mcforums but to no avail. I tried the tag in two places, {Equipment:[{id:potion,Damage:16421s,Count:1b,HideFlags:32},{},{},{},{}]} and I tried {Equipment:[{id:potion,Damage:16421s,Count:1b,tag:{display:{HideFlags:32}}},{},{},{},{}]} I also tried HideFlags:5 in both places didn't work though. I think I may be missing something but I am not sure. I was wondering if you or someone could help? I also tried 31.
EDIT: I am also using 1.8.2pre6
@Sonic Potions have a tooltip stating the effect and duration.
@Tiya The item format requires that all tags that is not "id", "Damage", "Count", or "Slot", be placed inside a single "tag" tag. The "HideFlags" tag goes at the root of the "tag" tag, not inside the "display" tag.
{id:minecraft:potion,Damage:16421s,Count:1b,tag:{HideFlags:32}}
You can see the item format here: http://minecraft.gamepedia.com/Player.dat_format
@Skylinerw
!!! HAHA I see! I knew I was doing it wrong lol. I figured it had to go in the tag part but for whatever reason I didn't look at it right.. THANK YOU thank you! XD lol I'm learning, see I'm getting there haha thanks so much!
so {id:potion,Damage:16421s,Count:1b,tag:{HideFlags:32,display:{Name:"Thank You",Lore:["My Gratitude"]}}}
cool got it.. btw how do you do that graybox thing where you put the code in? A lot easier to read I'll tell you that. EDIT: Forgot a curly bracket
You can use {code}
around the text. For more formatting options, see Text Formatting Notation Help
Confirmed in 06b