Minecraft
  1. Minecraft
  2. MC-48160

Cannot hide potion effect tooltips using HideFlags

    Details

    • 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).

        Activity

        Hide
        Gary Closse added a comment -

        Confirmed in 06b

        Show
        Gary Closse added a comment - Confirmed in 06b
        Hide
        EscoreFairplay added a comment -

        Confirmed 14w08a

        Show
        EscoreFairplay added a comment - Confirmed 14w08a
        Hide
        [Mojang] Searge (Michael Stoyke) added a comment -

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

        Show
        [Mojang] Searge (Michael Stoyke) added a comment - The value to hide the additional infos from the tooltip is 32 (bit 5)
        Hide
        WolfieMario added a comment -

        Awesome, thank you!

        Show
        WolfieMario added a comment - Awesome, thank you!
        Hide
        Tiya tehJak added a comment - - edited

        @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

        Show
        Tiya tehJak added a comment - - edited @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
        Hide
        Sonic added a comment -

        Tiya, HideFlags is only meant to hide tooltips.

        Show
        Sonic added a comment - Tiya, HideFlags is only meant to hide tooltips.
        Hide
        Skylinerw added a comment -

        @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

        Show
        Skylinerw added a comment - @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
        Hide
        Tiya tehJak added a comment - - edited

        @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

        Show
        Tiya tehJak added a comment - - edited @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

          People

          • Assignee:
            [Mojang] Searge (Michael Stoyke)
            Reporter:
            WolfieMario
          • Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              CHK: