Zeldaboy111

Skript #138

Apr 3rd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.83 KB | None | 0 0
  1. on enable:
  2. set {cw::title} to "&8[&eCraftWars&8]&7" #Default: "&8[&eCraftWars&8]&7"
  3.  
  4.  
  5. command /craftwars [<text>] [<text>] [<text>]:
  6. aliases: cw
  7. trigger:
  8. if player has permission "craftwars.*":
  9. if arg 1 is "help":
  10. if arg 2 is not set:
  11. execute player command "/cw help 1"
  12. stop
  13.  
  14. if arg 2 is "1":
  15. send "&8________[&eCraftWars&8]________"
  16. json("%player%", "&8/craftwars help||ttp:&9Krijg de help pagina||cmd:/cw help")
  17. json("%player%", "&8/craftwars shop||ttp:&9Ga naar de shop||cmd:/cw shop")
  18. send "&8________[&ePag: 1/1&8]________"
  19. stop
  20.  
  21. if arg 1 is "shop":
  22. openShop(player, "engineer", "main")
  23. stop
  24.  
  25.  
  26. else:
  27. send "%{cw::title}% Dit is geen geldig argument, doe /craftwars help."
  28. stop
  29. #else
  30.  
  31.  
  32.  
  33. #Machine:
  34.  
  35. on rightclick:
  36. if player is holding a book named "&3Dirt Machine" with lore "&8Plaats deze om een dirt machine te maken.":
  37.  
  38. set {_world} to world of player
  39.  
  40. if player's facing is north:
  41.  
  42.  
  43. set {_fblock.x2} to targeted block of player's x-coordinate
  44. set {_fblock.y2} to targeted block of player's y-coordinate+1
  45. set {_fblock.z2} to targeted block of player's z-coordinate-1
  46.  
  47. set {_fblock.x3} to targeted block of player's x-coordinate
  48. set {_fblock.y3} to targeted block of player's y-coordinate+1
  49. set {_fblock.z3} to targeted block of player's z-coordinate-1
  50.  
  51.  
  52. if player's facing is east:
  53. set {_fblock.x2} to targeted block of player's x-coordinate+1
  54. set {_fblock.y2} to targeted block of player's y-coordinate+1
  55. set {_fblock.z2} to targeted block of player's z-coordinate
  56.  
  57.  
  58. if player's facing is south:
  59. #Belt
  60.  
  61. set {_fblock.x1} to targeted block of player's x-coordinate
  62. set {_fblock.y1} to targeted block of player's y-coordinate+1
  63. set {_fblock.z1} to targeted block of player's z-coordinate
  64.  
  65. set {_fblock.x2} to targeted block of player's x-coordinate
  66. set {_fblock.y2} to targeted block of player's y-coordinate+1
  67. set {_fblock.z2} to targeted block of player's z-coordinate+1
  68.  
  69. set {_fblock.x3} to targeted block of player's x-coordinate
  70. set {_fblock.y3} to targeted block of player's y-coordinate+1
  71. set {_fblock.z3} to targeted block of player's z-coordinate+2
  72.  
  73. set {_fblock.x4} to targeted block of player's x-coordinate
  74. set {_fblock.y4} to targeted block of player's y-coordinate+1
  75. set {_fblock.z4} to targeted block of player's z-coordinate+3
  76.  
  77. set {_fblock.x5} to targeted block of player's x-coordinate
  78. set {_fblock.y5} to targeted block of player's y-coordinate+1
  79. set {_fblock.z5} to targeted block of player's z-coordinate+4
  80.  
  81. set {_fblock.x6} to targeted block of player's x-coordinate
  82. set {_fblock.y6} to targeted block of player's y-coordinate+1
  83. set {_fblock.z6} to targeted block of player's z-coordinate+5
  84.  
  85. set {_fblock.x7} to targeted block of player's x-coordinate
  86. set {_fblock.y7} to targeted block of player's y-coordinate+1
  87. set {_fblock.z7} to targeted block of player's z-coordinate+6
  88.  
  89.  
  90. #Walls
  91. set {_fblock.x8} to targeted block of player's x-coordinate+1
  92. set {_fblock.y8} to targeted block of player's y-coordinate+1
  93. set {_fblock.z8} to targeted block of player's z-coordinate
  94.  
  95. set {_fblock.x9} to targeted block of player's x-coordinate-1
  96. set {_fblock.y9} to targeted block of player's y-coordinate+1
  97. set {_fblock.z9} to targeted block of player's z-coordinate
  98.  
  99. set {_fblock.x10} to targeted block of player's x-coordinate+1
  100. set {_fblock.y10} to targeted block of player's y-coordinate+1
  101. set {_fblock.z10} to targeted block of player's z-coordinate+1
  102.  
  103. set {_fblock.x11} to targeted block of player's x-coordinate+1
  104. set {_fblock.y11} to targeted block of player's y-coordinate+1
  105. set {_fblock.z11} to targeted block of player's z-coordinate+2
  106.  
  107. set {_fblock.x12} to targeted block of player's x-coordinate+1
  108. set {_fblock.y12} to targeted block of player's y-coordinate+1
  109. set {_fblock.z12} to targeted block of player's z-coordinate+3
  110.  
  111. set {_fblock.x13} to targeted block of player's x-coordinate+1
  112. set {_fblock.y13} to targeted block of player's y-coordinate+1
  113. set {_fblock.z13} to targeted block of player's z-coordinate+4
  114.  
  115. set {_fblock.x14} to targeted block of player's x-coordinate+1
  116. set {_fblock.y14} to targeted block of player's y-coordinate+1
  117. set {_fblock.z14} to targeted block of player's z-coordinate+5
  118.  
  119. set {_fblock.x15} to targeted block of player's x-coordinate+1
  120. set {_fblock.y15} to targeted block of player's y-coordinate+1
  121. set {_fblock.z15} to targeted block of player's z-coordinate+6
  122.  
  123. set {_fblock.x16} to targeted block of player's x-coordinate-1
  124. set {_fblock.y16} to targeted block of player's y-coordinate+1
  125. set {_fblock.z16} to targeted block of player's z-coordinate
  126.  
  127. set {_fblock.x17} to targeted block of player's x-coordinate+1
  128. set {_fblock.y17} to targeted block of player's y-coordinate+1
  129. set {_fblock.z17} to targeted block of player's z-coordinate
  130.  
  131. set {_fblock.x18} to targeted block of player's x-coordinate-1
  132. set {_fblock.y18} to targeted block of player's y-coordinate+1
  133. set {_fblock.z18} to targeted block of player's z-coordinate
  134.  
  135. set {_fblock.x19} to targeted block of player's x-coordinate-1
  136. set {_fblock.y19} to targeted block of player's y-coordinate+1
  137. set {_fblock.z19} to targeted block of player's z-coordinate+1
  138.  
  139. set {_fblock.x20} to targeted block of player's x-coordinate-1
  140. set {_fblock.y20} to targeted block of player's y-coordinate+1
  141. set {_fblock.z20} to targeted block of player's z-coordinate+2
  142.  
  143. set {_fblock.x21} to targeted block of player's x-coordinate-1
  144. set {_fblock.y21} to targeted block of player's y-coordinate+1
  145. set {_fblock.z21} to targeted block of player's z-coordinate+3
  146.  
  147. set {_fblock.x22} to targeted block of player's x-coordinate-1
  148. set {_fblock.y22} to targeted block of player's y-coordinate+1
  149. set {_fblock.z22} to targeted block of player's z-coordinate+4
  150.  
  151. set {_fblock.x23} to targeted block of player's x-coordinate-1
  152. set {_fblock.y23} to targeted block of player's y-coordinate+1
  153. set {_fblock.z23} to targeted block of player's z-coordinate+5
  154.  
  155. set {_fblock.x24} to targeted block of player's x-coordinate-1
  156. set {_fblock.y24} to targeted block of player's y-coordinate+1
  157. set {_fblock.z24} to targeted block of player's z-coordinate+6
  158.  
  159. set {_fblock.x25} to targeted block of player's x-coordinate+1
  160. set {_fblock.y25} to targeted block of player's y-coordinate+2
  161. set {_fblock.z25} to targeted block of player's z-coordinate
  162.  
  163. set {_fblock.x26} to targeted block of player's x-coordinate+1
  164. set {_fblock.y26} to targeted block of player's y-coordinate+2
  165. set {_fblock.z26} to targeted block of player's z-coordinate+1
  166.  
  167. set {_fblock.x27} to targeted block of player's x-coordinate+1
  168. set {_fblock.y27} to targeted block of player's y-coordinate+2
  169. set {_fblock.z27} to targeted block of player's z-coordinate+2
  170.  
  171. set {_fblock.x28} to targeted block of player's x-coordinate+1
  172. set {_fblock.y28} to targeted block of player's y-coordinate+2
  173. set {_fblock.z28} to targeted block of player's z-coordinate+3
  174.  
  175. set {_fblock.x29} to targeted block of player's x-coordinate+1
  176. set {_fblock.y29} to targeted block of player's y-coordinate+2
  177. set {_fblock.z29} to targeted block of player's z-coordinate+4
  178.  
  179. set {_fblock.x30} to targeted block of player's x-coordinate+1
  180. set {_fblock.y30} to targeted block of player's y-coordinate+2
  181. set {_fblock.z30} to targeted block of player's z-coordinate+5
  182.  
  183. set {_fblock.x31} to targeted block of player's x-coordinate+1
  184. set {_fblock.y31} to targeted block of player's y-coordinate+2
  185. set {_fblock.z31} to targeted block of player's z-coordinate+6
  186.  
  187. set {_fblock.x32} to targeted block of player's x-coordinate-1
  188. set {_fblock.y32} to targeted block of player's y-coordinate+2
  189. set {_fblock.z32} to targeted block of player's z-coordinate
  190.  
  191. set {_fblock.x33} to targeted block of player's x-coordinate-1
  192. set {_fblock.y33} to targeted block of player's y-coordinate+2
  193. set {_fblock.z33} to targeted block of player's z-coordinate+1
  194.  
  195. set {_fblock.x34} to targeted block of player's x-coordinate-1
  196. set {_fblock.y34} to targeted block of player's y-coordinate+2
  197. set {_fblock.z34} to targeted block of player's z-coordinate+2
  198.  
  199. set {_fblock.x35} to targeted block of player's x-coordinate-1
  200. set {_fblock.y35} to targeted block of player's y-coordinate+2
  201. set {_fblock.z35} to targeted block of player's z-coordinate+3
  202.  
  203. set {_fblock.x36} to targeted block of player's x-coordinate-1
  204. set {_fblock.y36} to targeted block of player's y-coordinate+2
  205. set {_fblock.z36} to targeted block of player's z-coordinate+4
  206.  
  207. set {_fblock.x37} to targeted block of player's x-coordinate-1
  208. set {_fblock.y37} to targeted block of player's y-coordinate+2
  209. set {_fblock.z37} to targeted block of player's z-coordinate+5
  210.  
  211. set {_fblock.x38} to targeted block of player's x-coordinate-1
  212. set {_fblock.y38} to targeted block of player's y-coordinate+2
  213. set {_fblock.z38} to targeted block of player's z-coordinate+6
  214.  
  215. #Glass
  216. set {_fblock.x39} to targeted block of player's x-coordinate
  217. set {_fblock.y39} to targeted block of player's y-coordinate+2
  218. set {_fblock.z39} to targeted block of player's z-coordinate+4
  219.  
  220. set {_fblock.x40} to targeted block of player's x-coordinate
  221. set {_fblock.y40} to targeted block of player's y-coordinate+2
  222. set {_fblock.z40} to targeted block of player's z-coordinate+2
  223.  
  224. #Roof
  225.  
  226. set {_fblock.x41} to targeted block of player's x-coordinate
  227. set {_fblock.y41} to targeted block of player's y-coordinate+3
  228. set {_fblock.z41} to targeted block of player's z-coordinate+2
  229.  
  230. set {_fblock.x42} to targeted block of player's x-coordinate+1
  231. set {_fblock.y42} to targeted block of player's y-coordinate+3
  232. set {_fblock.z42} to targeted block of player's z-coordinate+3
  233.  
  234. set {_fblock.x43} to targeted block of player's x-coordinate
  235. set {_fblock.y43} to targeted block of player's y-coordinate+3
  236. set {_fblock.z43} to targeted block of player's z-coordinate+4
  237.  
  238. set {_fblock.x44} to targeted block of player's x-coordinate-1
  239. set {_fblock.y44} to targeted block of player's y-coordinate+3
  240. set {_fblock.z44} to targeted block of player's z-coordinate+3
  241.  
  242. set {_fblock.x45} to targeted block of player's x-coordinate
  243. set {_fblock.y45} to targeted block of player's y-coordinate+3
  244. set {_fblock.z45} to targeted block of player's z-coordinate+3
  245.  
  246. #Pipe
  247.  
  248. set {_pipe.dir} to a random integer between 1 and 4
  249.  
  250. if {_pipe.dir} is 1:
  251. send "1"
  252.  
  253. if {_pipe.dir} is 2:
  254. send "2"
  255.  
  256. if {_pipe.dir} is 3:
  257. send "3"
  258.  
  259. if {_pipe.dir} is 4:
  260. send "4"
  261.  
  262.  
  263. if player's facing is west:
  264. set {_fblock.x2} to targeted block of player's x-coordinate-1
  265. set {_fblock.y2} to targeted block of player's y-coordinate+1
  266. set {_fblock.z2} to targeted block of player's z-coordinate
  267.  
  268.  
  269.  
  270. #stone bricks:3 = chiseled stone bricks
  271.  
  272. #Belt
  273. set block at location {_fblock.x1}, {_fblock.y1}, {_fblock.z1} in world {_world} to polished andesite
  274. set block at location {_fblock.x2}, {_fblock.y2}, {_fblock.z2} in world {_world} to polished andesite
  275. set block at location {_fblock.x3}, {_fblock.y3}, {_fblock.z3} in world {_world} to polished andesite
  276. set block at location {_fblock.x4}, {_fblock.y4}, {_fblock.z4} in world {_world} to polished andesite
  277. set block at location {_fblock.x5}, {_fblock.y5}, {_fblock.z5} in world {_world} to polished andesite
  278. set block at location {_fblock.x6}, {_fblock.y6}, {_fblock.z6} in world {_world} to polished andesite
  279. set block at location {_fblock.x7}, {_fblock.y7}, {_fblock.z7} in world {_world} to polished andesite
  280.  
  281. #Walls - Left
  282. set block at location {_fblock.x8}, {_fblock.y8}, {_fblock.z8} in world {_world} to stone bricks:3
  283. set block at location {_fblock.x9}, {_fblock.y9}, {_fblock.z9} in world {_world} to stone bricks:3
  284.  
  285. set block at location {_fblock.x10}, {_fblock.y10}, {_fblock.z10} in world {_world} to stone bricks
  286. set block at location {_fblock.x11}, {_fblock.y11}, {_fblock.z11} in world {_world} to stone bricks
  287.  
  288. set block at location {_fblock.x12}, {_fblock.y12}, {_fblock.z12} in world {_world} to stone bricks:3
  289.  
  290. set block at location {_fblock.x13}, {_fblock.y13}, {_fblock.z13} in world {_world} to stone bricks
  291. set block at location {_fblock.x14}, {_fblock.y14}, {_fblock.z14} in world {_world} to stone bricks
  292.  
  293. set block at location {_fblock.x15}, {_fblock.y15}, {_fblock.z15} in world {_world} to stone bricks:3
  294. set block at location {_fblock.x16}, {_fblock.y16}, {_fblock.z16} in world {_world} to stone bricks:3
  295.  
  296. #Walls - Right
  297. set block at location {_fblock.x17}, {_fblock.y17}, {_fblock.z17} in world {_world} to stone bricks:3
  298. set block at location {_fblock.x18}, {_fblock.y18}, {_fblock.z18} in world {_world} to stone bricks:3
  299.  
  300. set block at location {_fblock.x19}, {_fblock.y19}, {_fblock.z19} in world {_world} to stone bricks
  301. set block at location {_fblock.x20}, {_fblock.y20}, {_fblock.z20} in world {_world} to stone bricks
  302.  
  303. set block at location {_fblock.x21}, {_fblock.y21}, {_fblock.z21} in world {_world} to stone bricks:3
  304.  
  305. set block at location {_fblock.x22}, {_fblock.y22}, {_fblock.z22} in world {_world} to stone bricks
  306. set block at location {_fblock.x23}, {_fblock.y23}, {_fblock.z23} in world {_world} to stone bricks
  307.  
  308. set block at location {_fblock.x24}, {_fblock.y24}, {_fblock.z24} in world {_world} to stone bricks:3
  309.  
  310. #Slabs
  311. set block at location {_fblock.x25}, {_fblock.y25}, {_fblock.z25} in world {_world} to cobblestone slab
  312. set block at location {_fblock.x26}, {_fblock.y26}, {_fblock.z26} in world {_world} to cobblestone slab
  313.  
  314. set block at location {_fblock.x27}, {_fblock.y27}, {_fblock.z27} in world {_world} to stone bricks
  315.  
  316. set block at location {_fblock.x28}, {_fblock.y28}, {_fblock.z28} in world {_world} to stone bricks:3
  317.  
  318. set block at location {_fblock.x29}, {_fblock.y29}, {_fblock.z29} in world {_world} to stone bricks
  319.  
  320. set block at location {_fblock.x30}, {_fblock.y30}, {_fblock.z30} in world {_world} to cobblestone slab
  321. set block at location {_fblock.x31}, {_fblock.y31}, {_fblock.z31} in world {_world} to cobblestone slab
  322.  
  323. set block at location {_fblock.x32}, {_fblock.y32}, {_fblock.z32} in world {_world} to cobblestone slab
  324. set block at location {_fblock.x33}, {_fblock.y33}, {_fblock.z33} in world {_world} to cobblestone slab
  325.  
  326. set block at location {_fblock.x34}, {_fblock.y34}, {_fblock.z34} in world {_world} to stone bricks
  327.  
  328. set block at location {_fblock.x35}, {_fblock.y35}, {_fblock.z35} in world {_world} to stone bricks:3
  329.  
  330. set block at location {_fblock.x36}, {_fblock.y36}, {_fblock.z36} in world {_world} to stone bricks
  331.  
  332. set block at location {_fblock.x37}, {_fblock.y37}, {_fblock.z37} in world {_world} to cobblestone slab
  333. set block at location {_fblock.x38}, {_fblock.y38}, {_fblock.z38} in world {_world} to cobblestone slab
  334.  
  335. #Glass
  336. set block at location {_fblock.x39}, {_fblock.y39}, {_fblock.z39} in world {_world} to green glass block
  337. set block at location {_fblock.x40}, {_fblock.y40}, {_fblock.z40} in world {_world} to green glass block
  338.  
  339. #Roof
  340. set block at location {_fblock.x41}, {_fblock.y41}, {_fblock.z41} in world {_world} to stone bricks slab
  341. set block at location {_fblock.x42}, {_fblock.y42}, {_fblock.z42} in world {_world} to stone bricks slab
  342. set block at location {_fblock.x43}, {_fblock.y43}, {_fblock.z43} in world {_world} to stone bricks slab
  343. set block at location {_fblock.x44}, {_fblock.y44}, {_fblock.z44} in world {_world} to stone bricks slab
  344.  
  345. set block at location {_fblock.x45}, {_fblock.y45}, {_fblock.z45} in world {_world} to stone bricks:3
  346.  
  347. #Pipe
  348.  
  349.  
  350.  
  351. #Dirt
  352.  
  353.  
  354. stop
Advertisement
Add Comment
Please, Sign In to add comment