-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 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
-
Confirmed
-
Commands
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:
- 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"}']}}}
- Open the book on the lectern while standing a short distance away from it
- Click on the word "Test"
→ A block of stone is placed above your head (rather than above the lectern)