Zeldaboy111

Skript #136

Apr 1st, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.27 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.  
  160. if player's facing is west:
  161. set {_fblock.x2} to targeted block of player's x-coordinate-1
  162. set {_fblock.y2} to targeted block of player's y-coordinate+1
  163. set {_fblock.z2} to targeted block of player's z-coordinate
  164.  
  165.  
  166.  
  167. #stone bricks:3 = chiseled stone bricks
  168.  
  169. #Belt
  170. set block at location {_fblock.x1}, {_fblock.y1}, {_fblock.z1} in world {_world} to polished andesite
  171. set block at location {_fblock.x2}, {_fblock.y2}, {_fblock.z2} in world {_world} to polished andesite
  172. set block at location {_fblock.x3}, {_fblock.y3}, {_fblock.z3} in world {_world} to polished andesite
  173. set block at location {_fblock.x4}, {_fblock.y4}, {_fblock.z4} in world {_world} to polished andesite
  174. set block at location {_fblock.x5}, {_fblock.y5}, {_fblock.z5} in world {_world} to polished andesite
  175. set block at location {_fblock.x6}, {_fblock.y6}, {_fblock.z6} in world {_world} to polished andesite
  176. set block at location {_fblock.x7}, {_fblock.y7}, {_fblock.z7} in world {_world} to polished andesite
  177.  
  178. #Walls - Left
  179. set block at location {_fblock.x8}, {_fblock.y8}, {_fblock.z8} in world {_world} to stone bricks:3
  180. set block at location {_fblock.x9}, {_fblock.y9}, {_fblock.z9} in world {_world} to stone bricks:3
  181.  
  182. set block at location {_fblock.x10}, {_fblock.y10}, {_fblock.z10} in world {_world} to stone bricks
  183. set block at location {_fblock.x11}, {_fblock.y11}, {_fblock.z11} in world {_world} to stone bricks
  184.  
  185. set block at location {_fblock.x12}, {_fblock.y12}, {_fblock.z12} in world {_world} to stone bricks:3
  186.  
  187. set block at location {_fblock.x13}, {_fblock.y13}, {_fblock.z13} in world {_world} to stone bricks
  188. set block at location {_fblock.x14}, {_fblock.y14}, {_fblock.z14} in world {_world} to stone bricks
  189.  
  190. set block at location {_fblock.x15}, {_fblock.y15}, {_fblock.z15} in world {_world} to stone bricks:3
  191. set block at location {_fblock.x16}, {_fblock.y16}, {_fblock.z16} in world {_world} to stone bricks:3
  192.  
  193. #Walls - Right
  194. set block at location {_fblock.x17}, {_fblock.y17}, {_fblock.z17} in world {_world} to stone bricks:3
  195. set block at location {_fblock.x18}, {_fblock.y18}, {_fblock.z18} in world {_world} to stone bricks:3
  196.  
  197. set block at location {_fblock.x19}, {_fblock.y19}, {_fblock.z19} in world {_world} to stone bricks
  198. set block at location {_fblock.x20}, {_fblock.y20}, {_fblock.z20} in world {_world} to stone bricks
  199.  
  200. set block at location {_fblock.x21}, {_fblock.y21}, {_fblock.z21} in world {_world} to stone bricks:3
  201.  
  202. set block at location {_fblock.x22}, {_fblock.y22}, {_fblock.z22} in world {_world} to stone bricks
  203. set block at location {_fblock.x23}, {_fblock.y23}, {_fblock.z23} in world {_world} to stone bricks
  204.  
  205. set block at location {_fblock.x24}, {_fblock.y24}, {_fblock.z24} in world {_world} to stone bricks:3
  206. set block at location {_fblock.x25}, {_fblock.y25}, {_fblock.z25} in world {_world} to stone bricks:3
  207.  
  208.  
  209.  
  210. stop
Advertisement
Add Comment
Please, Sign In to add comment