dragnoz

JSON book code

Jun 14th, 2014
2,842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.30 KB | None | 0 0
  1. summon Item ~ ~1 ~ {Item:{id:"written_book",Count:1,tag:{resolved:0b,title:"Test Book",author:"CmdBlk17",pages:["{text:\"Hello and welcome \",color:red,extra:[{text:\"to an \",color:dark_green,extra:[{text:\"awesome \",bold:true,clickEvent:{action:run_command,value:\"say hello\"},hoverEvent:{action:show_text,value:\"Click to run a command\"}},{text:\"new world \"}]},{text:\"for books\"}]}"]}}}
  2.  
  3.  
  4. Searge Command
  5. /give @p written_book 1 0 {title:"Getting around",author:"Searge",pages:["{text:\"Welcome, \",extra:[{selector:\"@p\",color:red},{text:\"\n\nthis is your list of destinations:\n\n\"},{text:\"1. \",color:orange,extra:[{text:\"Spawn\",color:dark_green,bold:true}],hoverEvent:{action:show_text,value:\"This worlds spawn point\"},clickEvent:{action:run_command,value:\"/tp @p -305 56 169\"}},{text:\"\n\"},{text:\"2. \",color:orange,extra:[{text:\"Home\",color:dark_green}],hoverEvent:{action:show_text,value:\"Your main base\"},clickEvent:{action:run_command,value:\"/tp @p 5 56 96\"}},{text:\"\n\"},{text:\"3. \",color:orange,extra:[{text:\"Mine\",color:dark_green}],hoverEvent:{action:show_text,value:\"The old mines\"},clickEvent:{action:run_command,value:\"/tp @p 15 56 -318\"}},{text:\"\n\nPlease click one of them, \"},{selector:\"@p\",color:red}]}"]}
  6.  
  7.  
  8. /blockdata ~ ~1 ~ {Text1:"{text:\"say hi\",clickEvent:{action:run_command,value:\"/say hi\"}}",Text2:"{text:\"blockdata\",clickEvent:{action:run_command,value:\"/blockdata ~ ~ ~ {Text1:\\"foo\\",Text2:\\"foo\\",Text3:\\"{text:\\\\"say cheese\\\\",clickEvent:{action:run_command,value:\\\\"/say cheese\\\\"}}\\",Text4:\\"foo\\"}\"}}",Text3:"{text:\"say bye\",clickEvent:{action:run_command,value:\"/say bye\"}}",Text4:""}
  9.  
  10. /blockdata ~ ~1 ~ {Text1:"{text:\"Cheats must be\",color:red,clickEvent:{action:run_command,value:\"/scoreboard players set @p[r=6] book 100\"}}",Text2:"{text:\"Enabled & player\",color:red}",Text3:"{text:\"in creative. Click\"}",Text4:"{text:\"for ADMIN BOOK\"}",}
  11.  
  12. /blockdata ~ ~1 ~ {Text1:"{text:\"give player \",color:red,clickEvent:{action:run_command,value:\"/scoreboard players set @p[r=6] book 100\"}}",Text4:"{text:\"ADMIN BOOK\"}",}
  13.  
  14.  
  15.  
  16. execute @p[score_book_min=100,score_book=100] ~ ~ ~ /give @p written_book 1 0
  17. {
  18. title:"Test world commands"
  19. ,author:"Dragnoz"
  20. ,pages:
  21. ["{
  22. text:'Admin Commands \n',color:black,bold:true
  23. ,extra:[ {text:'\n 1. Kill Entities\n',color:black,clickEvent:
  24. {action:run_command,value:'/kill @e[type=!Player]'},hoverEvent:{action:show_text,value:'This will all non player entities'},bold:false}
  25. ,{text:'\n 2. Kill Items\n',color:black,clickEvent:
  26. {action:run_command,value:'/kill @e[type=Item]'},hoverEvent:{action:show_text,value:'Kill Items on the ground'},bold:false}
  27. ,{text:'\n 3. Creative Mode\n',color:black,clickEvent:
  28. {action:run_command,value:'/gamemode 1 @p'},hoverEvent:{action:show_text,value:'Set Player to Creative Mode'},bold:false}
  29. ,{text:'\n 4. Survival Mode\n',color:black,clickEvent:
  30. {action:run_command,value:'/gamemode 0 @p'},hoverEvent:{action:show_text,value:'Set Player to Survival Mode'},bold:false}
  31. ,{text:'\n 5. Mob Spawning true \n',color:black,clickEvent:
  32. {action:run_command,value:'/gamerule doMobSpawning true'},bold:false}
  33. ,{text:'\n 6. Mob Spawning false\n',color:black,clickEvent:
  34. {action:run_command,value:'/gamerule doMobSpawning false'},bold:false}
  35.  
  36.  
  37. ]}",
  38.  
  39. "{
  40. text:'Locations\n',color:black,bold:true
  41. ,extra:[ {text:'\n 1. TP to spawn\n',color:black,clickEvent:
  42. {action:run_command,value:'/tp @p 1348 7 1106 0 16'},hoverEvent:{action:show_text,value:'tp to spawn of world'},bold:false}
  43. ,{text:'\n 2. TP to Corridor\n',color:black,clickEvent:
  44. {action:run_command,value:'/tp @p 1425 4 1065'},hoverEvent:{action:show_text,value:'tp to the dark corridor'},bold:false}
  45. ,{text:'\n 3. TP to Vampire Hut\n',color:black,clickEvent:
  46. {action:run_command,value:'/tp @p 1271 67 1175 137 -5.2'},hoverEvent:{action:show_text,value:'tp to the Vampire Hut'},bold:false}
  47.  
  48. ]}",
  49. "{
  50. text:'Spawn Lazer Bats \n',color:black,bold:true
  51. ,extra:[
  52. {text:'\n Spawn Example Bat\n',color:black,clickEvent:
  53. {action:run_command,value:'/scoreboard players set @p book 6'},bold:false}
  54. ,{text:'\n 1. 10 Lazer Bats\n',color:black,clickEvent:
  55. {action:run_command,value:'/scoreboard players set @p spawnbats 10'},bold:false}
  56. ,{text:'\n 2. 20 Lazer Bats\n',color:black,clickEvent:
  57. {action:run_command,value:'/scoreboard players set @p spawnbats 20'},bold:false}
  58. ,{text:'\n 3. 50 Lazer Bats\n',color:black,clickEvent:
  59. {action:run_command,value:'/scoreboard players set @p spawnbats 50'},bold:false}
  60. ,{text:'\n 4. 100 Lazer Bats\n',color:black,clickEvent:
  61. {action:run_command,value:'/scoreboard players set @p spawnbats 100'},bold:false}
  62. ,{text:'\n 5. 500 Lazer Bats\n',color:black,clickEvent:
  63. {action:run_command,value:'/scoreboard players set @p spawnbats 500'},bold:false}
  64.  
  65. ]}",
  66.  
  67. "{
  68. text:'Hostile Laser World \n',color:black,bold:true
  69. ,extra:[
  70. {text:'\n Spawn Example Bat\n',color:black,clickEvent:
  71. {action:run_command,value:'/scoreboard players set @p book 6'},bold:false}
  72. ,{text:'\n 1. On \n',color:black,clickEvent:
  73. {action:run_command,value:'/fill 1353 5 1128 1353 5 1148 redstone_block'},bold:false}
  74. ,{text:'\n 2. Off\n',color:black,clickEvent:
  75. {action:run_command,value:'/fill 1353 5 1128 1353 5 1148 air'},bold:false}
  76.  
  77.  
  78. ]}",
  79. "{ text:'Lazer Commands \n',color:black,bold:true
  80. ,extra:[
  81. {text:'\n 1. Give Lazer\n',color:black,clickEvent:
  82. {action:run_command,value:'/scoreboard players set @p book 2'},hoverEvent:{action:show_text,value:'Gives player the Lazer'},bold:false}
  83. ,{text:'\n 2. Lazer Zombie\n',color:black,clickEvent:
  84. {action:run_command,value:'/scoreboard players set @p book 1'},hoverEvent:{action:show_text,value:'This will summon Zombie for Lazer Test'},bold:false}
  85. ,{text:'\n 3. Lazer Tower\n',color:black,clickEvent:
  86. {action:run_command,value:'/scoreboard players set @p book 3'},hoverEvent:{action:show_text,value:'Give player 5 lazer tower blocks'},bold:false}
  87.  
  88. ]}",
  89. "{
  90. text:'Vampire & Enderman Heads \n',color:black,bold:true
  91. ,extra:[
  92. {text:'\n 1. Vampire Head\n',color:black,clickEvent:
  93. {action:run_command,value:'/scoreboard players set @p book 4'},hoverEvent:{action:show_text,value:'wear this head to detect inside or outside '},bold:false}
  94. ,{text:'\n 2. Enderman Head\n',color:black,clickEvent:
  95. {action:run_command,value:'/scoreboard players set @p book 5'},hoverEvent:{action:show_text,value:'wear this head to become an enderman'},bold:false}
  96.  
  97.  
  98.  
  99.  
  100.  
  101. ]}",
  102. ]}
  103.  
  104.  
  105. ===================
  106.  
  107. /give @p written_book 1 0
  108. {
  109. title:"Testin JSON book"
  110. ,author:"Dragnoz"
  111. ,pages:
  112. ["{
  113. text:'14w25b \n',color:black,bold:true
  114. ,extra:[
  115.  
  116. ,{text:' Click me Line 1\n',color:black,clickEvent:
  117. {action:run_command,value:'/me clicked line 1'
  118. },hoverEvent:
  119. {action:show_text,value:'Will show you clicked line 1'
  120. },bold:false
  121. }
  122. ,{text:' Click me line 2\n',color:black,clickEvent:
  123. {action:run_command,value:'/me clicked line 2'
  124. },hoverEvent:
  125. {action:show_text,value:'Will show you clicked line 2'
  126. },bold:false
  127. }
  128.  
  129.  
  130. ]}",
  131.  
  132.  
  133. ]}
  134. /give @p written_book 1 0 {title:"Testing @p",author:"DRagnoz",pages:["{text:\"You are, \",extra:[{selector:\"@p\",color:red}]}"]}
  135.  
  136. /give @p written_book 1 0 {title:"Getting around",author:"Searge",pages:["{text:\"Welcome, \",extra:[{selector:\"@p\",color:red},{text:\"\n\nthis is your list of destinations:\n\n\"},{text:\"1. \",color:orange,extra:[{text:\"Spawn\",color:dark_green,bold:true}],hoverEvent:{action:show_text,value:\"This worlds spawn point\"},clickEvent:{action:run_command,value:\"/tp @p -305 56 169\"}},{text:\"\n\"},{text:\"2. \",color:orange,extra:[{text:\"Home\",color:dark_green}],hoverEvent:{action:show_text,value:\"Your main base\"},clickEvent:{action:run_command,value:\"/tp @p 5 56 96\"}},{text:\"\n\"},{text:\"3. \",color:orange,extra:[{text:\"Mine\",color:dark_green}],hoverEvent:{action:show_text,value:\"The old mines\"},clickEvent:{action:run_command,value:\"/tp @p 15 56 -318\"}},{text:\"\n\nPlease click one of them, \"},{selector:\"@p\",color:red}]}"]}
  137.  
  138.  
  139. Test: {text:' Click me Line 1\n',color:black,bold:false}
  140. Line break: {text:\"\n\"}
  141. Player Selector: {selector:\"@p\",color:red}
  142.  
  143. /summon Squid ~ ~1 ~ {CustomName:\"Zombie\",Riding:{id:\"Zombie\",Equipment:[{},{},{},{},{id:leather_helmet}]},Air:1000000,ActiveEffects:[{Id:14,Duration:999999,Ambient:1}],Attributes:[{Name:generic.maxHealth,Base:1}]}
  144.  
  145.  
  146. /summon Squid ~ ~1 ~ {CustomName:"Zombie",Riding:{id:"Zombie",Equipment:[{},{},{},{},{id:leather_helmet}]},Air:1000000,ActiveEffects:[{Id:14,Duration:999999,Ambient:1}],Attributes:[{Name:generic.maxHealth,Base:1}]}
  147.  
  148.  
  149.  
  150.  
  151. /give @a written_book 1 0
  152. {title:"Basic Book",author:"Dragnoz",
  153. pages:["{text:\"Admin Commands\",color:red,
  154. extra:[{text:\"\n\n\"},
  155. {text:\"\Gamemode 0 \",color:black,clickEvent:{action:run_command,value:\"/gamemode 0\"}},
  156. {text:\"\| 1 \",color:black,clickEvent:{action:run_command,value:\"/gamemode 1\"}},
  157. {text:\"\| 2 \",color:black,clickEvent:{action:run_command,value:\"/gamemode 2\"}},
  158. {text:\"\| 3 \",color:black,clickEvent:{action:run_command,value:\"/gamemode 3\"}},
  159. {text:\"\n\n\"},
  160. {text:\"\Kill Entities\",color:black,clickEvent:{action:run_command,value:\"/kill @e[type=!Player]\"}},
  161. {text:\"\n\n\"},
  162. {text:\"\Time set: Day \",color:black,clickEvent:{action:run_command,value:\"/time set day\"}},
  163. {text:\"\| Night \",color:black,clickEvent:{action:run_command,value:\"/time set night\"}}
  164.  
  165.  
  166.  
  167. ]}",
  168.  
  169. "{text:\"Locations\",color:red,bold:false,
  170. extra:[
  171. {text:\"\n\n\"},
  172. {text:\"\TP to Commands \",color:black,clickEvent:{action:run_command,value:\"/tp @p -101 61 -145 -2 23\"}},{text:\"\n\n\"},
  173. {text:\"\TP to Start Area \",color:black,clickEvent:{action:run_command,value:\"/tp @p -385 69 -475 126 0.8\"}}
  174.  
  175.  
  176. ]}"]}
  177.  
  178.  
  179.  
  180. /tp @p -385 69 -475 126 0.8
  181. ======================================================
Advertisement
Add Comment
Please, Sign In to add comment