-
Bug
-
Resolution: Unresolved
-
None
-
1.16.3, 1.17.1, 1.20.6, 1.21
-
None
-
Confirmed
-
Commands
The bug
As mentioned in the title, non-op players can run op commands from signs (using "run_command" "clickEvent", MC-59653), but not from written books (also using the "run_command" "clickEvent" mechanic). If that's not a bug, it's definitely inconsistent.
How to reproduce
- Create a new world with cheats disabled
- Open the world to LAN with cheats enabled
- Give yourself a written book with a "run_command" clickEvent:
/give @s written_book[written_book_content={title:"MC-201807",author:"Author",pages:['{"text":"Test","clickEvent":{"action":"run_command","value":"/give @s stone"}}']}] 1
- Close and reopen the world
- Open the book and click on the word "Test"
→ The command fails (you are not given a block of stone) - Open the world to LAN again with cheats enabled
- Open the book and click on the word "Test"
→ The command runs successfully (you are given a block of stone)