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

Testfor's r= argument broken when executed from an item

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.12 Pre-Release 2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Operating System: Windows 8.1 (amd64) version 6.3
      CPU: 4x AMD A8-7410 APU with AMD Radeon R5 Graphics
      Java Version: 1.8.0_25, Oracle Corporation
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    • Confirmation Status:
      Unconfirmed

      Description

      The bug

      When I saw the changelog, i got excited a new /function system was added and i quickly tried it on my own.
      However, after some time realising what went wrong, /testfor can't detect entities, when a r= tag is present and it's being executed from an other item.

      Steps to reproduce

      1. Place two repeating command blocks set to Always Active with these commands inside:

      /scoreboard players tag @e[type=Item] add gblock {Item:{id:"minecraft:gold_block",Count:1b,Damage:0s}}
      
      /scoreboard players tag @e[type=Item] add gapple {Item:{id:"minecraft:golden_apple",Count:1b,Damage:0s}}
      

      2. Drop a gold block and a golden apple on the same place.
      3. Execute this command in chat:

      /execute @e[tag=gapple] ~ ~ ~ /testfor @e[tag=gblock,r=1]
      

      After that, try increasing the number of the r=x argument's value.
      It won't detect any items when x <= 4.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                MxxHxx11 Michael (Sniping)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: