Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-94757

Unable to test for a specific ground item potion.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 15w51b
    • None
    • Unconfirmed

      I'm not sure if I have the syntax incorrect or what but here's the cmd I did in order to attempt in testing for a specific ground item potion:

      /testfor @e[type=Item] {Item:{id:"minecraft:splash_potion",tag:{Potion:"minecraft:fire_resistance"}}}
      

      to make sure if I did the correct syntax I simply dropped the fire resistance potion on the ground next to a command block that had the following command:

      /entitydata @e[c=1,type=Item] {}
      

      which basically outputs the syntax of that potion.
      The output is:

      {Motion:[0:-0.0032639305892422227d,1:-0.0d,2:2.328694965208985E-4d],UUIDLeast:-5189384868783823950L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:349.79404f,1:0.0f],Thrower:"Logical_Cyclops",FallDistance:0.0f,Item:{id:"minecraft:splash_potion",Count:1b,tag:{Potion:"minecraft:fire_resistance"},Damage:0s},UUIDMost:-9045697795539712212L,Pos:[0:-296.76321673258883d,1:4.0d,2:30.829441827924242d],PickupDelay:26s,Fire:-1s,Age:14s}
      

      I looked at the part where it says

      Item:{id:"minecraft:splash_potion",Count:1b,tag:{Potion:"minecraft:fire_resistance"},Damage:0s}

      so I excluded the count and the damage and I tried the testfor cmd with that datatag which didn't work. I then did the testfor without excluding damage and count and still frustratingly didn't work. Making me believe that it's a bug.

            Unassigned Unassigned
            Cyclops_Gamer Logical_Cyclops
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: