Prawnus

Untitled

Oct 29th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.22 KB | None | 0 0
  1. #===================================#
  2. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  3. # VERSION 1.0
  4. #===================================#
  5.  
  6. on load:
  7. if file "plugins/Bedwars/Config.yml" doesn't exists:
  8. create file "plugins/Bedwars/Config.yml"
  9. wf "##_____________________________________________________________________##" to "plugins/Bedwars/Config.yml"
  10. wf "## ##" to "plugins/Bedwars/Config.yml"
  11. wf "## ✯ Bedwars ✯ ##" to "plugins/Bedwars/Config.yml"
  12. wf "## This skript is created by Unlegit_Denis ##" to "plugins/Bedwars/Config.yml"
  13. wf "##_____________________________________________________________________##" to "plugins/Bedwars/Config.yml"
  14. wf "## ##" to "plugins/Bedwars/Config.yml"
  15. wf "" to "plugins/Bedwars/Config.yml"
  16. wf "## CONFIG" to "plugins/Bedwars/Config.yml"
  17. wf "" to "plugins/Bedwars/Config.yml"
  18. wf "Bungeecord: false" to "plugins/Bedwars/Config.yml"
  19. wf "BungeecordServerbedwars: bedwars" to "plugins/Bedwars/Config.yml"
  20. wf "BungeecordServerHub: lobby" to "plugins/Bedwars/Config.yml"
  21. wf "Admin: Unlegit_Denis" to "plugins/Bedwars/Config.yml"
  22. wf "GameWorld: MapRush" to "plugins/Bedwars/Config.yml"
  23. wf "" to "plugins/Bedwars/Config.yml"
  24. wf "## MESSAGES" to "plugins/Bedwars/Config.yml"
  25. wf "" to "plugins/Bedwars/Config.yml"
  26. wf "AlreadyStart: &7La partita é gia in corso" to "plugins/Bedwars/Config.yml"
  27. wf "GameFull: &7La partita é piena" to "plugins/Bedwars/Config.yml"
  28. wf "Join: &7joined in the game" to "plugins/Bedwars/Config.yml"
  29. wf "Leave: &7ha abbandonato la partita" to "plugins/Bedwars/Config.yml"
  30. wf "Start: &3La partita é cominciata ! &bGood Luck !" to "plugins/Bedwars/Config.yml"
  31. wf "GameStartIn: &7La partita comincia tra" to "plugins/Bedwars/Config.yml"
  32. wf "WasDeath: &7é morto" to "plugins/Bedwars/Config.yml"
  33. wf "WasKilledBy: &7é stato ammazzato da" to "plugins/Bedwars/Config.yml"
  34. wf "Eliminated: &7é stato eliminato(a)" to "plugins/Bedwars/Config.yml"
  35. wf "BreakBlue: &7Il letto del team &bBlue &7é stato distrutto !" to "plugins/Bedwars/Config.yml"
  36. wf "BreakRed: &7Il letto del team &cRed &7é stato distrutto !" to "plugins/Bedwars/Config.yml"
  37. wf "BreakGreen: &7Il letto del team &aGreen &7é stato distrutto !" to "plugins/Bedwars/Config.yml"
  38. wf "BreakYellow: &7Il letto del team &eYellow &7é stato distrutto !" to "plugins/Bedwars/Config.yml"
  39. wf "" to "plugins/Bedwars/Config.yml"
  40. wf "## ITEMS" to "plugins/Bedwars/Config.yml"
  41. wf "" to "plugins/Bedwars/Config.yml"
  42. wf "LeaveItem: Abbandona la partita" to "plugins/Bedwars/Config.yml"
  43. wf "" to "plugins/Bedwars/Config.yml"
  44. wf "## END CONFIG/MESSAGES" to "plugins/Bedwars/Config.yml"
  45. set {Bungeecord} to value "Bungeecord" get of "plugins/Bedwars/Config.yml"
  46. set {BungeecordServeurbedwars} to value "BungeecordServerbedwars" get of "plugins/Bedwars/Config.yml"
  47. set {BungeecordServeurHUB} to value "BungeecordServerHub" get of "plugins/Bedwars/Config.yml"
  48. set {Admin} to value "Admin" get of "plugins/Bedwars/Config.yml"
  49. set {GameWorld} to value "GameWorld" get of "plugins/Bedwars/Config.yml"
  50. set {AlreadyStart} to colored value "AlreadyStart" get of "plugins/Bedwars/Config.yml"
  51. set {GameFull} to colored value "GameFull" get of "plugins/Bedwars/Config.yml"
  52. set {Join} to colored value "Join" get of "plugins/Bedwars/Config.yml"
  53. set {Leave} to colored value "Leave" get of "plugins/Bedwars/Config.yml"
  54. set {Start} to colored value "Start" get of "plugins/Bedwars/Config.yml"
  55. set {GameStartIn} to colored value "GameStartIn" get of "plugins/Bedwars/Config.yml"
  56. set {-2Player} to colored value "-2Player" get of "plugins/Bedwars/Config.yml"
  57. set {wasdeath} to colored value "WasDeath" get of "plugins/Bedwars/Config.yml"
  58. set {waskilledby} to colored value "WasKilledBy" get of "plugins/Bedwars/Config.yml"
  59. set {Eliminated} to colored value "Eliminated" get of "plugins/Bedwars/Config.yml"
  60. set {BreakBlue} to colored value "BreakBlue" get of "plugins/Bedwars/Config.yml"
  61. set {BreakRed} to colored value "BreakRed" get of "plugins/Bedwars/Config.yml"
  62. set {BreakGreen} to colored value "BreakGreen" get of "plugins/Bedwars/Config.yml"
  63. set {BreakYellow} to colored value "BreakYellow" get of "plugins/Bedwars/Config.yml"
  64. set {LeaveItem} to value "LeaveItem" get of "plugins/Bedwars/Config.yml"
  65.  
  66. options:
  67.  
  68. #OPTIONS
  69.  
  70. Prefixbedwars: &3&lBedwars &f>
  71. Timer: 30
  72. Timer2: 3
  73.  
  74. # NOT MODIFY OR I BAN YOU
  75.  
  76. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  77.  
  78. sub "Endbedwars":
  79. set {_winner} to parameter 1
  80. send "&3%{_winner}% &7ha vinto la partita !" to {_winner}
  81. set {_count} to 1
  82. loop {bedwars.count} times:
  83. set block at {bedwars.blocklocation.%{_count}%} to air
  84. clear {bedwars.blocklocation.%{_count}%}
  85. add 1 to {_count}
  86. wait 0.1 tick
  87. set {_bedcount} to size of {BedLoc::*}
  88. loop {BedLoc::*}:
  89. set block at {BedLoc::%{_bedcount}%} to {BedType::%{_bedcount}%}
  90. remove 1 from {_bedcount}
  91. delete {BedLoc::*}
  92. delete {BedType::*}
  93. loop all dropped items in world "%{GameWorld}%":
  94. delete loop-value
  95. wait 1 tick
  96. teleport {_winner} at {bedwars.location.lobby}
  97. clear {_winner}'s inventory
  98. delete {bedwars.play.%{_winner}%}
  99. clear {bedwars.players::*}
  100. delete {bedwars.start}
  101.  
  102. on rightclick with bed:
  103. if {bedwars.play.%player%} is true:
  104. execute player command "bedwars"
  105.  
  106. on load:
  107. invoke "Endbedwars"
  108.  
  109. on craft:
  110. if {bedwars.start} is true:
  111. cancel event
  112.  
  113. on place:
  114. if {bedwars.start} is true:
  115. if {bedwars.play.%player%} is true:
  116. if event-block isn't bed and wool:
  117. add 1 to {bedwars.count}
  118. set {bedwars.blocklocation.%{bedwars.count}%} to location of event-block
  119. else:
  120. cancel event
  121. else:
  122. cancel event
  123.  
  124. on break:
  125. if {bedwars.start} is true:
  126. if event-block is not end stone, sandstone, sand stone:1 or sand stone:2:
  127. cancel event
  128.  
  129. every 1 second:
  130. if {bedwars.start} is true:
  131. drop brick item named "&cBronzo" at {bedwars.location.minerali::*}
  132.  
  133. every 15 seconds:
  134. if {bedwars.start} is true:
  135. drop iron ingot item named "&7Iron" at {bedwars.location.minerali::*}
  136.  
  137. every 60 seconds:
  138. if {bedwars.start} is true:
  139. drop golden ingot item named "&eOro" at {bedwars.location.minerali::*}
  140.  
  141. every 5 minutes:
  142. if {bedwars.start} is true:
  143. drop diamond item named "&bDiamante" at {bedwars.location.minerali::*}
  144.  
  145. on any move:
  146. if {bedwars.start} is true:
  147. if entity is a villager:
  148. cancel event
  149.  
  150.  
  151. on rightclick on villager:
  152. if {bedwars.start} is true:
  153. make player execute command "/bwshop§"
  154. cancel event
  155.  
  156. command /bedwarsadm [<text>] [<text>]:
  157. trigger:
  158. if player is "%{Admin}%":
  159. if arg 1 is "set":
  160. if arg 2 is "lobby":
  161. set {bedwars.location.lobby} to player's location
  162. send "&3Tu as SET la localisation du Looby !" to player
  163. if arg 2 is "minerali":
  164. add player's location to {bedwars.location.minerali::*}
  165. send "&3Tu as SET la localisation du Spawn des mineralis !" to player
  166. if arg 2 is "blue":
  167. set {bedwars.location.spawnblue} to player's location
  168. send "&3Tu as SET la localisation du Spawn blue !" to player
  169. if arg 2 is "red":
  170. set {bedwars.location.spawnred} to player's location
  171. send "&3Tu as SET la localisation du Spawn red !" to player
  172. if arg 2 is "yellow":
  173. set {bedwars.location.spawnyellow} to player's location
  174. send "&3Hai settato lo spawn Spawn yellow !" to player
  175. if arg 2 is "green":
  176. set {bedwars.location.spawngreen} to player's location
  177. send "&3Hai settato lo spawn Spawn green !" to player
  178. if arg 1 is "del":
  179. if arg 2 is "minerali":
  180. clear {bedwars.location.minerali::*}
  181. send "&3Tu as SUPPRIM2 la localisation du Spawn des mineralis !" to player
  182. if arg 1 is "reset":
  183. delete {bedwars.start}
  184. clear {bedwars.players::*}
  185. delete {bedwars.dontmove}
  186. broadcast "&7Tutto é stato &celiminato"
  187. loop all players:
  188. delete {bedwars.play.%player%}
  189.  
  190. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  191.  
  192. command /bedwars:
  193. trigger:
  194. if {bedwars.start} isn't set:
  195. if {bedwars.play.%player%} isn't set:
  196. if size of {bedwars.players::*} isn't greater than 4:
  197. teleport player at {bedwars.location.lobby}
  198. add player to {bedwars.players::*}
  199. send "{@Prefixbedwars} &3%player% %{Join}%" to {bedwars.players::*}
  200. set {bedwars.play.%player%} to true
  201. set slot 8 of player to bed named "&c&l%{LeaveItem}% &7(Right-Click)"
  202. if size of {bedwars.players::*} > 1:
  203. set {_timer} to {@Timer}
  204. while {_timer} is more than 0:
  205. set {bedwars.players::*}'s level to {_timer}
  206. remove 1 from {_timer}
  207. wait a second
  208. if {_timer} is 60 or 30 or 25 or 20 or 15 or 10 or 4 or 5 or 3 or 2 or 1:
  209. set action bar of {bedwars.players::*} to "{@Prefixbedwars} %{GameStartIn}% &a%{_timer}% &asecond(s) &7!"
  210. play raw sound "random.orb" at {bedwars.players::*} with pitch 1 volume 1
  211. if size of {bedwars.players::*} < 2:
  212. set {_timer} to 0
  213. send "{@Prefixbedwars} %{-2Player}%" to player
  214. size of {bedwars.players::*} > 1
  215. if "%{Bungeecord}%" is "true":
  216. loop {bedwars.players::*}:
  217. bungeecord connect loop-value to "%{BungeecordServeurbedwars}%"
  218. wait a tick
  219. set {bedwars.dontmove} to true
  220. wait a second
  221. broadcast "{@Prefixbedwars} %{Start}%" to {bedwars.players::*}
  222. size of {bedwars.players::*} = 2:
  223. set {bedwars.player.blue} to {bedwars.players::1}
  224. set {bedwars.player.red} to {bedwars.players::2}
  225. teleport {bedwars.player.blue} at {bedwars.location.spawnblue}
  226. teleport {bedwars.player.red} at {bedwars.location.spawnred}
  227. size of {bedwars.players::*} = 3:
  228. set {bedwars.player.blue} to {bedwars.players::1}
  229. set {bedwars.player.red} to {bedwars.players::2}
  230. set {bedwars.player.yellow} to {bedwars.players::3}
  231. teleport {bedwars.player.blue} at {bedwars.location.spawnblue}
  232. teleport {bedwars.player.red} at {bedwars.location.spawnred}
  233. teleport {bedwars.player.yellow} at {bedwars.location.spawnyellow}
  234. size of {bedwars.players::*} = 4:
  235. set {bedwars.player.blue} to {bedwars.players::1}
  236. set {bedwars.player.red} to {bedwars.players::2}
  237. set {bedwars.player.yellow} to {bedwars.players::3}
  238. set {bedwars.player.green} to {bedwars.players::4}
  239. teleport {bedwars.player.blue} at {bedwars.location.spawnblue}
  240. teleport {bedwars.player.red} at {bedwars.location.spawnred}
  241. teleport {bedwars.player.yellow} at {bedwars.location.spawnyellow}
  242. teleport {bedwars.player.green} at {bedwars.location.spawngreen}
  243. set {bedwars.start} to true
  244. loop {bedwars.players::*}:
  245. set {bedwars.bed.%loop-value%} to 1
  246. clear {bedwars.players::*}'s inventory
  247. set {bedwars.players::*}'s gamemode to survival
  248. heal {bedwars.players::*}
  249. wait a second
  250. play level up at {bedwars.players::*} with pitch 1
  251. send {bedwars.players::*} title "&a➌" with subtitle " " for 1 second
  252. wait a second
  253. play level up at {bedwars.players::*} with pitch 1
  254. send {bedwars.players::*} title "&a➋" with subtitle " " for 1 second
  255. wait a second
  256. play level up at {bedwars.players::*} with pitch 1
  257. send {bedwars.players::*} title "&a➊" with subtitle " " for 1 second
  258. delete {bedwars.dontmove}
  259. loop {bedwars.players::*}:
  260. wipe loop-value's sidebar
  261. wait 3 ticks
  262. set name of sidebar of loop-value to " &a&lBedwars "
  263. set score " " in sidebar of loop-value to 11
  264. set id based score "&7Modalita: bedwars" in sidebar of loop-value to 10 with id "Modalita.%loop-value%"
  265. set score " " in sidebar of loop-value to 9
  266. set id based score "&cRed: &a❤" in sidebar of loop-value to 8 with id "lettored.%loop-value%"
  267. set score " " in sidebar of loop-value to 7
  268. set id based score "&9Blue: &a❤" in sidebar of loop-value to 6 with id "lettoblue.%loop-value%"
  269. set score " " in sidebar of loop-value to 5
  270. set id based score "&aGreen: &a❤" in sidebar of loop-value to 4 with id "lettogreen.%loop-value%"
  271. set score " " in sidebar of loop-value to 3
  272. set id based score "&eYellow: &a❤" in sidebar of loop-value to 2 with id "lettoyellow.%loop-value%"
  273. set score " " in sidebar of loop-value to 1
  274. else:
  275. send "{@Prefixbedwars} %{GameFull}%" to player
  276. else:
  277. send "{@Prefixbedwars} &3%player% %{Leave}%" to {bedwars.players::*}
  278. teleport player at {bedwars.location.lobby}
  279. clear player's inventory
  280. remove player from {bedwars.players::*}
  281. delete {bedwars.play.%player%}
  282. stop
  283. else:
  284. send "{@Prefixbedwars} %{AlreadyStart}%" to player
  285.  
  286. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  287.  
  288. on chat:
  289. if {bedwars.play.%player%} is true:
  290. if "%player%" = "%{bedwars.player.blue}%":
  291. cancel event
  292. send "{@Prefixbedwars} &b%player%&f: %message%" to {bedwars.players::*}
  293. if "%player%" = "%{bedwars.player.red}%":
  294. cancel event
  295. send "{@Prefixbedwars} &c%player%&f: %message%" to {bedwars.players::*}
  296. if "%player%" = "%{bedwars.player.yellow}%":
  297. cancel event
  298. send "{@Prefixbedwars} &e%player%&f: %message%" to {bedwars.players::*}
  299. if "%player%" = "%{bedwars.player.green}%":
  300. cancel event
  301. send "{@Prefixbedwars} &a%player%&f: %message%" to {bedwars.players::*}
  302.  
  303. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  304.  
  305. on quit:
  306. if {bedwars.play.%player%} is true:
  307. clear player's inventory
  308. teleport player at {bedwars.location.lobby}
  309. delete {bedwars.play.%player%}
  310. remove player from {bedwars.players::*}
  311. if "%player%" = "% {bedwars.player.blue}%":
  312. send "&3Il team &bblue &3é stato distrutto &7(&bHa abbandonato &b%player%&7" to {bedwars.players::*}
  313. if "%player%" = "% {bedwars.player.red}%":
  314. send "&3Il team &cred &3é stato distrutto &7(&bHa abbandonato &c%player%&7" to {bedwars.players::*}
  315. if "%player%" = "% {bedwars.player.yellow}%":
  316. send "&3Il team &eyellow &3é stato distrutto &7(&bHa abbandonato &e%player%&7" to {bedwars.players::*}
  317. if "%player%" = "% {bedwars.player.green}%":
  318. send "&3Il team &agreen &3é stato distrutto &7(&bHa abbandonato &a%player%&7" to {bedwars.players::*}
  319. if size of {bedwars.players::*} is smaller than 2:
  320. invoke "Endbedwars" from {bedwars.players::*}
  321.  
  322. on respawn:
  323. if {bedwars.play.%player%} is true:
  324. if {bedwars.bed.%player%} is 1:
  325. if "%player%" is "%{bedwars.player.blue}%":
  326. teleport {bedwars.player.blue} at {bedwars.location.spawnblue}
  327. if "%player%" is "%{bedwars.player.red}%":
  328. teleport {bedwars.player.red} at {bedwars.location.spawnred}
  329. if "%player%" is "%{bedwars.player.yellow}%":
  330. teleport {bedwars.player.yellow} at {bedwars.location.spawnyellow}
  331. if "%player%" is "%{bedwars.player.green}%":
  332. teleport {bedwars.player.green} at {bedwars.location.spawngreen}
  333. if {bedwars.bed.%player%} is 0:
  334. if "%player%" is "%{bedwars.player.blue}%":
  335. send "{@Prefixbedwars} &b%player% %{Eliminated}%" to {bedwars.players::*}
  336. if "%player%" is "%{bedwars.player.red}%":
  337. send "{@Prefixbedwars} &c%player% %{Eliminated}%" to {bedwars.players::*}
  338. if "%player%" is "%{bedwars.player.yellow}%":
  339. send "{@Prefixbedwars} &e%player% %{Eliminated}%" to {bedwars.players::*}
  340. if "%player%" is "%{bedwars.player.green}%":
  341. send "{@Prefixbedwars} &a%player% %{Eliminated}%" to {bedwars.players::*}
  342. teleport player at {bedwars.location.lobby}
  343. remove "%player%" from {bedwars.players::*}
  344. delete {bedwars.play.%player%}
  345. clear {bedwars.bed.%player%}
  346. if size of {bedwars.players::*} is smaller than 2:
  347. invoke "Endbedwars" from {bedwars.players::*}
  348.  
  349. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  350.  
  351. on death of player:
  352. if {bedwars.play.%player%} is true:
  353. clear drops
  354. set death message to ""
  355. if {bedwars.bed.%player%} is 1:
  356. if "%player%" is "%{bedwars.player.blue}%":
  357. send "{@Prefixbedwars} &b%player% %{waskilledby}% &6%attacker%" to {bedwars.players::*}
  358. if "%player%" is "%{bedwars.player.red}%":
  359. send "{@Prefixbedwars} &c%player% %{waskilledby}% &6%attacker%" to {bedwars.players::*}
  360. if "%player%" is "%{bedwars.player.yellow}%":
  361. send "{@Prefixbedwars} &e%player% %{waskilledby}% &6%attacker%" to {bedwars.players::*}
  362. if "%player%" is "%{bedwars.player.green}%":
  363. send "{@Prefixbedwars} &a%player% %{waskilledby}% &6%attacker%" to {bedwars.players::*}
  364. if {bedwars.bed.%player%} is 0:
  365. if "%player%" is "%{bedwars.player.blue}%":
  366. send "{@Prefixbedwars} &b%player% %{Eliminated}%" to {bedwars.players::*}
  367. if "%player%" is "%{bedwars.player.red}%":
  368. send "{@Prefixbedwars} &c%player% %{Eliminated}%" to {bedwars.players::*}
  369. if "%player%" is "%{bedwars.player.yellow}%":
  370. send "{@Prefixbedwars} &e%player% %{Eliminated}%" to {bedwars.players::*}
  371. if "%player%" is "%{bedwars.player.green}%":
  372. send "{@Prefixbedwars} &a%player% %{Eliminated}%" to {bedwars.players::*}
  373. teleport player at {bedwars.location.lobby}
  374. remove "%player%" from {bedwars.players::*}
  375. delete {bedwars.play.%player%}
  376. clear {bedwars.bed.%player%}
  377. if size of {bedwars.players::*} is smaller than 2:
  378. invoke "Endbedwars" from {bedwars.players::*}
  379.  
  380. on any move:
  381. if {bedwars.play.%player%} is true:
  382. if {bedwars.dontmove} is true:
  383. if "%player%" is "%{bedwars.player.blue}%":
  384. wait 5 ticks
  385. teleport player to {bedwars.location.spawnblue}
  386. stop
  387. if "%player%" is "%{bedwars.player.red}%":
  388. wait 5 ticks
  389. teleport player to {bedwars.location.spawnred}
  390. stop
  391. if "%player%" is "%{bedwars.player.yellow}%":
  392. wait 5 ticks
  393. teleport player to {bedwars.location.spawnyellow}
  394. stop
  395. if "%player%" is "%{bedwars.player.green}%":
  396. wait 5 ticks
  397. teleport player to {bedwars.location.spawngreen}
  398. stop
  399.  
  400. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  401.  
  402. on break of bed:
  403. if "%player%" != "%{bedwars.player.blue}%":
  404. cancel event
  405. add type of block to {BedType::*}
  406. add location of block to {BedLoc::*}
  407. set block at event-block to air
  408. loop all blocks in radius 6 around event-location:
  409. if loop-blocks is blue wool:
  410. {bedwars.bed.%{bedwars.player.blue}%} = 1
  411. send "{@Prefixbedwars} %{BreakBlue}%" to {bedwars.players::*}
  412. set {bedwars.bed.%{bedwars.player.blue}%} to 0
  413. edit score id "lettoblue.%{bedwars.players::1}%" to "&9Blue: &c❤" and 6
  414. edit score id "lettoblue.%{bedwars.players::2}%" to "&9Blue: &c❤" and 6
  415. edit score id "lettoblue.%{bedwars.players::3}%" to "&9Blue: &c❤" and 6
  416. edit score id "lettoblue.%{bedwars.players::4}%" to "&9Blue: &c❤" and 6
  417. cancel event
  418.  
  419. on break of bed:
  420. if "%player%" != "%{bedwars.player.red}%":
  421. cancel event
  422. add type of block to {BedType::*}
  423. add location of block to {BedLoc::*}
  424. set block at event-block to air
  425. loop all blocks in radius 6 around event-location:
  426. if loop-blocks is red wool:
  427. {bedwars.bed.%{bedwars.player.red}%} = 1
  428. send "{@Prefixbedwars} %{BreakRed}%" to {bedwars.players::*}
  429. set {bedwars.bed.%{bedwars.player.red}%} to 0
  430. edit score id "lettored.%{bedwars.players::1}%" to "&cRed: &c❤" and 8
  431. edit score id "lettored.%{bedwars.players::2}%" to "&cRed: &c❤" and 8
  432. edit score id "lettored.%{bedwars.players::3}%" to "&cRed: &c❤" and 8
  433. edit score id "lettored.%{bedwars.players::4}%" to "&cRed: &c❤" and 8
  434. cancel event
  435.  
  436. on break of bed:
  437. if "%player%" != "%{bedwars.player.yellow}%":
  438. cancel event
  439. add type of block to {BedType::*}
  440. add location of block to {BedLoc::*}
  441. set block at event-block to air
  442. loop all blocks in radius 6 around event-location:
  443. if loop-blocks is yellow wool:
  444. {bedwars.bed.%{bedwars.player.yellow}%} = 1
  445. send "{@Prefixbedwars} %{BreakYellow}%" to {bedwars.players::*}
  446. set {bedwars.bed.%{bedwars.player.yellow}%} to 0
  447. edit score id "lettoyellow.%{bedwars.players::1}%" to "&eYellow: &c❤" and 2
  448. edit score id "lettoyellow.%{bedwars.players::2}%" to "&eYellow: &c❤" and 2
  449. edit score id "lettoyellow.%{bedwars.players::3}%" to "&eYellow: &c❤" and 2
  450. edit score id "lettoyellow.%{bedwars.players::4}%" to "&eYellow: &c❤" and 2
  451. cancel event
  452.  
  453.  
  454. on break of bed:
  455. if "%player%" != "%{bedwars.player.green}%":
  456. cancel event
  457. add type of block to {BedType::*}
  458. add location of block to {BedLoc::*}
  459. set block at event-block to air
  460. loop all blocks in radius 6 around event-location:
  461. if loop-blocks is green wool:
  462. {bedwars.bed.%{bedwars.player.green}%} = 1
  463. send "{@Prefixbedwars} %{BreakGreen}%" to {bedwars.players::*}
  464. set {bedwars.bed.%{bedwars.player.green}%} to 0
  465. edit score id "lettogreen.%{bedwars.players::1}%" to "&eGreen: &c❤" and 2
  466. edit score id "lettogreen.%{bedwars.players::2}%" to "&eGreen: &c❤" and 2
  467. edit score id "lettogreen.%{bedwars.players::3}%" to "&eGreen: &c❤" and 2
  468. edit score id "lettogreen.%{bedwars.players::4}%" to "&eGreen: &c❤" and 2
  469. cancel event
  470.  
  471. # PRIVACY 11/7/2017 - Unlegit_Denis ™
  472.  
  473. command /bwshop§ [<text>] [<text>]:
  474. trigger:
  475. if arg 1 isn't set:
  476. open chest with 1 rows named "&8Shop" to player
  477. wait 3 ticks
  478. format slot 1 of player with steak named "&6Cibo" to run [make player execute command "/bwshop§ tavernier"]
  479. format slot 3 of player with iron sword named "&dArmi" to run [make player execute command "/bwshop§ terroriste"]
  480. format slot 5 of player with sandstone named "&bBlocchi" to run [make player execute command "/bwshop§ batisseur"]
  481. format slot 7 of player with iron chestplate named "&eArmatura" to run [make player execute command "/bwshop§ armurier"]
  482. if arg 1 is "tavernier":
  483. open chest with 1 rows named "&8Shop" to player
  484. wait 3 ticks
  485. format slot 2 of player with 2 cooked beef with lore "&3Prezzo: &c4 Bronzo" to run [make player execute command "/bwshop§ tavernier steak"]
  486. format slot 3 of player with golden apple:0 with lore "&3Prezzo: &71 Iron" to run [make player execute command "/bwshop§ tavernier goldenapple"]
  487. format slot 5 of player with potion of:373 with lore "&3Prezzo: &b1 Diamante" to run [make player execute command "/bwshop§ tavernier potionregen"]
  488. format slot 6 of player with potion of:438 with lore "&3Prezzo: &b1 Diamante" to run [make player execute command "/bwshop§ tavernier potiondegat"]
  489. if arg 2 is "steak":
  490. if player's inventory contains 4 brick:
  491. remove 4 brick from player's inventory
  492. give 2 steak to player
  493. if arg 2 is "goldenapple":
  494. if player's inventory contains 1 iron ingot:
  495. remove 1 iron ingot from player's inventory
  496. give 1 golden apple:0 to player
  497. if arg 2 is "potionregen":
  498. if player's inventory contains 1 diamond:
  499. remove 1 diamond from player's inventory
  500. give 1 potion of:373 to player
  501. if arg 2 is "potiondegat":
  502. if player's inventory contains 1 diamond:
  503. remove 1 diamond from player's inventory
  504. give 1 potion of:438 to player
  505. if arg 1 is "terroriste":
  506. open chest with 1 rows named "&8Shop" to player
  507. wait 3 ticks
  508. format slot 0 of player with iron sword of sharpness 2, knockback 1 named "&bSpada III" with lore "&3Prezzo: &77 Irons" to run [make player execute command "/bwshop§ terroriste epee3"]
  509. format slot 1 of player with iron sword of sharpness 2 named "&bSpada II" with lore "&3Prezzo: &73 Irons" to run [make player execute command "/bwshop§ terroriste epee2"]
  510. format slot 2 of player with iron sword of sharpness 1 named "&bSpada I" with lore "&3Prezzo: &71 Iron" to run [make player execute command "/bwshop§ terroriste epee1"]
  511. format slot 3 of player with diamond sword of sharpness 2, knockback 1 named "&bSpada IV" with lore "&3Prezzo: &b1 Diamante &3e &75 Iron" to run [make player execute command "/bwshop§ terroriste epee4"]
  512. format slot 6 of player with tnt with lore "&3Prezzo: &73 Irons" to run [make player execute command "/bwshop§ terroriste tnt"]
  513. format slot 7 of player with 3 tnt with lore "&3Prezzo: &b1 Diamante" to run [make player execute command "/bwshop§ terroriste tnt2"]
  514. format slot 8 of player with 259 with lore "&3Prezzo: &e1 Oro" to run [make player execute command "/bwshop§ terroriste briquet"]
  515. if arg 2 is "epee3":
  516. if player's inventory contains 7 iron ingot:
  517. remove 7 iron ingot from player's inventory
  518. give iron sword of sharpness 2, knockback 1 named "&bSpada III" to player
  519. if arg 2 is "epee2":
  520. if player's inventory contains 3 iron ingot:
  521. remove 3 iron ingot from player's inventory
  522. give iron sword of sharpness 2 named "&bSpada II" to player
  523. if arg 2 is "epee1":
  524. if player's inventory contains 1 iron ingot:
  525. remove 1 iron ingot from player's inventory
  526. give iron sword of sharpness 1 named "&bSpada I" to player
  527. if arg 2 is "epee4":
  528. if player's inventory contains 1 diamond and 5 iron ingot:
  529. remove 5 iron ingot from player's inventory
  530. remove 1 diamond from player's inventory
  531. give diamond sword of sharpness 2, knockback 1 named "&bSpada III" to player
  532. if arg 1 is "batisseur":
  533. open chest with 1 rows named "&8Shop" to player
  534. wait 3 ticks
  535. format slot 1 of player with 4 sand stone:2 with lore "&3Prezzo: &c1 Bronzo" to run [make player execute command "/bwshop§ batisseur smoothsandstone"]
  536. format slot 2 of player with end stone with lore "&3Prezzo: &c4 Bronzo" to run [make player execute command "/bwshop§ batisseur endstone"]
  537. format slot 3 of player with iron pickaxe of efficiency 1 with lore "&3Prezzo: &c4 Bronzo" to run [make player execute command "/bwshop§ batisseur pioche1"]
  538. format slot 5 of player with iron pickaxe of efficiency 2 with lore "&3Prezzo: &72 Iron" to run [make player execute command "/bwshop§ batisseur pioche2"]
  539. format slot 6 of player with diamond pickaxe of efficiency 3 with lore "&3Prezzo: &e1 Oro" to run [make player execute command "/bwshop§ batisseur pioche3"]
  540. if arg 2 is "smoothsandstone":
  541. if player's inventory contains 1 brick:
  542. remove 1 brick: from player's inventory
  543. give 4 sand stone:2 to player
  544. if arg 2 is "endstone":
  545. if player's inventory contains 4 brick:
  546. remove 4 brick: from player's inventory
  547. give end stone to player
  548. if arg 2 is "pioche1":
  549. if player's inventory contains 4 brick:
  550. remove 4 brick: from player's inventory
  551. give iron pickaxe of efficiency 1 to player
  552. if arg 2 is "pioche2":
  553. if player's inventory contains 2 iron ingot:
  554. remove 2 iron ingot: from player's inventory
  555. give iron pickaxe of efficiency 2 to player
  556. if arg 2 is "pioche3":
  557. if player's inventory contains 1 golden ingot:
  558. remove 1 golden ingot: from player's inventory
  559. give diamond pickaxe of efficiency 3 to player
  560. if arg 1 is "armurier":
  561. open chest with 1 rows named "&8Shop" to player
  562. wait 3 ticks
  563. format slot 0 of player with leather chestplate named "&bArmatura I" with lore "&3Prezzo: &c2 Bronzo" to run [make player execute command "/bwshop§ armurier Armatura1"]
  564. format slot 1 of player with leather chestplate of protection 1 named "&bArmatura II" with lore "&3Prezzo: &72 Iron" to run [make player execute command "/bwshop§ armurier Armatura2"]
  565. format slot 2 of player with leather chestplate of protection 1 named "&bArmatura II" with lore "&3Prezzo: &c15 Bronzo" to run [make player execute command "/bwshop§ armurier Armatura22"]
  566. format slot 6 of player with leather chestplate of protection 2 named "&bArmatura III" with lore "&3Prezzo: &e1 Oro" to run [make player execute command "/bwshop§ armurier Armatura3"]
  567. format slot 7 of player with leather chestplate of protection 2 named "&bArmatura III" with lore "&3Prezzo: &b1 Diamante" to run [make player execute command "/bwshop§ armurier Armatura33"]
  568. if arg 2 is "Armatura1":
  569. if player's inventory contains 2 brick:
  570. remove 1 brick from player's inventory
  571. give leather chestplate named "&3Armatura I" to player
  572. if arg 2 is "Armatura2":
  573. if player's inventory contains 2 iron ingot:
  574. remove 2 iron ingot from player's inventory
  575. give leather chestplate of protection 1 named "&3Armatura II" to player
  576. if arg 2 is "Armatura22":
  577. if player's inventory contains 15 brick:
  578. remove 15 brick from player's inventory
  579. give leather chestplate of protection 1 named "&3Armatura II" to player
  580. if arg 2 is "Armatura3":
  581. if player's inventory contains 1 golden ingot:
  582. remove 1 golden ingot from player's inventory
  583. give leather chestplate of protection 2 named "&3Armatura III" to player
  584. if arg 2 is "Armatura33":
  585. if player's inventory contains 1 diamond:
  586. remove 1 diamond from player's inventory
  587. give leather chestplate of protection 2 named "&3Armatura III" to player
  588.  
  589. # PRIVACY 11/7/2017 - Unlegit_Denis ™
Add Comment
Please, Sign In to add comment