Kingmeng
就像盘灵古域rpg的任务流程那样
就是怎么把有字的书弄进村民的交易里

⊙v⊙
问得真婉转...不就是怎么生成带书交易的村民么首先,点进这个网站(或许要翻墙)
编辑完后generate the command
下面出来的命令提取{ }内的部分

  1. /give @p written_book 1 0 {pages:["{"text":"EAT BIE"}"],title:TESTING,author:OvQuee,display:{Lore:["最佳最佳最佳~"]}}
  2. 提取以下
  3. pages:["{"text":"EAT BIE"}"],title:TESTING,author:OvQuee,display:{Lore:["最佳最佳最佳~"]}
复制代码

然后这个是基本村民框架
  1. /summon Villager ~ ~1 ~
  2. {Invulnerable:1,Profession:2,Career:1,CareerLevel:2,
  3. Offers:{Recipes:[
  4.         {buy:{id:apple,Count:1},
  5.         sell:{id:written_book,tag:{上面保留的放到这里},Count:1}
  6.         }
  7. ]}
  8. }
复制代码
完工后就是这样
  1. /summon Villager ~ ~1 ~
  2. {Invulnerable:1,Profession:2,Career:1,CareerLevel:2,
  3. Offers:{Recipes:[
  4.         {buy:{id:apple,Count:1},
  5.         sell:{id:written_book,tag:{pages:["{"text":"EAT BIE"}"],title:TESTING,author:OvQuee,display:{Lore:["最佳最佳最佳~"]}},Count:1}
  6.         }
  7. ]}
  8. }
复制代码
以上1.8适用~(1.9格式变严了,我还没仔细看,不过这些应该得改)





然后稍微花点心思hhh
  1. /summon Villager ~ ~1 ~
  2. {Invulnerable:1,CustomName:"最佳最佳~",CustomNameVisible:1,Profession:2,Career:1,CareerLevel:4,
  3. Offers:{Recipes:[
  4.         {maxUses:999999,uses:-999999,
  5.         buy:{id:diamond,Count:64},
  6.         buyB:{id:lit_pumpkin,Count:64},
  7.         sell:{id:written_book,tag:{author:"OvQuee",
  8. title:"萌萌 哒小本子",
  9. pages:[
  10. 1:"
  11. {text:"Once you are using this cbbook, we consider that you understand and agree the author of this book is the best in the universe.",bold:true,color:white,
  12. extra:[
  13. {text:"\n\n\n\n\n  For shability and zhuangbility. ",bold:true,color:black}
  14. ]}",

  15. 2:"
  16. {text:'目录',bold:true,
  17. extra:[
  18. {text:'\n\n常用药水',bold:true,color:blue,clickEvent:{action:change_page,value:3}},
  19. {text:'\n物品给予',bold:true,color:gold,clickEvent:{action:change_page,value:4}},
  20. {text:'\n模式&难度',bold:true,color:black,clickEvent:{action:change_page,value:5}},
  21. {text:'\n召唤',bold:true,color:dark_green,clickEvent:{action:change_page,value:6}},
  22. {text:'\n游戏规则',bold:true,color:gray,clickEvent:{action:change_page,value:7}},
  23. {text:'\n一键崩服',bold:true,color:red,clickEvent:{action:run_command,value:'/kill @p'}},
  24. {text:'\n时间&天气',bold:true,color:dark_aqua,clickEvent:{action:change_page,value:8}},
  25. {text:'\n\n其他',bold:true,color:dark_blue,clickEvent:{action:change_page,value:9}}
  26. ]}",

  27. 3:"
  28. {text:'常用药水  ∞',bold:true,color:blue,
  29. extra:[
  30. {text:'   目录',clickEvent:{action:change_page,value:2}},
  31. {text:'\n\n速度III',clickEvent:{action:run_command,value:'/effect @p 1 1000000 2 true'}},
  32. {text:'\n抗性V',clickEvent:{action:run_command,value:'/effect @p 11 1000000 4 true'}},
  33. {text:'\n隐身I',clickEvent:{action:run_command,value:'/effect @p 14 1000000 0 true'}},
  34. {text:'\n夜视I',clickEvent:{action:run_command,value:'/effect @p 16 1000000 0 true'}},
  35. {text:'\n失明I',clickEvent:{action:run_command,value:'/effect @p 15 1000000 0 true'}},
  36. {text:'\n跳跃III',clickEvent:{action:run_command,value:'/effect @p 8 1000000 2 true'}},
  37. {text:'\n\n清除',color:black,clickEvent:{action:run_command,value:'/effect @p clear'}}
  38. ]}",

  39. 4:"
  40. {text:'物品给予',bold:true,color:gold,
  41. extra:[
  42. {text:'   目录',clickEvent:{action:change_page,value:2}},
  43. {text:'\n\n命令方块',clickEvent:{action:run_command,value:'/give @p command_block'}},
  44. {text:'\n屏障',clickEvent:{action:run_command,value:'/give @p barrier'}},
  45. {text:'\n龙蛋',clickEvent:{action:run_command,value:'/give @p dragon_egg'}},
  46. {text:'\n水跃鱼',clickEvent:{action:run_command,value:'/give @p fish 1 3 {HideFlags:1,ench:[{id:19,lvl:25}],display:{Name:水跃鱼,Lore:[一路走好]}}'}}
  47. ]}",

  48. 5:"
  49. {text:'模式&难度',bold:true,color:black,
  50. extra:[
  51. {text:'   目录',clickEvent:{action:change_page,value:2}},
  52. {text:'\n\n生存',clickEvent:{action:run_command,value:'/gamemode 0 @p'}},
  53. {text:'\n创造',clickEvent:{action:run_command,value:'/gamemode 1 @p'}},
  54. {text:'\n旁观',clickEvent:{action:run_command,value:'/gamemode 3 @p'}},
  55. {text:'\n冒险',clickEvent:{action:run_command,value:'/gamemode 2 @p'}},
  56. {text:'\n\n和平',clickEvent:{action:run_command,value:'/difficulty 0'}},
  57. {text:'\n简单',clickEvent:{action:run_command,value:'/difficulty 1'}},
  58. {text:'\n普通',clickEvent:{action:run_command,value:'/difficulty 2'}},
  59. {text:'\n困难',clickEvent:{action:run_command,value:'/difficulty 3'}}
  60. ]}",

  61. 6:"
  62. {text:'召唤',bold:true,color:dark_green,
  63. extra:[
  64. {text:'   坐标~ ~ ~'},
  65. {text:'   目录',clickEvent:{action:change_page,value:2}},
  66. {text:'\n\n末影水晶',clickEvent:{action:run_command,value:'/summon EnderCrystal ~ ~ ~'}},
  67. {text:'\n充能JJ',clickEvent:{action:run_command,value:'/summon Creeper ~ ~ ~ {powered:1,ExplosionRadius:20,Fuse:20}'}},
  68. {text:'\n史莱姆大号30',clickEvent:{action:run_command,value:'/summon Slime ~ ~ ~ {Size:30}'}},
  69. {text:'\n命令矿车',clickEvent:{action:run_command,value:'/summon MinecartCommandBlock ~ ~ ~'}},
  70. {text:'\n永恒之星',clickEvent:{action:run_command,value:'/summon Item ~ ~ ~ {Item:{id:nether_star,Count:1},Age:-32768,PickupDelay:32767}'}}
  71. ]}",

  72. 7:"
  73. {text:'游戏规则GAMERULE',bold:true,color:gray,
  74. extra:[
  75. {text:'   目录',clickEvent:{action:change_page,value:2}},
  76. {text:'\n\n命令反馈 '},
  77. {text:'[TRUE]',clickEvent:{action:run_command,value:'/gamerule sendCommandFeedback true'}},
  78. {text:' '},
  79. {text:'[FALSE]',clickEvent:{action:run_command,value:'/gamerule sendCommandFeedback false'}},
  80. {text:'\n火势蔓延 '},
  81. {text:'[TRUE]',clickEvent:{action:run_command,value:'/gamerule doFireTick true'}},
  82. {text:' '},
  83. {text:'[FALSE]',clickEvent:{action:run_command,value:'/gamerule doFireTick false'}},       
  84. {text:'\n自然生成  '},
  85. {text:'[TRUE]',clickEvent:{action:run_command,value:'/gamerule doMobSpawning true'}},
  86. {text:' '},
  87. {text:'[FALSE]',clickEvent:{action:run_command,value:'/gamerule doMobSpawning false'}},
  88. {text:'\n方块掉落  '},
  89. {text:'[TRUE]',clickEvent:{action:run_command,value:'/gamerule doTileDrops true'}},
  90. {text:' '},
  91. {text:'[FALSE]',clickEvent:{action:run_command,value:'/gamerule doTileDrops false'}},
  92. {text:'\n背包保存  '},
  93. {text:'[TRUE]',clickEvent:{action:run_command,value:'/gamerule keepInventory true'}},
  94. {text:' '},
  95. {text:'[FALSE]',clickEvent:{action:run_command,value:'/gamerule keepInventory false'}},
  96. {text:'\n生物小偷  '},
  97. {text:'[TRUE]',clickEvent:{action:run_command,value:'/gamerule mobGriefing true'}},
  98. {text:' '},
  99. {text:'[FALSE]',clickEvent:{action:run_command,value:'/gamerule mobGriefing false'}},
  100. {text:'\n生物掉落物  '},
  101. {text:'\n[TRUE]',clickEvent:{action:run_command,value:'/gamerule doMobLoot true'}},
  102. {text:' '},
  103. {text:'[FALSE]',clickEvent:{action:run_command,value:'/gamerule doMobLoot false'}}
  104. ]}",

  105. 8:"
  106. {text:'时间&天气',bold:true,color:dark_aqua,
  107. extra:[
  108. {text:'   目录',clickEvent:{action:change_page,value:2}},
  109. {text:'\n\nDay',clickEvent:{action:run_command,value:'/time set day'}},
  110. {text:'    Night',clickEvent:{action:run_command,value:'/time set night'}},
  111. {text:'\n晚霞',clickEvent:{action:run_command,value:'/time set 12345'}},
  112. {text:'\n+700',clickEvent:{action:run_command,value:'/time add 700'}},
  113. {text:'\n+1500',clickEvent:{action:run_command,value:'/time add 1500'}},
  114. {text:'\n+4000',clickEvent:{action:run_command,value:'/time add 4000'}},
  115. {text:'\n\n晴空',clickEvent:{action:run_command,value:'/weather clear'}},
  116. {text:'    下雨',clickEvent:{action:run_command,value:'/weather rain'}},
  117. {text:'\n雷雨1000000',clickEvent:{action:run_command,value:'/weather thunder 1000000'}},
  118. {text:'\n\n晴天←→雷/雨',clickEvent:{action:run_command,value:'/toggledownfall'}}
  119. ]}",

  120. 9:"
  121. {text:'其他',bold:true,color:dark_blue,
  122. extra:[
  123. {text:'   目录',clickEvent:{action:change_page,value:2}},
  124. {text:'\n\n特殊方块放置命令'},
  125. {text:'\n\n/setblock x y z ID value replace'},
  126. {text:'\n\n/fill x1 y1 z1 x2 y2 z2 ID value replace'}
  127. ]}",

  128. 10:"
  129. {text:'四面蘑菇块',bold:true,color:dark_blue,
  130. extra:[
  131. {text:'\nred_mushroom_block 14~15'},
  132. {text:'\n\n四面原木'},
  133. {text:'\nlog 12~15'},
  134. {text:'\nlog2 12~13'},
  135. {text:'\n\n四面半砖'},
  136. {text:'\ndouble_stone_slab 8,9'},
  137. {text:'\ndouble_stone_slab2 8'},
  138. {text:'\n\n床'},
  139. {text:'\nbed 1~3'}
  140. ]}",

  141. 11:"
  142. {text:'其他II',bold:true,
  143. extra:[
  144. {text:'   目录',clickEvent:{action:change_page,value:2}},
  145. {text:'\n\n\n\n\n\n\n\n\n待补充...'},
  146. {text:'\n          11/11/2015'}
  147. ]}"

  148. ]},Count:1}
  149.         }
  150. ]}
  151. }
复制代码




第一页 上一页 下一页 最后一页