Mojira Archive
MC-143001

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

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:"minecraft:written_book",count:1,components:{"minecraft:written_book_content":{title:"",author:"",pages:['{"text":"Test","clickEvent":{"action":"run_command","value":"/setblock ~ ~3 ~ stone"}}']}}},Page:1} replace
  1. Open the book on the lectern while standing a short distance away from it
  2. Click on the word "Test"
    A block of stone is placed above your head (rather than above the lectern)

Unresolved

sofia

Gjana

2019-01-24, 11:11 PM

2024-12-12, 10:44 AM

8

7

Confirmed

Commands

command, lectern, writable_book, written-book

Minecraft 19w04a - 1.21.4Minecraft 19w04a, 1.16.1, 20w28a, 1.16.2 Pre-release 2, 21w03a, 1.16.5, 21w06a, 1.17.1, 1.18.2, 22w18a, 1.19.2, 24w45a, 1.21.4

-