Mojira Archive
MC-103171

Selectors in written books require player to be operator to work

The bug

Usage of selectors in books don't work, unless the player being given the book is an operator. Basically, let's say you have such a command:

/give @a written_book[written_book_content={title:"Example",author:"someone",pages:['{"selector":"@s"}']}] 1

When the command block is powered, a player who is an operator will receive a book, which on its first page will have their IGN printed. A player who is NOT an operator will receive a book with an empty first page.

Unresolved

[Mod] turbo

Piyotato

2016-06-07, 03:17 PM

2024-10-11, 02:44 PM

51

20

Confirmed

Important

Platform

Commands

Minecraft 1.9.4 - 1.21.1Minecraft 1.9.4, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.14.2 Pre-Release 2, 1.14.4, 1.15.2, 1.16.3, 1.16.5, 1.19, 1.20.6, 1.21, 1.21.1

-