Advertisement
Guest User

Rust base system

a guest
May 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.15 KB | None | 0 0
  1. every 5 tick in "Rust":
  2. loop all players:
  3. if tool of loop-player is paper:
  4. if name of loop-player's tool contains "&f&oWall":
  5. set {_block} to loop-player's targeted block
  6. if {_block} is stone:6:
  7.  
  8. make loop-player see block at location 1 meters above {_block} as light blue glass block
  9. if block 1 up 0 south event-location is not air:
  10. make loop-player see block at location 1 meters above {_loc
  11. make loop-player see block at location 2 meters above {_block} as light blue glass block
  12. make loop-player see block at location 3 meters above {_block} as light blue glass block
  13. make loop-player see block at location 4 meters above {_block} as light blue glass block
  14.  
  15. make loop-player see block 1 meter east above {_block} as light blue glass block
  16. make loop-player see block 1 meter west above {_block} as light blue glass block
  17.  
  18. make loop-player see block 1 meter east 1 meter above {_block} as light blue glass block
  19.  
  20.  
  21. on right click with paper:
  22. {cooldown::click::%player%} is not set:
  23. set {cooldown::click::%player%} to now
  24. difference between now and {cooldown::click::%player%} is more than 5 tick:
  25. set {cooldown::click::%player%} to now
  26. if name of player's tool is "&f&oPlataform":
  27. set {_build} to true
  28.  
  29. if block 1 up 3 south event-location is not air:
  30. set {_build} to false
  31.  
  32. if block 1 up 0 south event-location is not air:
  33. set {_build} to false
  34.  
  35.  
  36. if block up 1 north event-location is not air:
  37. set {_build} to false
  38.  
  39. if block up 1 south event-location is not air:
  40. set {_build} to false
  41.  
  42. if block up 1 east event-location is not air:
  43. set {_build} to false
  44.  
  45. if block up 1 west event-location is not air:
  46. set {_build} to false
  47.  
  48.  
  49. if block up 1 southeast event-location is not air:
  50. set {_build} to false
  51.  
  52. if block up 1 northwest event-location is not air:
  53. set {_build} to false
  54.  
  55. if block up 1 southwest event-location is not air:
  56. set {_build} to false
  57.  
  58. if block up 1 northeast event-location is not air:
  59. set {_build} to false
  60.  
  61.  
  62. if block up 2 north event-location is not air:
  63. set {_build} to false
  64.  
  65. if block up 2 south event-location is not air:
  66. set {_build} to false
  67.  
  68. if block up 2 east event-location is not air:
  69. set {_build} to false
  70.  
  71. if block up 2 west event-location is not air:
  72. set {_build} to false
  73.  
  74.  
  75. if block up 2 east 1 south event-location is not air:
  76. set {_build} to false
  77.  
  78. if block up 2 east 1 north event-location is not air:
  79. set {_build} to false
  80.  
  81.  
  82. if block up 2 north 1 east event-location is not air:
  83. set {_build} to false
  84.  
  85. if block up 2 north 1 west event-location is not air:
  86. set {_build} to false
  87.  
  88.  
  89. if block up 2 west 1 north event-location is not air:
  90. set {_build} to false
  91.  
  92. if block up 2 west 1 south event-location is not air:
  93. set {_build} to false
  94.  
  95. if block up 2 south 1 west event-location is not air:
  96. set {_build} to false
  97.  
  98. if block up 2 south 1 east event-location is not air:
  99. set {_build} to false
  100.  
  101.  
  102. if block up 2 southeast event-location is not air:
  103. set {_build} to false
  104.  
  105. if block up 2 northwest event-location is not air:
  106. set {_build} to false
  107.  
  108. if block up 2 southwest event-location is not air:
  109. set {_build} to false
  110.  
  111. if block up 2 northeast event-location is not air:
  112. set {_build} to false
  113.  
  114. if {_build} is true:
  115. if the target block is grass or snow:
  116. drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
  117. play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
  118. set block 1 up 0 south event-location to piston:1
  119.  
  120. set block at block up 1 north event-location to oak wood plank
  121. set block at block up 1 south event-location to oak wood plank
  122. set block at block up 1 east event-location to oak wood plank
  123. set block at block up 1 west event-location to oak wood plank
  124.  
  125. set block at block up 1 southeast event-location to oak wood plank
  126. set block at block up 1 northwest event-location to oak wood plank
  127. set block at block up 1 southwest event-location to oak wood plank
  128. set block at block up 1 northeast event-location to oak wood plank
  129.  
  130. set block at block up 2 north event-location to stone:6
  131. set block at block up 2 south event-location to stone:6
  132. set block at block up 2 east event-location to stone:6
  133. set block at block up 2 west event-location to stone:6
  134.  
  135. set block at block up 2 east 1 south event-location to upside-down double stone slab
  136. set block at block up 2 east 1 north event-location to upside-down double stone slab
  137.  
  138. set block at block up 2 north 1 east event-location to upside-down double stone slab
  139. set block at block up 2 north 1 west event-location to upside-down double stone slab
  140.  
  141. set block at block up 2 west 1 north event-location to upside-down double stone slab
  142. set block at block up 2 west 1 south event-location to upside-down double stone slab
  143.  
  144. set block at block up 2 south 1 west event-location to upside-down double stone slab
  145. set block at block up 2 south 1 east event-location to upside-down double stone slab
  146.  
  147. set block at block up 2 southeast event-location to mushroom stem6 block
  148. set block at block up 2 northwest event-location to mushroom stem6 block
  149. set block at block up 2 southwest event-location to mushroom stem6 block
  150. set block at block up 2 northeast event-location to mushroom stem6 block
  151.  
  152. set block at block -0 up 2 southeast event-location to oak wood
  153. set block at block -1 up 2 southeast event-location to oak wood
  154. set block at block -2 up 2 southeast event-location to oak wood
  155. set block at block -3 up 2 southeast event-location to oak wood
  156.  
  157. set block at block -0 up 2 northwest event-location to oak wood
  158. set block at block -1 up 2 northwest event-location to oak wood
  159. set block at block -2 up 2 northwest event-location to oak wood
  160. set block at block -3 up 2 northwest event-location to oak wood
  161.  
  162. set block at block -0 up 2 southwest event-location to oak wood
  163. set block at block -1 up 2 southwest event-location to oak wood
  164. set block at block -2 up 2 southwest event-location to oak wood
  165. set block at block -3 up 2 southwest event-location to oak wood
  166.  
  167. set block at block -0 up 2 northeast event-location to oak wood
  168. set block at block -1 up 2 northeast event-location to oak wood
  169. set block at block -2 up 2 northeast event-location to oak wood
  170. set block at block -3 up 2 northeast event-location to oak wood
  171.  
  172.  
  173. remove paper named "&f&oPlataform" from the player
  174. else if the target block is stone:6:
  175. if player's facing is north:
  176. set {_build} to true
  177.  
  178. if block 1 north 1 west event-location is not air:
  179. set {_build} to false
  180.  
  181. if {_build} is true:
  182. drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
  183. play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
  184. set block at block 1 north event-location to oak wood plank
  185.  
  186. set block at block 1 north 1 west to oak wood plank
  187. set block at block 1 north 2 west to upside-down double stone slab
  188. set block at block 1 north 1 east to oak wood plank
  189. set block at block 1 north 2 east to upside-down double stone slab
  190.  
  191. set block 2 north event-location to piston:1
  192.  
  193. set block at block 2 north 1 west to oak wood plank
  194. set block at block 2 north 2 west to stone:6
  195. set block at block 2 north 1 east to oak wood plank
  196. set block at block 2 north 2 east to stone:6
  197.  
  198. set block at block 3 north event-location to oak wood plank
  199.  
  200. set block at block 3 north 1 west to oak wood plank
  201. set block at block 3 north 2 west to upside-down double stone slab
  202. set block at block 3 north 1 east to oak wood plank
  203. set block at block 3 north 2 east to upside-down double stone slab
  204.  
  205. set block at block 4 north event-location to stone:6
  206.  
  207. set block at block 4 north 1 west to upside-down double stone slab
  208. set block at block 4 north 2 west to mushroom stem6 block
  209. set block at block 4 north 1 east to upside-down double stone slab
  210. set block at block 4 north 2 east to mushroom stem6 block
  211.  
  212. set block at block 4 north 2 west -1 up to oak wood
  213. set block at block 4 north 2 west -2 up to oak wood
  214. set block at block 4 north 2 west -3 up to oak wood
  215. set block at block 4 north 2 west -4 up to oak wood
  216.  
  217. set block at block 4 north 2 east -1 up to oak wood
  218. set block at block 4 north 2 east -2 up to oak wood
  219. set block at block 4 north 2 east -3 up to oak wood
  220. set block at block 4 north 2 east -4 up to oak wood
  221.  
  222.  
  223. else if player's facing is south:
  224. set {_build} to true
  225.  
  226. if block 1 north 1 west event-location i13s not air:
  227. set {_build} to false
  228.  
  229. if {_build} is true:
  230. drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
  231. play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
  232. set block at block 1 south event-location to oak wood plank
  233.  
  234. set block at block 1 south 1 west to oak wood plank
  235. set block at block 1 south 2 west to upside-down double stone slab
  236. set block at block 1 south 1 east to oak wood plank
  237. set block at block 1 south 2 east to upside-down double stone slab
  238.  
  239. set block 2 south event-location to piston:1
  240.  
  241. set block at block 2 south 1 west to oak wood plank
  242. set block at block 2 south 2 west to stone:6
  243. set block at block 2 south 1 east to oak wood plank
  244. set block at block 2 south 2 east to stone:6
  245.  
  246. set block at block 3 south event-location to oak wood plank
  247.  
  248. set block at block 3 south 1 west to oak wood plank
  249. set block at block 3 south 2 west to upside-down double stone slab
  250. set block at block 3 south 1 east to oak wood plank
  251. set block at block 3 south 2 east to upside-down double stone slab
  252.  
  253. set block at block 4 south event-location to stone:6
  254.  
  255. set block at block 4 south 1 west to upside-down double stone slab
  256. set block at block 4 south 2 west to mushroom stem6 block
  257. set block at block 4 south 1 east to upside-down double stone slab
  258. set block at block 4 south 2 east to mushroom stem6 block
  259.  
  260.  
  261. else if player's facing is east:
  262. set {_build} to true
  263.  
  264. if block 1 north 1 west event-location i13s not air:
  265. set {_build} to false
  266.  
  267. if {_build} is true:
  268. drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
  269. play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
  270. set block at block 1 east event-location to oak wood plank
  271.  
  272. set block at block 1 east 1 north event-location to oak wood plank
  273. set block at block 1 east 1 south event-location to oak wood plank
  274. set block at block 1 east 2 north event-location to upside-down double stone slab
  275. set block at block 1 east 2 south event-location to upside-down double stone slab
  276.  
  277. set block at block 2 east event-location to piston:1
  278. set block at block 2 east 1 north event-location to oak wood plank
  279. set block at block 2 east 1 south event-location to oak wood plank
  280. set block at block 2 east 2 north event-location to stone:6
  281. set block at block 2 east 2 south event-location to stone:6
  282.  
  283. set block at block 3 east event-location to oak wood plank
  284.  
  285. set block at block 3 east 1 north event-location to oak wood plank
  286. set block at block 3 east 1 south event-location to oak wood plank
  287. set block at block 3 east 2 north event-location to upside-down double stone slab
  288. set block at block 3 east 2 south event-location to upside-down double stone slab
  289.  
  290. set block at block 4 east event-location to stone:6
  291.  
  292. set block at block 4 east 1 north event-location to upside-down double stone slab
  293. set block at block 4 east 1 south event-location to upside-down double stone slab
  294. set block at block 4 east 2 north event-location to mushroom stem6 block
  295. set block at block 4 east 2 south event-location to mushroom stem6 block
  296.  
  297. else if player's facing is west:
  298. set {_build} to true
  299.  
  300. if block 1 north 1 west event-location i13s not air:
  301. set {_build} to false
  302.  
  303. if {_build} is true:
  304. drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
  305. play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
  306. set block at block 1 west event-location to oak wood plank
  307.  
  308. set block at block 1 west 1 north event-location to oak wood plank
  309. set block at block 1 west 1 south event-location to oak wood plank
  310. set block at block 1 west 2 north event-location to upside-down double stone slab
  311. set block at block 1 west 2 south event-location to upside-down double stone slab
  312.  
  313. set block at block 2 west event-location to piston:1
  314. set block at block 2 west 1 north event-location to oak wood plank
  315. set block at block 2 west 1 south event-location to oak wood plank
  316. set block at block 2 west 2 north event-location to stone:6
  317. set block at block 2 west 2 south event-location to stone:6
  318.  
  319. set block at block 3 west event-location to oak wood plank
  320.  
  321. set block at block 3 west 1 north event-location to oak wood plank
  322. set block at block 3 west 1 south event-location to oak wood plank
  323. set block at block 3 west 2 north event-location to upside-down double stone slab
  324. set block at block 3 west 2 south event-location to upside-down double stone slab
  325.  
  326. set block at block 4 west event-location to stone:6
  327.  
  328. set block at block 4 west 1 north event-location to upside-down double stone slab
  329. set block at block 4 west 1 south event-location to upside-down double stone slab
  330. set block at block 4 west 2 north event-location to mushroom stem6 block
  331. set block at block 4 west 2 south event-location to mushroom stem6 block
  332.  
  333.  
  334.  
  335. else:
  336. cancel event
  337. message "&cVocê não pode construir essa plataforma com blocos pertos."
  338. else:
  339. send "&aAguarde alguns segundo(s) para construir outra plataforma." to player
  340.  
  341. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement