Minecraft wiki entry for Box_of_Infinite_Books, associated text: When used, if the block is not on one of its chunk's edges and facing along that edge, a random written book is generated. This book can be thrown into a nether portal to create a Funky Portal.