-
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, 24w45a, 1.21.4
-
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:"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
- 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)