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

/execute detect functions inconsistently with semi- (snow layer, grass path, soul sand, farmland) blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 17w45b
    • Minecraft 15w35e, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w44a, Minecraft 1.12.2
    • Confirmed

      When experimenting with the new command blocks I noticed that blocks that are not full or "normal" blocks function highly inconsistently when using a /execute command with the detect function inside a repeating command block or on a redstone clock.

      The command I used was the following:
      /execute @e[r=20] ~ ~ ~ detect ~ ~-1 ~ <block here> 0 /effect @e[r=20] slowness 1 1 1

      • Stone, Sandstone, dirt, and other normal blocks work; the execute command will trigger every tick when in a repeating command block or every time redstone triggers a normal impulse block
      • Grass Path blocks (/execute @e[r=20] ~ ~ ~ detect ~ ~-1 ~ grass_path 0 /effect @e[r=20] slowness 1 1 1) will trigger once when the player steps on the block, but will not trigger again until the player steps off the block, where it'll trigger again

      The attached pictures show how the slowness effect remains while on a full block (stone), but do not when on a semi-block (grass paths).


      Code analysis by marcono1234 can be found in this comment.

        1. 2015-08-31_16.16.08.png
          289 kB
          Neospector
        2. 2015-08-31_16.16.27.png
          365 kB
          Neospector

            Unassigned Unassigned
            neospector Neospector
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: