-
Bug
-
Resolution: Invalid
-
None
-
Minecraft 1.8, Minecraft 15w45a
-
None
-
Java 7 Vanilla
-
Community Consensus
The command /gamerule doTileDrops false seems not to work if executed through a written book. Here my command to give you the book, it should be right, but it apparently it even sets it to true instead. It actually runs the previous command.
give @p written_book 1 0 {title:"Commands",author:"Me",resolved:0b,pages:["{text:\"\n\n\n\n\n Commands\",color:dark_blue,bold:true}","{text:\"Gamerules\",color:blue,bold:true,extra:[{text:\"\n\n Daylight cycle\",bold:false,color:black,extra:[{text:\"\n True\",bold:true,color:green,clickEvent:{action:run_command,value:\"/gamerule doDaylightCycle true\"},extra:[{text:\" False\",bold:true,color:dark_red,clickEvent:{action:run_command,value:\"/gamerule doDaylightCycle false\"},extra:[{text:\"\n Commandblock Output\",bold:false,color:black,extra:[{text:\"\n True\",bold:true,color:green,clickEvent:{action:run_command,value:\"/gamerule commandBlockOutput true\"},extra:[{text:\" False\",bold:true,color:dark_red,clickEvent:{action:run_command,value:\"/gamerule commandBlockOutput false\"},extra:[{text:\"\n Mob Griefing\",bold:false,color:black,extra:[{text:\"\n True\",bold:true,color:green,clickEvent:{action:run_command,value:\"/gamerule mobGriefing true\"},extra:[{text:\" False\",bold:true,color:dark_red,clickEvent:{action:run_command,value:\"/gamerule mobGriefing false\"},extra:[{text:\"\n Mob Spawning\",bold:false,color:black,extra:[{text:\"\n True\",bold:true,color:green,clickEvent:{action:run_command,value:\"/gamerule doMobSpawning true\"},extra:[{text:\" False\",bold:true,color:dark_red,clickEvent:{action:run_command,value:\"/gamerule doMobSpawning false\"},extra:[{text:\"\n Mob Loot\",bold:false,color:black,extra:[{text:\"\n True\",bold:true,color:green,clickEvent:{action:run_command,value:\"/gamerule doMobLoot true\"},extra:[{text:\" False\",bold:true,color:dark_red,clickEvent:{action:run_command,value:\"/gamerule doMobLoot false\"},extra:[{text:\"\n Tile drops\",bold:false,color:black,extra:[{text:\"\n True\",bold:true,color:green,clickEvent:{action:run_command,value:\"/gamerule doTileDrops true\"},extra:[{text:\" False\",bold:true,color:dark_red,click_Event:{action:run_command,value:\"/gamerule doTileDrops false\"}}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]}"]}
the only important part is the last command, this is just to make recreation easier