[MC-48160] Cannot hide potion effect tooltips using HideFlags Created: 10/Feb/14  Updated: 05/Jun/17  Resolved: 03/Mar/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a
Fix Version/s: Minecraft 14w10a

Type: Bug
Reporter: WolfieMario Assignee: [Mojang] Searge (Michael Stoyke)
Resolution: Fixed Votes: 5
Labels: HideFlags, attribute, modifier, nbt, potion, text, tooltip

CHK:
Confirmation Status: Community Consensus

 Description   

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   
Comment by Itouch2 [ 13/Feb/14 ]

Confirmed in 06b

Comment by EscoreFairplay [ 21/Feb/14 ]

Confirmed 14w08a

Comment by [Mojang] Searge (Michael Stoyke) [ 03/Mar/14 ]

The value to hide the additional infos from the tooltip is 32 (bit 5)

Comment by WolfieMario [ 03/Mar/14 ]

Awesome, thank you!

Comment by Tiya tehJak [ 08/Feb/15 ]

@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

Comment by Dlawso the Really Lucky Rabbit [ 08/Feb/15 ]

Tiya, HideFlags is only meant to hide tooltips.

Comment by [Mod] Skylinerw [ 08/Feb/15 ]

@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

Comment by Tiya tehJak [ 08/Feb/15 ]

@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

Comment by [Mod] Marcono1234 [ 19/Oct/15 ]

You can use {code} around the text. For more formatting options, see Text Formatting Notation Help

Generated at Sun Sep 23 16:35:31 CDT 2018 using Jira 7.11.2#711002-sha1:fdc329dee91471a641faabfe39b5ff8c0a5b3f66.