Advertisement
ShadowofElements

Name

Sep 2nd, 2014
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. I have been trying to summon a book with text that when hovered over, would show an item. I have gotten it to work for the most part. Here is the command that works:
  2. give @p minecraft:written_book 1 0 {author:"",title:"",pages:["{text:\"Hover.\",hoverEvent:{action:show_item,value:\"{id:minecraft:stone,Damage:0,Count:1,tag:{display:{Lore:[\Line 2\,\Line 3\,\Line 4\]}}}\"}}"]}
  3. When I try to add a custom name to the item, but nothing works. Here is what I tried:
  4. give @p minecraft:written_book 1 0 {author:"",title:"",pages:["{text:\"Hover.\",hoverEvent:{action:show_item,value:\"{id:minecraft:stone,Damage:0,Count:1,tag:{display:{Name:"Line 1",Lore:[\Line 2\,\Line 3\,\Line 4\]}}}\"}}"]}
  5. The bold part is what I added. This yields an "unexpected token: L" from the command block. Does anyone know how to get this to work?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement