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

`stepping_on` check in `entity_properties` predicate is incorrect when sharing the same coordinate as a partial block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21.1, 24w39a, 1.21.2 Pre-Release 1
    • None
    • Unconfirmed
    • (Unassigned)

      How to Reproduce:
      1. Place an Oak Slab on the ground
      2. Start flying
      3. Set your position to be slightly above the Oak Slab, but still in the same block coordinates
      4. Run the following command in chat and notice how it succeeds:

      /execute if predicate {condition: "minecraft:entity_properties", entity: "this", predicate: {stepping_on: {block: {blocks: "minecraft:oak_slab"}}}} run say Test failed

      This effects any blocks with a top face lower than a full block where the player can share the same block x/z coordinates (eg. Farm land, enchanting table, snow, etc.)

      It also effects blocks such as the inside space of a door.

        1. 2024-09-28_09.51.57.png
          480 kB
          nedraw
        2. 2024-09-28_09.40.24.png
          441 kB
          nedraw
        3. 2024-09-28_09.21.23.png
          650 kB
          nedraw
        4. 2024-09-28_09.30.14.png
          442 kB
          nedraw
        5. 2024-09-30_00.35.06.png
          363 kB
          MulverineX

            Unassigned Unassigned
            MulverineX MulverineX
            Votes:
            10 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: