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

"looking_at" predicate does not work correctly with suffocated entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.2
    • None
    • Unconfirmed
    • (Unassigned)

      I created a predicate to detect when the player is looking at a Villager with a specific tag.

      Here's how you could replicate the error:

      IMAGE 1 = Works fine when the villager is not in contact with any blocks.
      (Red circle shows that the F3 panel correctly detects that I am looking at a villager)
      (Green circle: Flame particles work only when the predicate is detected as true)

      IMAGE 2 = But, when I put a block on his head, and point anywhere in his hitbox, the predicate stops working even though I am looking at him.
      (The red circle shows that the F3 panel detects that I AM looking at the villager)
      (Green circle: no more particles. Predicate is false)

      IMAGE 3 = If the stone block is not on his head but on his body, the predicate DOES work.

      BONUS IMAGE 4 = Also, for some reason, when I look at the stone block while that stone block is on his body, the predicate is TRUE, BUT, the F3 panel doesn't detect that I'm looking at the villager.

       

        1. image1-1.png
          image1-1.png
          718 kB
        2. image2.png
          image2.png
          518 kB
        3. image3.png
          image3.png
          581 kB
        4. image4.png
          image4.png
          500 kB
        5. this_is_the_predicate.json
          0.2 kB

            Unassigned Unassigned
            Rusink Felipe
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: