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

Commands executed from a book in a lectern use entity's coordinates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 19w04a, 1.16.1, 20w28a, 1.16.2 Pre-release 2, 21w03a, 1.16.5, 21w06a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands

      Description

      When executing a command from a book inside a lectern, instead of executing it in the coordinates of the lectern, it uses the coordinates of the entity reading the book, unlike when executing commands from a sign that uses the coordinates of the sign.

      This bug makes it more difficult to use the lectern for mapmakers to use it as a fixed point to calculate relative coordinates.

      To reproduce

      Steps to reproduce:

      1. Place a lectern containing a written book with a "run_command" clickEvent:
        /setblock ~ ~ ~ lectern[has_book=true]{Book:{id:written_book,Count:1,tag:{author:j_p_smith,title:MC-143001,pages:['{"clickEvent":{"action":"run_command","value":"/setblock ~ ~3 ~ stone"},"text":"Test"}']}}}
      2. Open the book on the lectern while standing a short distance away from it
      3. Click on the word "Test"
        A block of stone is placed above your head (rather than above the lectern)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gjana Gjana
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: