Uploaded image for project: 'Minecraft'
  1. Minecraft
  2. MC-99602

Impossible to detect Water Bottle from ocean in player's inventory

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w36a
    • Fix Version/s: Minecraft 16w38a
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      • When you obtain a water bottle in survival mode by ocean water only, it has no tag.
      • When you obtain a water bottle by cauldron, it has 1 tag.
      • When you take a water bottle in creative inventory, it has 1 tag =>
         {Potion:"minecraft:water"}

      If you try to detect if a player has in his inventory a water bottle, and only this potion, you must use =>

      /scoreboard players set @a WaterBottle 1 {Inventory:[{id:"minecraft:potion",Damage:0s,Count:1b,tag:{Potion:"minecraft:water"}}]}
      

      The problem is that when a player obtain a water bottle in survival mode by ocean water, his water bottle has no tag, so this command don't work.

      If you decide to use this command =>

      /scoreboard players set @a WaterBottle 1 {Inventory:[{id:"minecraft:potion",Damage:0s,Count:1b}]}

      you will detect players who have one of all potion and not only a water bottle.

      So, actually, it's impossible to detect if a player has only a water bottle (obtain in survival mode by ocean water) in his inventory

      A water bottle obtain by cauldron has 1 tag so it work here.

      Thanks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grum [Mojang] Grum (Erik Broes)
                Reporter:
                PneuX PneuX
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: