ProfesseurCraft

Commandes NBT 1.8

Sep 2nd, 2014
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. ====================================================================================================
  2. Envoi un livre avec des commandes executables
  3. ====================================================================================================
  4.  
  5. /give @a minecraft:written_book 1 0
  6. {
  7. title:"Commandes",
  8. author:"Prof",
  9. pages:
  10. [
  11. "{
  12. text:\"\",
  13. extra:
  14. [
  15. {
  16.  
  17. text:\"☂ Mettre le temps au beau fixe.\n\n\",
  18. color:dark_aqua,
  19. clickEvent:
  20. {
  21. action:run_command,
  22. value:\"/weather clear\"
  23. }
  24. },
  25. {
  26. text:\"☀ Mettre le jour.\n\",
  27. color:gold,
  28. clickEvent:
  29. {
  30. action:run_command,
  31. value:\"/time set 6000\"
  32. }
  33. },
  34. {
  35. text:\"☾ Mettre la nuit.\n\n\",
  36. color:black,
  37. clickEvent:
  38. {
  39. action:run_command,
  40. value:\"/time set 18000\"
  41. }
  42. },
  43. {
  44. text:\"✺ Etincelle cheminée : \n\",
  45. color:gold,
  46. extra:
  47. [
  48. {
  49. text:\"On\",
  50. color:green,
  51. clickEvent:
  52. {
  53. action:run_command,
  54. value:\"/setblock 229 66 370 minecraft:air\"
  55. }
  56. },
  57. {
  58. text:\" | \",
  59. color:gold
  60. },
  61. {
  62. text:\"Off\n\n\",
  63. color:red,
  64. clickEvent:
  65. {
  66. action:run_command,
  67. value:\"/setblock 229 66 370 minecraft:redstone_block\"
  68. }
  69. }
  70. ]
  71. },
  72. {
  73. text:\"⌘ Pales du moulin : \n\",
  74. color:gold,
  75. extra:
  76. [
  77. {
  78. text:\"On\",
  79. color:green,
  80. clickEvent:
  81. {
  82. action:run_command,
  83. value:\"/setblock 270 54 385 minecraft:air\"
  84. }
  85. },
  86. {
  87. text:\" | \",
  88. color:gold
  89. },
  90. {
  91. text:\"Off\n\n\",
  92. color:red,
  93. clickEvent:
  94. {
  95. action:run_command,
  96. value:\"/setblock 270 54 385 minecraft:redstone_block\"
  97. }
  98. }
  99. ]
  100. },
  101. {
  102. text:\"⌘ Arc en ciel Beacon : \n\",
  103. color:gold,
  104. extra:
  105. [
  106. {
  107. text:\"On\",
  108. color:green,
  109. clickEvent:
  110. {
  111. action:run_command,
  112. value:\"/fill 310 88 367 310 88 414 minecraft:air 0 replace\"
  113. }
  114. },
  115. {
  116. text:\" | \",
  117. color:gold
  118. },
  119. {
  120. text:\"Off\",
  121. color:red,
  122. clickEvent:
  123. {
  124. action:run_command,
  125. value:\"/fill 310 88 367 310 88 414 minecraft:iron_block 0 replace\"
  126. }
  127. }
  128. ]
  129. }
  130. ]
  131. }",
  132. "{
  133. text:\"\",
  134. extra:[
  135. {
  136. text:\"➤ Se téléporter au spawn \n\n\",
  137. color:green,
  138. clickEvent:
  139. {
  140. action:run_command,
  141. value:\"/tp ProfesseurCraft 230 72 391\"
  142. }
  143. },
  144. {
  145. text:\"➤ Se téléporter au canyon \n\n\",
  146. color:gold,
  147. clickEvent:
  148. {
  149. action:run_command,
  150. value:\"/tp ProfesseurCraft 6900 63 795\"
  151. }
  152. }
  153. ]
  154. }",
  155. "{
  156. text:\"\",
  157. extra:[
  158. {
  159. text:\"➤ Définir le centre du monde \n\n\",
  160. color:dark_aqua,
  161. clickEvent:
  162. {
  163. action:run_command,
  164. value:\"/worldborder center ~ ~\"
  165. }
  166. },
  167. {
  168. text:\"➤ Définir la taille de la bordure à 100 cubes de diamètre\n\n\",
  169. color:dark_aqua,
  170. clickEvent:
  171. {
  172. action:run_command,
  173. value:\"/worldborder set 100\"
  174. }
  175. },
  176. {
  177. text:\"➤ Réinitialiser la taille de la bordure \n\n\",
  178. color:dark_aqua,
  179. clickEvent:
  180. {
  181. action:run_command,
  182. value:\"/worldborder set 60000000\"
  183. }
  184. }
  185. ]
  186. }"
  187. ]
  188. }
  189.  
  190. ====================================================================================================
  191. Simuler un holograme coloré grâce aux NBTs (La coloration se fait avec le "§", il est donc impératif
  192. d'envoyer la commande depuis l'extérieur du jeu; vous pouvez utiliser MCedit ou alors via le WEB en
  193. utilisant le RCON - voir mes vidéos sur le sujet -)
  194. ====================================================================================================
  195.  
  196. /summon ArmorStand 224 76 408
  197. {
  198. Equipment:
  199. [
  200. {},
  201. {},
  202. {},
  203. {},
  204. {id:"hay_block"}
  205. ],
  206. CustomName:"§c§l===== Commerce du §eProf §c§l! =====",
  207. CustomNameVisible:1,
  208. Invisible:1,
  209. NoGravity:1,
  210. Small:1,
  211. Pose:
  212. {
  213. Head:[35f, -35f, 35f]
  214. },
  215. Rotation: [180.0f,0.0f]
  216. }
  217.  
  218. ====================================================================================================
  219. Placement d'un item qui ne disparaît jamais et qui n'est pas récupérable
  220. ====================================================================================================
  221.  
  222. /summon Item ~ ~1 ~-1
  223. {
  224. Item:
  225. {
  226. id:Prismarine_Shard,
  227. Count:1
  228. },
  229. PickupDelay:32767,
  230. Age:-32768
  231. }
  232.  
  233. ========================================================
  234. Placement d'un panneau coloré
  235. ========================================================
  236.  
  237. /setblock ~ ~ ~1 minecraft:wall_sign 8 replace
  238. {
  239. Text1:"
  240. {
  241. text:\"=====================\",
  242. color:gold,
  243. bold:true
  244. }",
  245. Text2:"
  246. {
  247. text:\"Pelle en fer\",
  248. color:dark_aqua,
  249. bold:true
  250. }",
  251. Text3:"
  252. {
  253. text:\"30 Euros\",
  254. color:dark_green,
  255. bold:true
  256. }",
  257. Text4:"
  258. {
  259. text:\"=====================\",
  260. color:gold,
  261. bold:true
  262. }"
  263. }
  264.  
  265. ========================================================
  266. Porte armure en position chevalier :)
  267. ========================================================
  268.  
  269. /summon ArmorStand ~-1 ~ ~
  270. {
  271. ShowArms:1,
  272. Pose:
  273. {
  274. LeftArm:[270f,30f,340f],
  275. RightArm:[80f,150f,355f]
  276. },
  277. Rotation:[-90f]
  278. }
Advertisement
Add Comment
Please, Sign In to add comment