Advertisement
Guest User

RMaquinas

a guest
Aug 19th, 2017
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.94 KB | None | 0 0
  1. # ▒██████ ▒██████████ #
  2. # ▒██ ▒██ ▒████ ▒███████ ▒████ ▒███████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒████████ ▒████████ #
  3. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▀▀ #
  4. # ▒██ ▒██ ▒██ ▒██ ▒███████ ▒██ ▒██ ▒███████ ▒██ ▒██████████ ▒████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  5. # ▒██████ ▒████████ ▒██ ▒████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒██ ▒██ #
  6. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ #
  7. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒███████ ▒███████ ▒██████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  8.  
  9. options:
  10. Itemslime: slime named "&aBola de Slime" with lore "&f||&7A bola de slime é produzido||&7pela maquina de Slime, e o||&7mesmo pode ser vendido no /spawn.||&7"
  11. Precoslime: 3.9
  12. Itemxp: xp bottle named "&3Pote Xp" with lore "&f||&7O pote xp é produzido||&7pela maquina de Xp, e o||&7mesmo pode ser vendido no /spawn.||&7"
  13. Precoxp: 5
  14. Itemferro: iron ingot named "&6Ferro comprimido" with lore "&f||&7O ferro compactado é produzido||&7pela maquina de Ferro, e o||&7mesmo pode ser vendido no /spawn.||&7"
  15. Precoferro: 6.25
  16. Itememe: emerald named "&aEsmeralda pura" with lore "&f||&7A Esmeralda pura é produzido||&7pela maquina de Esmeralda, e o||&7mesmo pode ser vendido no /spawn.||&7"
  17. Precoeme: 7.88
  18. Itemdima: diamond named "&bDiamante puro" with lore "&f||&7O diamante puro é produzido||&7pela maquina de Diamante, e o||&7mesmo pode ser vendido no /spawn.||&7"
  19. Precodima: 9.42
  20.  
  21. function SpawnMaquinas(p: player):
  22. spawn a villager at location of {_p}
  23. set name of last spawned villager to "&f&lMAQUINAS"
  24. add "{NoAI:1}" to nbt of last spawned villager
  25. add "{Gravity:1}" to nbt of last spawned villager
  26.  
  27. function RemoveMaquinas(p: player):
  28. loop all entities:
  29. if name of loop-entity is "&f&lMAQUINAS":
  30. clear loop-entity
  31.  
  32. on damage:
  33. if name of victim is "&f&lMAQUINAS":
  34. if victim is villager:
  35. cancel event
  36.  
  37. on rightclick on villager:
  38. if name of clicked entity is "&f&lMAQUINAS":
  39. cancel event
  40. make player execute command "/maquinasdoshoppracomprar"
  41.  
  42. command /canceladoacomprarmaquinas:
  43. trigger:
  44. send action bar from "&8&lCOMBUSTIVEL &fCompra cancelada..." to player
  45.  
  46. command /maquinasdoshoppracomprar:
  47. trigger:
  48. play "ORB_PICKUP" to player at volume 0.5
  49. open chest with 3 row named "&8Maquinas - Painel" to player
  50. wait a tick
  51. format slot 11 of player with iron block named "&eMaquinas" with lore "||&7Aqui você encontrará todas as||&7maquinas disponiveis.||&7" to run [make player execute command "maquinasdoshoppracomprarmaquinas"]
  52. format slot 15 of player with charcoal named "&eCombustiveis" with lore "||&7Aqui você encontrará todos os||&7combustiveis disponiveis.||&7" to run [make player execute command "maquinasdoshoppracomprarcombustivel"]
  53. format slot 13 of player with iron ingot named "&eDrops" with lore "||&7Aqui você encontrará todos os||&7drops de maquinas para serem||&7vendidas..||&7" to run [make player execute command "maquinasdoshoppravenderitens"]
  54.  
  55. command /maquinasdoshoppracomprarmaquinas:
  56. trigger:
  57. play "ORB_PICKUP" to player at volume 0.5
  58. open chest with 3 row named "&8Maquinas - Shop" to player
  59. wait a tick
  60. format slot 11 of player with slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||||&7Quantidade: &f1||&7Preço: &f30,000||&f" to run [make player execute command "slimecomprardalojadasmaquinasconfirmar"]
  61. format slot 12 of player with quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||||&7Quantidade: &f1||&7Preço: &f40,000||&f" to run [make player execute command "xpcomprardalojadasmaquinasconfirmar"]
  62. format slot 13 of player with iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||||&7Quantidade: &f1||&7Preço: &f50,000||&f" to run [make player execute command "ferrocomprardalojadasmaquinasconfirmar"]
  63. format slot 14 of player with emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra Raro||||&7Quantidade: &f1||&7Preço: &f90,000||&f" to run [make player execute command "esmeraldacomprardalojadasmaquinasconfirmar"]
  64. format slot 15 of player with diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||||&7Quantidade: &f1||&7Preço: &f120,000||&f" to run [make player execute command "dimacomprardalojadasmaquinasconfirmar"]
  65. format slot 26 of player with arrow named "&eRetornar" with lore "||&7Para retornal para o painel central.||&f" to run [make player execute command "maquinasdoshoppracomprar"]
  66.  
  67.  
  68. command /dimacomprardalojadasmaquinasconfirmar:
  69. trigger:
  70. play "ORB_PICKUP" to player at volume 0.5
  71. open chest with 3 row named "&8Maquinas - Confirmação" to player
  72. wait 4 tick
  73. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comproudimadamaquinas"]
  74. format slot 13 of player with a diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f||||&7Quantidade: &f1||&7Preço: &f120,000||&f" to be unstealable
  75. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  76.  
  77. command /venderoslimedasmaquinasnomaquina:
  78. trigger:
  79. set {_size} to number of {@Itemslime} in player's inventory
  80. if {_size} > 0:
  81. set {_quantidade} to {_size} * {@Precoslime}
  82. remove {_size} of {@Itemslime} from player's inventory
  83. add {_quantidade} to player's balance
  84. send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
  85. show mob spawner flames at player
  86. else:
  87. send action bar from "&f&lDROPS &fVocê não tem slime para vender." to player
  88.  
  89. command /venderoxpdasmaquinasnomaquina:
  90. trigger:
  91. set {_size} to number of {@Itemxp} in player's inventory
  92. if {_size} > 0:
  93. set {_quantidade} to {_size} * {@Precoxp}
  94. remove {_size} of {@Itemxp} from player's inventory
  95. add {_quantidade} to player's balance
  96. send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
  97. show mob spawner flames at player
  98. else:
  99. send action bar from "&f&lDROPS &fVocê não tem xp para vender." to player
  100.  
  101. command /venderoferrodasmaquinasnomaquina:
  102. trigger:
  103. set {_size} to number of {@Itemferro} in player's inventory
  104. if {_size} > 0:
  105. set {_quantidade} to {_size} * {@Precoferro}
  106. remove {_size} of {@Itemferro} from player's inventory
  107. add {_quantidade} to player's balance
  108. send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
  109. show mob spawner flames at player
  110. else:
  111. send action bar from "&f&lDROPS &fVocê não tem ferro para vender." to player
  112.  
  113. command /venderoesmeraldadasmaquinasnomaquina:
  114. trigger:
  115. set {_size} to number of {@Itememe} in player's inventory
  116. if {_size} > 0:
  117. set {_quantidade} to {_size} * {@Precoeme}
  118. remove {_size} of {@Itememe} from player's inventory
  119. add {_quantidade} to player's balance
  120. send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
  121. show mob spawner flames at player
  122. else:
  123. send action bar from "&f&lDROPS &fVocê não tem esmeralda para vender." to player
  124.  
  125. command /venderodimasmaquinasnomaquina:
  126. trigger:
  127. set {_size} to number of {@Itemdima} in player's inventory
  128. if {_size} > 0:
  129. set {_quantidade} to {_size} * {@Precodima}
  130. remove {_size} of {@Itemdima} from player's inventory
  131. add {_quantidade} to player's balance
  132. send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
  133. show mob spawner flames at player
  134. else:
  135. send action bar from "&f&lDROPS &fVocê não tem diamante para vender." to player
  136.  
  137.  
  138. command /maquinasdoshoppravenderitens:
  139. trigger:
  140. play "ORB_PICKUP" to player at volume 0.5
  141. open chest with 3 row named "&8Itens - Shop" to player
  142. wait a tick
  143. format slot 11 of player with slime named "&aBola de Slime" with lore "||&7Preço de venda:||||&7Cada um: &f3,90||&7Cada pack: &f246,60||&7Cada inventario: &f8,763,00||&f" to close then run [make player execute command "venderoslimedasmaquinasnomaquina"]
  144. format slot 12 of player with xp bottle named "&3Pote de Xp" with lore "||&7Preço de venda:||||&7Cada um: &f5,00||&7Cada pack: &f320,00||&7Cada inventario: &f11,200,00||&f" to close then run [make player execute command "venderoxpdasmaquinasnomaquina"]
  145. format slot 13 of player with iron ingot named "&6Ferro comprimido" with lore "||&7Preço de venda:||||&7Cada um: &f6,25||&7Cada pack: &f400,0||&7Cada inventario: &f14,000,00||&f" to close then run [make player execute command "venderoferrodasmaquinasnomaquina"]
  146. format slot 14 of player with emerald named "&aEsmeralda pura" with lore "||&7Preço de venda:||||&7Cada um: &f7,88||&7Cada pack: &f448,000,0||&7Cada inventario: &f17,651,20||&f" to close then run [make player execute command "venderoesmeraldadasmaquinasnomaquina"]
  147. format slot 15 of player with diamond named "&bDiamante puro" with lore "||&7Preço de venda:||||&7Cada um: &f9,42||&7Cada pack: &f602,88||&7Cada inventario: &f21,100,80||&f" to close then run [make player execute command "venderodimasmaquinasnomaquina"]
  148. format slot 26 of player with arrow named "&eRetornar" with lore "||&7Para retornal para o painel central.||&f" to run [make player execute command "maquinasdoshoppracomprar"]
  149.  
  150.  
  151.  
  152. command /comproudimadamaquinas:
  153. trigger:
  154. if player's balance is more or equal to 120000:
  155. send "&7Processensando, aguarde..."
  156. wait 2 seconds
  157. send "&7Processensando concluido."
  158. wait 1 second
  159. remove 120000 from player's balance
  160. give 1 diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f" to player
  161. send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de diamante." to player
  162. stop
  163. else:
  164. send "&7Processensando, aguarde..."
  165. wait 2 seconds
  166. send "&7Processensando não aceito."
  167. wait 1 second
  168. send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
  169.  
  170. command /esmeraldacomprardalojadasmaquinasconfirmar:
  171. trigger:
  172. play "ORB_PICKUP" to player at volume 0.5
  173. open chest with 3 row named "&8Maquinas - Confirmação" to player
  174. wait 4 tick
  175. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comprouesmeraldadamaquinas"]
  176. format slot 13 of player with a emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f||||&7Quantidade: &f1||&7Preço: &f90,000||&f" to be unstealable
  177. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  178.  
  179.  
  180. command /comprouesmeraldadamaquinas:
  181. trigger:
  182. if player's balance is more or equal to 90000:
  183. send "&7Processensando, aguarde..."
  184. wait 2 seconds
  185. send "&7Processensando concluido."
  186. wait 1 second
  187. remove 90000 from player's balance
  188. give 1 emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f" to player
  189. send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de esmeralda." to player
  190. stop
  191. else:
  192. send "&7Processensando, aguarde..."
  193. wait 2 seconds
  194. send "&7Processensando não aceito."
  195. wait 1 second
  196. send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
  197.  
  198.  
  199. command /slimecomprardalojadasmaquinasconfirmar:
  200. trigger:
  201. play "ORB_PICKUP" to player at volume 0.5
  202. open chest with 3 row named "&8Maquinas - Confirmação" to player
  203. wait 4 tick
  204. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comprouslimedamaquinas"]
  205. format slot 13 of player with a slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f||||&7Quantidade: &f1||&7Preço: &f30,000||&f" to be unstealable
  206. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  207.  
  208.  
  209. command /comprouslimedamaquinas:
  210. trigger:
  211. if player's balance is more or equal to 30000:
  212. send "&7Processensando, aguarde..."
  213. wait 2 seconds
  214. send "&7Processensando concluido."
  215. wait 1 second
  216. remove 30000 from player's balance
  217. give 1 slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f" to player
  218. send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de slime." to player
  219. stop
  220. else:
  221. send "&7Processensando, aguarde..."
  222. wait 2 seconds
  223. send "&7Processensando não aceito."
  224. wait 1 second
  225. send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
  226.  
  227. command /xpcomprardalojadasmaquinasconfirmar:
  228. trigger:
  229. play "ORB_PICKUP" to player at volume 0.5
  230. open chest with 3 row named "&8Maquinas - Confirmação" to player
  231. wait 4 tick
  232. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comprouxpdamaquinas"]
  233. format slot 13 of player with a quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f||||&7Quantidade: &f1||&7Preço: &f40,000||&f" to be unstealable
  234. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  235.  
  236.  
  237. command /comprouxpdamaquinas:
  238. trigger:
  239. if player's balance is more or equal to 40000:
  240. send "&7Processensando, aguarde..."
  241. wait 2 seconds
  242. send "&7Processensando concluido."
  243. wait 1 second
  244. remove 40000 from player's balance
  245. give 1 quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f" to player
  246. send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de xp." to player
  247. stop
  248. else:
  249. send "&7Processensando, aguarde..."
  250. wait 2 seconds
  251. send "&7Processensando não aceito."
  252. wait 1 second
  253. send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
  254.  
  255.  
  256. command /ferrocomprardalojadasmaquinasconfirmar:
  257. trigger:
  258. play "ORB_PICKUP" to player at volume 0.5
  259. open chest with 3 row named "&8Maquinas - Confirmação" to player
  260. wait 4 tick
  261. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comprouferrodamaquinas"]
  262. format slot 13 of player with a iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f||||&7Quantidade: &f1||&7Preço: &f50,000||&f" to be unstealable
  263. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  264.  
  265.  
  266. command /comprouferrodamaquinas:
  267. trigger:
  268. if player's balance is more or equal to 50000:
  269. send "&7Processensando, aguarde..."
  270. wait 2 seconds
  271. send "&7Processensando concluido."
  272. wait 1 second
  273. remove 50000 from player's balance
  274. give 1 iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f" to player
  275. send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de ferro." to player
  276. stop
  277. else:
  278. send "&7Processensando, aguarde..."
  279. wait 2 seconds
  280. send "&7Processensando não aceito."
  281. wait 1 second
  282. send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289. command /maquinasdoshoppracomprarcombustivel:
  290. trigger:
  291. play "ORB_PICKUP" to player at volume 0.5
  292. open chest with 3 row named "&8Combustivel - Shop" to player
  293. wait a tick
  294. format slot 12 of player with charcoal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f||||&7Quantidade: &f1||&7Preço: &f4,000||&f" to run [make player execute command "gasolinacomprardalojadasmaquinasconfirmar"]
  295. format slot 13 of player with charcoal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f||||&7Quantidade: &f1||&7Preço: &f5,500||&f" to run [make player execute command "dieselcomprardalojadasmaquinasconfirmar"]
  296. format slot 14 of player with charcoal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f||||&7Quantidade: &f1||&7Preço: &f8,000||&f" to run [make player execute command "eletricacomprardalojadasmaquinasconfirmar"]
  297. format slot 26 of player with arrow named "&eRetornar" with lore "||&7Para retornal para o painel central.||&f" to run [make player execute command "maquinasdoshoppracomprar"]
  298.  
  299. command /eletricacomprardalojadasmaquinasconfirmar:
  300. trigger:
  301. play "ORB_PICKUP" to player at volume 0.5
  302. open chest with 3 row named "&8Maquinas - Confirmação" to player
  303. wait 4 tick
  304. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comproueletricadamaquinas"]
  305. format slot 13 of player with a charcoal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f||||&7Quantidade: &f1||&7Preço: &f8,000||&f" to be unstealable
  306. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  307.  
  308.  
  309. command /comproueletricadamaquinas:
  310. trigger:
  311. if player's balance is more or equal to 8000:
  312. send "&7Processensando, aguarde..."
  313. wait 2 seconds
  314. send "&7Processensando concluido."
  315. wait 1 second
  316. remove 8000 from player's balance
  317. give 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" to player
  318. send action bar from "&8&lCOMBUSTIVEL &fVocê comprou uma combustivel de eletricidade." to player
  319. stop
  320. else:
  321. send "&7Processensando, aguarde..."
  322. wait 2 seconds
  323. send "&7Processensando não aceito."
  324. wait 1 second
  325. send action bar from "&8&lCOMBUSTIVEL &fSeu saldo é insuficiente." to player
  326.  
  327.  
  328. command /dieselcomprardalojadasmaquinasconfirmar:
  329. trigger:
  330. play "ORB_PICKUP" to player at volume 0.5
  331. open chest with 3 row named "&8Maquinas - Confirmação" to player
  332. wait 4 tick
  333. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comproudieseldamaquinas"]
  334. format slot 13 of player with a charcoal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f||||&7Quantidade: &f1||&7Preço: &f5,500||&f" to be unstealable
  335. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  336.  
  337.  
  338. command /comproudieseldamaquinas:
  339. trigger:
  340. if player's balance is more or equal to 5500:
  341. send "&7Processensando, aguarde..."
  342. wait 2 seconds
  343. send "&7Processensando concluido."
  344. wait 1 second
  345. remove 5500 from player's balance
  346. give 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" to player
  347. send action bar from "&8&lCOMBUSTIVEL &fVocê comprou uma combustivel de diesel." to player
  348. stop
  349. else:
  350. send "&7Processensando, aguarde..."
  351. wait 2 seconds
  352. send "&7Processensando não aceito."
  353. wait 1 second
  354. send action bar from "&8&lCOMBUSTIVEL &fSeu saldo é insuficiente." to player
  355.  
  356.  
  357.  
  358. command /gasolinacomprardalojadasmaquinasconfirmar:
  359. trigger:
  360. play "ORB_PICKUP" to player at volume 0.5
  361. open chest with 3 row named "&8Maquinas - Confirmação" to player
  362. wait 4 tick
  363. format slot 11 of player with light green wool named "&aConfirmar" with lore "&7Se deseja confirmar a compra clique aqui.||||&c&lATENÇÃO:||&7A equipe CubeRealm não se resposabiliza por comprar itens errado." to close then run [make player execute command "comprougasolinadamaquinas"]
  364. format slot 13 of player with a charcoal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f||||&7Quantidade: &f1||&7Preço: &f4,000||&f" to be unstealable
  365. format slot 15 of player with red wool named "&cCancelar" with lore "&7Se deseja cancelar a compra clique aqui." to close then run [make player execute command "canceladoacomprarmaquinas"]
  366.  
  367.  
  368. command /comprougasolinadamaquinas:
  369. trigger:
  370. if player's balance is more or equal to 4000:
  371. send "&7Processensando, aguarde..."
  372. wait 2 seconds
  373. send "&7Processensando concluido."
  374. wait 1 second
  375. remove 4000 from player's balance
  376. give 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" to player
  377. send action bar from "&8&lCOMBUSTIVEL &fVocê comprou uma combustivel de gasolina." to player
  378. stop
  379. else:
  380. send "&7Processensando, aguarde..."
  381. wait 2 seconds
  382. send "&7Processensando não aceito."
  383. wait 1 second
  384. send action bar from "&8&lCOMBUSTIVEL &fSeu saldo é insuficiente." to player
  385.  
  386.  
  387.  
  388. on inventory click:
  389. if inventory name of player's current inventory is "&8Maquinas - Painel":
  390. cancel event
  391.  
  392. on inventory click:
  393. if inventory name of player's current inventory is "&8Maquinas - Shop":
  394. cancel event
  395.  
  396. on inventory click:
  397. if inventory name of player's current inventory is "&8Combustivel - Shop":
  398. cancel event
  399.  
  400. on inventory click:
  401. if inventory name of player's current inventory is "&8Maquinas - Confirmação":
  402. cancel event
  403.  
  404.  
  405. command /rmaquinas [<text>]:
  406. trigger:
  407. if player has permission "maquinas.admin":
  408. if arg 1 is "spawnar":
  409. SpawnMaquinas(player)
  410. send action bar from "&f&lMAQUINAS &fFoi setada com sucesso." to player
  411. if arg 1 is "despawnar":
  412. RemoveMaquinas(player)
  413. send action bar from "&f&lMAQUINAS &fFoi removida com sucesso." to player
  414. if arg 1 is not "spawnar" or "despawnar":
  415. send action bar from "&f&lMAQUINAS &fUse /rmaquinas (spawnar/despawnar)." to player
  416. if arg 1 is not set:
  417. send action bar from "&f&lMAQUINAS &fUse /rmaquinas (spawnar/despawnar)." to player
  418. else:
  419. send action bar from "&cSem permissão." to player
  420.  
  421.  
  422. command /darmaquinas [<player>] [<text>] [<integer>]:
  423. trigger:
  424. if player has permission "maquinas.usar":
  425. if arg 1 is set:
  426. if arg 2 is "ferro":
  427. if arg 3 is set:
  428. give arg-3 of iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f" to arg 1
  429. send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f ferros para &7%arg-1%&f." to player
  430. if arg 2 is "slime":
  431. send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f slimes para &7%arg-1%&f." to player
  432. give arg-3 of slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f" to arg 1
  433. if arg 2 is "diamante":
  434. send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f diamante para &7%arg-1%&f." to player
  435. give arg-3 of diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f" to arg 1
  436. if arg 2 is "esmeralda":
  437. send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f esmeralda para &7%arg-1%&f." to player
  438. give arg-3 of emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f" to arg 1
  439. if arg 2 is "xp":
  440. send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f ferros para &7%arg-1%&f." to player
  441. give arg-3 of quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f" to arg 1
  442. if arg 2 is not "slime" or "ferro" or "diamante" or "esmeralda" or "xp":
  443. send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
  444. if arg 2 is not set:
  445. send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
  446. if arg 3 is not set:
  447. send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
  448. if arg 1 is not set:
  449. send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
  450. else:
  451. send action bar from "&cSem permissão." to player
  452.  
  453. command /darcumbustivel [<player>] [<text>] [<integer>]:
  454. trigger:
  455. if arg 1 is set:
  456. if arg 2 is "Diesel":
  457. if arg 3 is set:
  458. give arg-3 of coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" to arg 1
  459. send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f ferros para &7%arg-1%&f." to player
  460. if arg 2 is "gasolina":
  461. send action bar from "&f&lCOMBUSTIVEL &fVocê deu &7%arg-3%&f gasolina para &7%arg-1%&f." to player
  462. give arg-3 of coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" to arg 1
  463. if arg 2 is "eletricidade":
  464. give arg-3 of coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" to arg 1
  465. send action bar from "&f&lCOMBUSTIVEL &fVocê deu &7%arg-3%&f eletricidade para &7%arg-1%&f." to player
  466. if arg 2 is not "diesel" or "gasolina" or "eletricidade":
  467. send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
  468. if arg 2 is not set:
  469. send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
  470. if arg 3 is not set:
  471. send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
  472. else:
  473. send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
  474. #Ferro
  475. on place:
  476. if tool of player is iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f":
  477. send action bar from "&aSua maquina foi colocada com sucesso." to player
  478. create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
  479. add location of block to {ferro::*}
  480. set {ferro.%location of block%} to true
  481. set {maquinas.%location of block%} to true
  482. set {carvão.%location of block%} to 0
  483. set {Diesel.%location of block%} to 0
  484. set {eletrica.%location of block%} to 0
  485. set {usando.%location of block%} to false
  486. set {antidup.%location of block%} to false
  487.  
  488. on break iron block:
  489. if {ferro.%location of block%} is true:
  490. if {usando.%location of block%} is false:
  491. if {antidup.%location of block%} is false:
  492. set {antidup.%location of block%} to true
  493. remove location of block from {ferro::*}
  494. cancel event
  495. delete holo object "%location of block%.ferrodesligado"
  496. wait 5 tick
  497. create holo object "&eMaquina de Ferro;&fQuebrando..." with id "%location of block%.ferroquebrando" at location 1.0 meters above location of block
  498. wait 2 seconds
  499. delete holo object "%location of block%.ferroquebrando"
  500. set {ferro.%location of block%} to false
  501. send action bar from "&cVocê quebrou sua maquina com sucesso." to player
  502. set block at event-block to air
  503. give 1 iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f" to player
  504. wait 3 tick
  505. set {maquinas.%location of block%} to false
  506. set {usando.%location of block%} to false
  507. set {antidup.%location of block%} to false
  508. else:
  509. cancel event
  510. send action bar from "&cAguarde a maquina ser quebrada" to player
  511. else:
  512. cancel event
  513. send action bar from "&cAguarde o combustivel acabar." to player
  514. delete holo object "%location of block%.ferroligada"
  515. wait 5 tick
  516. create holo object "&eMaquina de Ferro;&fAguarde..." with id "%location of block%.ferroaguarde" at location 1.0 meters above location of block
  517. wait 2 seconds
  518. delete holo object "%location of block%.ferroaguarde"
  519. wait 5 tick
  520. create holo object "&eMaquina de Ferro;&fLigada" with id "%location of block%.ferroligada" at location 1.0 meters above location of block
  521.  
  522. #Gasolina
  523. on right click on iron block:
  524. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
  525. if {maquinas.%location of block%} is true:
  526. if {usando.%location of block%} is false:
  527. delete holo object "%location of block%.ferrodesligado"
  528. wait 5 tick
  529. create holo object "&eMaquina de Ferro;&fLigada..." with id "%location of block%.ferroligada" at location 1.0 meters above location of block
  530. set {usando.%location of block%} to true
  531. add 30 to {carvão.%location of block%}
  532. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  533. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
  534. wait 1 minute
  535. delete holo object "%location of block%.ferroligada"
  536. wait 5 tick
  537. create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
  538. set {usando.%location of block%} to false
  539. send action bar from "&cO combustivel da maquina acabou" to player
  540. else:
  541. send action bar from "&6Está maquina já foi abastecida." to player
  542. else:
  543. send action bar from "&eIsto não é uma maquina.." to player
  544.  
  545. #Diesel
  546. on right click on iron block:
  547. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
  548. if {maquinas.%location of block%} is true:
  549. if {usando.%location of block%} is false:
  550. delete holo object "%location of block%.ferrodesligado"
  551. wait 5 tick
  552. create holo object "&eMaquina de Ferro;&fLigada..." with id "%location of block%.ferroligada" at location 1.0 meters above location of block
  553. set {usando.%location of block%} to true
  554. add 150 to {Diesel.%location of block%}
  555. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  556. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
  557. wait 5 minute
  558. delete holo object "%location of block%.ferroligada"
  559. wait 5 tick
  560. create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
  561. set {usando.%location of block%} to false
  562. send action bar from "&cO combustivel da maquina acabou" to player
  563. else:
  564. send action bar from "&6Está maquina já foi abastecida." to player
  565. else:
  566. send action bar from "&eIsto não é uma maquina.." to player
  567.  
  568. #Eletricidade
  569. on right click on iron block:
  570. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
  571. if {maquinas.%location of block%} is true:
  572. if {usando.%location of block%} is false:
  573. delete holo object "%location of block%.ferrodesligado"
  574. wait 5 tick
  575. create holo object "&eMaquina de Ferro;&fLigada..." with id "%location of block%.ferroligada" at location 1.0 meters above location of block
  576. set {usando.%location of block%} to true
  577. add 300 to {eletrica.%location of block%}
  578. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  579. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
  580. wait 10 minute
  581. delete holo object "%location of block%.ferroligada"
  582. wait 5 tick
  583. create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
  584. set {usando.%location of block%} to false
  585. send action bar from "&cO combustivel da maquina acabou" to player
  586. else:
  587. send action bar from "&6Está maquina já foi abastecida." to player
  588. else:
  589. send action bar from "&eIsto não é uma maquina.." to player
  590.  
  591. every 2 second:
  592. loop {ferro::*}:
  593. if {carvão.%loop-value%} >= 1:
  594. drop 10 iron ingot named "&6Ferro comprimido" with lore "&f||&7O ferro compactado é produzido||&7pela maquina de Ferro, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  595. remove 1 from {carvão.%loop-value%}
  596.  
  597. every 2 second:
  598. loop {ferro::*}:
  599. if {Diesel.%loop-value%} >= 1:
  600. drop 10 iron ingot named "&6Ferro comprimido" with lore "&f||&7O ferro compactado é produzido||&7pela maquina de Ferro, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  601. remove 1 from {Diesel.%loop-value%}
  602.  
  603. every 2 second:
  604. loop {ferro::*}:
  605. if {eletrica.%loop-value%} >= 1:
  606. drop 10 iron ingot named "&6Ferro comprimido" with lore "&f||&7O ferro compactado é produzido||&7pela maquina de Ferro, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  607. remove 1 from {eletrica.%loop-value%}
  608.  
  609. #Slime
  610. on place:
  611. if tool of player is slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f":
  612. send action bar from "&aSua maquina foi colocada com sucesso." to player
  613. create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
  614. add location of block to {slime::*}
  615. set {slime.%location of block%} to true
  616. set {maquinas.%location of block%} to true
  617. set {carvão.%location of block%} to 0
  618. set {Diesel.%location of block%} to 0
  619. set {eletrica.%location of block%} to 0
  620. set {usando.%location of block%} to false
  621. set {antidup.%location of block%} to false
  622. on break slime block:
  623. if {slime.%location of block%} is true:
  624. if {usando.%location of block%} is false:
  625. if {antidup.%location of block%} is false:
  626. set {antidup.%location of block%} to true
  627. remove location of block from {slime::*}
  628. cancel event
  629. delete holo object "%location of block%.slimedesligado"
  630. wait 5 tick
  631. create holo object "&eMaquina de Slime;&fQuebrando..." with id "%location of block%.slimequebrando" at location 1.0 meters above location of block
  632. wait 2 seconds
  633. delete holo object "%location of block%.slimequebrando"
  634. set {slime.%location of block%} to false
  635. send action bar from "&cVocê quebrou sua maquina com sucesso." to player
  636. set block at event-block to air
  637. give 1 slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f" to player
  638. wait 3 tick
  639. set {maquinas.%location of block%} to false
  640. set {usando.%location of block%} to false
  641. set {antidup.%location of block%} to false
  642. else:
  643. cancel event
  644. send action bar from "&cAguarde a maquina ser quebrada" to player
  645. else:
  646. cancel event
  647. send action bar from "&cAguarde o combustivel acabar." to player
  648. delete holo object "%location of block%.slimeligada"
  649. wait 5 tick
  650. create holo object "&eMaquina de Slime;&fAguarde..." with id "%location of block%.slimeaguarde" at location 1.0 meters above location of block
  651. wait 2 seconds
  652. delete holo object "%location of block%.slimeaguarde"
  653. wait 5 tick
  654. create holo object "&eMaquina de Slime;&fLigada" with id "%location of block%.slimeligada" at location 1.0 meters above location of block
  655.  
  656.  
  657. #Gasolina
  658. on right click on slime block:
  659. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
  660. if {maquinas.%location of block%} is true:
  661. if {usando.%location of block%} is false:
  662. delete holo object "%location of block%.slimedesligado"
  663. wait 5 tick
  664. create holo object "&eMaquina de Slime;&fLigada..." with id "%location of block%.slimeligada" at location 1.0 meters above location of block
  665. set {usando.%location of block%} to true
  666. add 30 to {carvão.%location of block%}
  667. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  668. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
  669. wait 1 minute
  670. delete holo object "%location of block%.slimeligada"
  671. wait 5 tick
  672. create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
  673. set {usando.%location of block%} to false
  674. send action bar from "&cO combustivel da maquina acabou" to player
  675. else:
  676. send action bar from "&6Está maquina já foi abastecida." to player
  677. else:
  678. send action bar from "&eIsto não é uma maquina.." to player
  679.  
  680. #Diesel
  681. on right click on slime block:
  682. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
  683. if {maquinas.%location of block%} is true:
  684. if {usando.%location of block%} is false:
  685. delete holo object "%location of block%.slimedesligado"
  686. wait 5 tick
  687. create holo object "&eMaquina de Slime;&fLigada..." with id "%location of block%.slimeligada" at location 1.0 meters above location of block
  688. set {usando.%location of block%} to true
  689. add 150 to {Diesel.%location of block%}
  690. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  691. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
  692. wait 5 minute
  693. delete holo object "%location of block%.slimeligada"
  694. wait 5 tick
  695. create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
  696. set {usando.%location of block%} to false
  697. send action bar from "&cO combustivel da maquina acabou" to player
  698. else:
  699. send action bar from "&6Está maquina já foi abastecida." to player
  700. else:
  701. send action bar from "&eIsto não é uma maquina.." to player
  702.  
  703. #Eletricidade
  704. on right click on slime block:
  705. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
  706. if {maquinas.%location of block%} is true:
  707. if {usando.%location of block%} is false:
  708. delete holo object "%location of block%.slimedesligado"
  709. wait 5 tick
  710. create holo object "&eMaquina de Slime;&fLigada..." with id "%location of block%.slimeligada" at location 1.0 meters above location of block
  711. set {usando.%location of block%} to true
  712. add 300 to {eletrica.%location of block%}
  713. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  714. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
  715. wait 10 minute
  716. delete holo object "%location of block%.slimeligada"
  717. wait 5 tick
  718. create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
  719. set {usando.%location of block%} to false
  720. send action bar from "&cO combustivel da maquina acabou" to player
  721. else:
  722. send action bar from "&6Está maquina já foi abastecida." to player
  723. else:
  724. send action bar from "&eIsto não é uma maquina.." to player
  725.  
  726. every 2 second:
  727. loop {slime::*}:
  728. if {carvão.%loop-value%} >= 1:
  729. drop 10 slime named "&aBola de Slime" with lore "&f||&7A bola de slime é produzido||&7pela maquina de Slime, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  730. remove 1 from {carvão.%loop-value%}
  731.  
  732. every 2 second:
  733. loop {slime::*}:
  734. if {Diesel.%loop-value%} >= 1:
  735. drop 10 slime named "&aBola de Slime" with lore "&f||&7A bola de slime é produzido||&7pela maquina de Slime, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  736. remove 1 from {Diesel.%loop-value%}
  737.  
  738. every 2 second:
  739. loop {slime::*}:
  740. if {eletrica.%loop-value%} >= 1:
  741. drop 10 slime named "&aBola de Slime" with lore "&f||&7A bola de slime é produzido||&7pela maquina de Slime, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  742. remove 1 from {eletrica.%loop-value%}
  743.  
  744. #Diamante
  745. on place:
  746. if tool of player is diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f":
  747. send action bar from "&aSua maquina foi colocada com sucesso." to player
  748. create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
  749. add location of block to {dima::*}
  750. set {dima.%location of block%} to true
  751. set {maquinas.%location of block%} to true
  752. set {carvão.%location of block%} to 0
  753. set {Diesel.%location of block%} to 0
  754. set {eletrica.%location of block%} to 0
  755. set {usando.%location of block%} to false
  756. set {antidup.%location of block%} to false
  757. on break diamond block:
  758. if {dima.%location of block%} is true:
  759. if {usando.%location of block%} is false:
  760. if {antidup.%location of block%} is false:
  761. set {antidup.%location of block%} to true
  762. remove location of block from {dima::*}
  763. cancel event
  764. delete holo object "%location of block%.dimadesligado"
  765. wait 5 tick
  766. create holo object "&eMaquina de Diamante;&fQuebrando..." with id "%location of block%.dimaquebrando" at location 1.0 meters above location of block
  767. wait 2 seconds
  768. delete holo object "%location of block%.dimaquebrando"
  769. set {dima.%location of block%} to false
  770. send action bar from "&cVocê quebrou sua maquina com sucesso." to player
  771. set block at event-block to air
  772. give 1 diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f" to player
  773. wait 3 tick
  774. set {maquinas.%location of block%} to false
  775. set {usando.%location of block%} to false
  776. set {antidup.%location of block%} to false
  777. else:
  778. cancel event
  779. send action bar from "&cAguarde a maquina ser quebrada" to player
  780. else:
  781. cancel event
  782. send action bar from "&cAguarde o combustivel acabar." to player
  783. delete holo object "%location of block%.dimaligada"
  784. wait 5 tick
  785. create holo object "&eMaquina de Diamante;&fAguarde..." with id "%location of block%.dimaaguarde" at location 1.0 meters above location of block
  786. wait 2 seconds
  787. delete holo object "%location of block%.dimaaguarde"
  788. wait 5 tick
  789. create holo object "&eMaquina de Diamante;&fLigada" with id "%location of block%.dimaligada" at location 1.0 meters above location of block
  790.  
  791. #Gasolina
  792. on right click on diamond block:
  793. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
  794. if {maquinas.%location of block%} is true:
  795. if {usando.%location of block%} is false:
  796. delete holo object "%location of block%.dimadesligado"
  797. wait 5 tick
  798. create holo object "&eMaquina de Diamante;&fLigada..." with id "%location of block%.dimaligada" at location 1.0 meters above location of block
  799. set {usando.%location of block%} to true
  800. add 20 to {carvão.%location of block%}
  801. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  802. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
  803. wait 1 minute
  804. delete holo object "%location of block%.dimaligada"
  805. wait 5 tick
  806. create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
  807. set {usando.%location of block%} to false
  808. send action bar from "&cO combustivel da maquina acabou" to player
  809. else:
  810. send action bar from "&6Está maquina já foi abastecida." to player
  811. else:
  812. send action bar from "&eIsto não é uma maquina.." to player
  813.  
  814. #Diesel
  815. on right click on diamond block:
  816. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
  817. if {maquinas.%location of block%} is true:
  818. if {usando.%location of block%} is false:
  819. delete holo object "%location of block%.dimadesligado"
  820. wait 5 tick
  821. create holo object "&eMaquina de Diamante;&fLigada..." with id "%location of block%.dimaligada" at location 1.0 meters above location of block
  822. set {usando.%location of block%} to true
  823. add 100 to {Diesel.%location of block%}
  824. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  825. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
  826. wait 5 minute
  827. delete holo object "%location of block%.dimaligada"
  828. wait 5 tick
  829. create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
  830. set {usando.%location of block%} to false
  831. send action bar from "&cO combustivel da maquina acabou" to player
  832. else:
  833. send action bar from "&6Está maquina já foi abastecida." to player
  834. else:
  835. send action bar from "&eIsto não é uma maquina.." to player
  836.  
  837. #Eletricidade
  838. on right click on diamond block:
  839. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
  840. if {maquinas.%location of block%} is true:
  841. if {usando.%location of block%} is false:
  842. delete holo object "%location of block%.dimadesligado"
  843. wait 5 tick
  844. create holo object "&eMaquina de Diamante;&fLigada..." with id "%location of block%.dimaligada" at location 1.0 meters above location of block
  845. set {usando.%location of block%} to true
  846. add 200 to {eletrica.%location of block%}
  847. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  848. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
  849. wait 10 minute
  850. delete holo object "%location of block%.dimaligada"
  851. wait 5 tick
  852. create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
  853. set {usando.%location of block%} to false
  854. send action bar from "&cO combustivel da maquina acabou" to player
  855. else:
  856. send action bar from "&6Está maquina já foi abastecida." to player
  857. else:
  858. send action bar from "&eIsto não é uma maquina.." to player
  859.  
  860.  
  861. every 3 second:
  862. loop {dima::*}:
  863. if {carvão.%loop-value%} >= 1:
  864. drop 1 diamond named "&bDiamante puro" with lore "&f||&7O diamante puro é produzido||&7pela maquina de Diamante, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  865. remove 1 from {carvão.%loop-value%}
  866.  
  867. every 3 second:
  868. loop {dima::*}:
  869. if {Diesel.%loop-value%} >= 1:
  870. drop 1 diamond named "&bDiamante puro" with lore "&f||&7O diamante puro é produzido||&7pela maquina de Diamante, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  871. remove 1 from {Diesel.%loop-value%}
  872.  
  873. every 3 second:
  874. loop {dima::*}:
  875. if {eletrica.%loop-value%} >= 1:
  876. drop 1 diamond named "&bDiamante puro" with lore "&f||&7O diamante puro é produzido||&7pela maquina de Diamante, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  877. remove 1 from {eletrica.%loop-value%}
  878.  
  879. #Esmeralda
  880. on place:
  881. if tool of player is emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f":
  882. send action bar from "&aSua maquina foi colocada com sucesso." to player
  883. create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
  884. add location of block to {eme::*}
  885. set {eme.%location of block%} to true
  886. set {maquinas.%location of block%} to true
  887. set {carvão.%location of block%} to 0
  888. set {Diesel.%location of block%} to 0
  889. set {eletrica.%location of block%} to 0
  890. set {usando.%location of block%} to false
  891. set {antidup.%location of block%} to false
  892. on break emerald block:
  893. if {eme.%location of block%} is true:
  894. if {usando.%location of block%} is false:
  895. if {antidup.%location of block%} is false:
  896. set {antidup.%location of block%} to true
  897. remove location of block from {eme::*}
  898. cancel event
  899. delete holo object "%location of block%.emedesligado"
  900. wait 5 tick
  901. create holo object "&eMaquina de Esmeralda;&fQuebrando..." with id "%location of block%.emequebrando" at location 1.0 meters above location of block
  902. wait 2 seconds
  903. delete holo object "%location of block%.emequebrando"
  904. set {eme.%location of block%} to false
  905. send action bar from "&cVocê quebrou sua maquina com sucesso." to player
  906. set block at event-block to air
  907. give 1 emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f" to player
  908. wait 3 tick
  909. set {maquinas.%location of block%} to false
  910. set {usando.%location of block%} to false
  911. set {antidup.%location of block%} to false
  912. else:
  913. cancel event
  914. send action bar from "&cAguarde a maquina ser quebrada" to player
  915. else:
  916. cancel event
  917. send action bar from "&cAguarde o combustivel acabar." to player
  918. delete holo object "%location of block%.emeligada"
  919. wait 5 tick
  920. create holo object "&eMaquina de Esmeralda;&fAguarde..." with id "%location of block%.emeaguarde" at location 1.0 meters above location of block
  921. wait 2 seconds
  922. delete holo object "%location of block%.emeaguarde"
  923. wait 5 tick
  924. create holo object "&eMaquina de Esmeralda;&fLigada" with id "%location of block%.emeligada" at location 1.0 meters above location of block
  925.  
  926. #Gasolina
  927. on right click on emerald block:
  928. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
  929. if {maquinas.%location of block%} is true:
  930. if {usando.%location of block%} is false:
  931. delete holo object "%location of block%.emedesligado"
  932. wait 5 tick
  933. create holo object "&eMaquina de Esmeralda;&fLigada..." with id "%location of block%.emeligada" at location 1.0 meters above location of block
  934. set {usando.%location of block%} to true
  935. add 20 to {carvão.%location of block%}
  936. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  937. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
  938. wait 1 minute
  939. delete holo object "%location of block%.emeligada"
  940. wait 5 tick
  941. create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
  942. set {usando.%location of block%} to false
  943. send action bar from "&cO combustivel da maquina acabou" to player
  944. else:
  945. send action bar from "&6Está maquina já foi abastecida." to player
  946. else:
  947. send action bar from "&eIsto não é uma maquina.." to player
  948.  
  949. #Diesel
  950. on right click on emerald block:
  951. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
  952. if {maquinas.%location of block%} is true:
  953. if {usando.%location of block%} is false:
  954. delete holo object "%location of block%.emedesligado"
  955. wait 5 tick
  956. create holo object "&eMaquina de Esmeralda;&fLigada..." with id "%location of block%.emeligada" at location 1.0 meters above location of block
  957. set {usando.%location of block%} to true
  958. add 100 to {Diesel.%location of block%}
  959. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  960. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
  961. wait 5 minute
  962. delete holo object "%location of block%.emeligada"
  963. wait 5 tick
  964. create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
  965. set {usando.%location of block%} to false
  966. send action bar from "&cO combustivel da maquina acabou" to player
  967. else:
  968. send action bar from "&6Está maquina já foi abastecida." to player
  969. else:
  970. send action bar from "&eIsto não é uma maquina.." to player
  971.  
  972. #Eletricidade
  973. on right click on emerald block:
  974. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
  975. if {maquinas.%location of block%} is true:
  976. if {usando.%location of block%} is false:
  977. delete holo object "%location of block%.emedesligado"
  978. wait 5 tick
  979. create holo object "&eMaquina de Esmeralda;&fLigada..." with id "%location of block%.emeligada" at location 1.0 meters above location of block
  980. set {usando.%location of block%} to true
  981. add 200 to {eletrica.%location of block%}
  982. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  983. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
  984. wait 10 minute
  985. delete holo object "%location of block%.emeligada"
  986. wait 5 tick
  987. create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
  988. set {usando.%location of block%} to false
  989. send action bar from "&cO combustivel da maquina acabou" to player
  990. else:
  991. send action bar from "&6Está maquina já foi abastecida." to player
  992. else:
  993. send action bar from "&eIsto não é uma maquina.." to player
  994.  
  995. every 3 second:
  996. loop {eme::*}:
  997. if {carvão.%loop-value%} >= 1:
  998. drop 2 emerald named "&aEsmeralda pura" with lore "&f||&7A Esmeralda pura é produzido||&7pela maquina de Esmeralda, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  999. remove 1 from {carvão.%loop-value%}
  1000.  
  1001. every 3 second:
  1002. loop {eme::*}:
  1003. if {Diesel.%loop-value%} >= 1:
  1004. drop 2 emerald named "&aEsmeralda pura" with lore "&f||&7A Esmeralda pura é produzido||&7pela maquina de Esmeralda, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  1005. remove 1 from {Diesel.%loop-value%}
  1006.  
  1007. every 3 second:
  1008. loop {eme::*}:
  1009. if {eletrica.%loop-value%} >= 1:
  1010. drop 2 emerald named "&aEsmeralda pura" with lore "&f||&7A Esmeralda pura é produzido||&7pela maquina de Esmeralda, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  1011. remove 1 from {eletrica.%loop-value%}
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019. #XP
  1020. on place:
  1021. if tool of player is quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f":
  1022. send action bar from "&aSua maquina foi colocada com sucesso." to player
  1023. create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
  1024. add location of block to {xp::*}
  1025. set {xp.%location of block%} to true
  1026. set {maquinas.%location of block%} to true
  1027. set {carvão.%location of block%} to 0
  1028. set {Diesel.%location of block%} to 0
  1029. set {eletrica.%location of block%} to 0
  1030. set {usando.%location of block%} to false
  1031. set {antidup.%location of block%} to false
  1032. on break quartz ore:
  1033. if {xp.%location of block%} is true:
  1034. if {usando.%location of block%} is false:
  1035. if {antidup.%location of block%} is false:
  1036. set {antidup.%location of block%} to true
  1037. remove location of block from {xp::*}
  1038. cancel event
  1039. delete holo object "%location of block%.xpdesligado"
  1040. wait 5 tick
  1041. create holo object "&eMaquina de Xp;&fQuebrando..." with id "%location of block%.xpquebrando" at location 1.0 meters above location of block
  1042. wait 2 seconds
  1043. delete holo object "%location of block%.xpquebrando"
  1044. set {xp.%location of block%} to false
  1045. send action bar from "&cVocê quebrou sua maquina com sucesso." to player
  1046. set block at event-block to air
  1047. give 1 quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f" to player
  1048. wait 3 tick
  1049. set {maquinas.%location of block%} to false
  1050. set {usando.%location of block%} to false
  1051. set {antidup.%location of block%} to false
  1052. else:
  1053. cancel event
  1054. send action bar from "&cAguarde a maquina ser quebrada" to player
  1055. else:
  1056. cancel event
  1057. send action bar from "&cAguarde o combustivel acabar." to player
  1058. delete holo object "%location of block%.xpligada"
  1059. wait 5 tick
  1060. create holo object "&eMaquina de Xp;&fAguarde..." with id "%location of block%.xpaguarde" at location 1.0 meters above location of block
  1061. wait 2 seconds
  1062. delete holo object "%location of block%.xpaguarde"
  1063. wait 5 tick
  1064. create holo object "&eMaquina de Xp;&fLigada" with id "%location of block%.xpligada" at location 1.0 meters above location of block
  1065.  
  1066.  
  1067. #Gasolina
  1068. on right click on quartz ore:
  1069. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
  1070. if {maquinas.%location of block%} is true:
  1071. if {usando.%location of block%} is false:
  1072. delete holo object "%location of block%.xpdesligado"
  1073. wait 5 tick
  1074. create holo object "&eMaquina de Xp;&fLigada..." with id "%location of block%.xpligada" at location 1.0 meters above location of block
  1075. set {usando.%location of block%} to true
  1076. add 30 to {carvão.%location of block%}
  1077. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  1078. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
  1079. wait 1 minute
  1080. delete holo object "%location of block%.xpligada"
  1081. wait 5 tick
  1082. create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
  1083. set {usando.%location of block%} to false
  1084. send action bar from "&cO combustivel da maquina acabou" to player
  1085. else:
  1086. send action bar from "&6Está maquina já foi abastecida." to player
  1087. else:
  1088. send action bar from "&eIsto não é uma maquina.." to player
  1089.  
  1090. #Diesel
  1091. on right click on quartz ore:
  1092. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
  1093. if {maquinas.%location of block%} is true:
  1094. if {usando.%location of block%} is false:
  1095. delete holo object "%location of block%.xpdesligado"
  1096. wait 5 tick
  1097. create holo object "&eMaquina de Xp;&fLigada..." with id "%location of block%.xpligada" at location 1.0 meters above location of block
  1098. set {usando.%location of block%} to true
  1099. add 150 to {Diesel.%location of block%}
  1100. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  1101. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
  1102. wait 5 minute
  1103. delete holo object "%location of block%.xpligada"
  1104. wait 5 tick
  1105. create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
  1106. set {usando.%location of block%} to false
  1107. send action bar from "&cO combustivel da maquina acabou" to player
  1108. else:
  1109. send action bar from "&6Está maquina já foi abastecida." to player
  1110. else:
  1111. send action bar from "&eIsto não é uma maquina.." to player
  1112.  
  1113. #Eletricidade
  1114. on right click on quartz ore:
  1115. if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
  1116. if {maquinas.%location of block%} is true:
  1117. if {usando.%location of block%} is false:
  1118. delete holo object "%location of block%.xpdesligado"
  1119. wait 5 tick
  1120. create holo object "&eMaquina de Xp;&fLigada..." with id "%location of block%.xpligada" at location 1.0 meters above location of block
  1121. set {usando.%location of block%} to true
  1122. add 300 to {eletrica.%location of block%}
  1123. send action bar from "&eVocê colocou combustivel em sua maquina." to player
  1124. remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
  1125. wait 10 minute
  1126. delete holo object "%location of block%.xpligada"
  1127. wait 5 tick
  1128. create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
  1129. set {usando.%location of block%} to false
  1130. send action bar from "&cO combustivel da maquina acabou" to player
  1131. else:
  1132. send action bar from "&6Está maquina já foi abastecida." to player
  1133. else:
  1134. send action bar from "&eIsto não é uma maquina.." to player
  1135.  
  1136. every 2 second:
  1137. loop {xp::*}:
  1138. if {carvão.%loop-value%} >= 1:
  1139. drop 10 xp bottle named "&3Pote Xp" with lore "&f||&7O pote xp é produzido||&7pela maquina de Xp, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  1140. remove 1 from {carvão.%loop-value%}
  1141.  
  1142. every 2 second:
  1143. loop {xp::*}:
  1144. if {Diesel.%loop-value%} >= 1:
  1145. drop 10 xp bottle named "&3Pote Xp" with lore "&f||&7O pote xp é produzido||&7pela maquina de Xp, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  1146. remove 1 from {Diesel.%loop-value%}
  1147.  
  1148. every 2 second:
  1149. loop {xp::*}:
  1150. if {eletrica.%loop-value%} >= 1:
  1151. drop 10 xp bottle named "&3Pote Xp" with lore "&f||&7O pote xp é produzido||&7pela maquina de Xp, e o||&7mesmo pode ser vendido no /spawn.||&7" at loop-value
  1152. remove 1 from {eletrica.%loop-value%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement