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

"/execute if block" fails to detect lava/water

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w09a
    • Windows 10 pro x64
      Java: standard accessory (1.8.0_25 64bit)
      CPU: i7-2600k @3.4GHz 4.4GHz OC
      GPU: GTX 970 (NVIDIA 391.01)
    • Unconfirmed

      trying to detect water or lava relative to the player fails if the block adjacent to the fluid where it would spread to just changed. (green block in picture)
      If the block didn't change for the time the fluid would spread "execute if block" will work again.

      In this example I use an advancement for mining cobble from a cobble-generator. It uses the inventory_changed trigger with item cobblestone to grant a function as reward that tests if the player is at a cobble-generator.
      The according test for the situation in the picture is:

      execute anchored feet if block ~1 ~ ~1 minecraft:water if block ~ ~ ~2 minecraft:lava run scoreboard players add @p adv_cobblegen 1
      execute anchored feet if block ~1 ~ ~1 minecraft:water if block ~-1 ~ ~1 minecraft:lava run scoreboard players add @p adv_cobblegen 1
      

      (all other orientations behave the same way)
      This fails if the player mines cobblestone from the green blocks position. But it succeeds if the function gets called manually or the inventory changes with still containing cobblestone. Booth only if the green block did not change recently.

            Unassigned Unassigned
            Dobrand Dobrand
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: