Advertisement
TheGeneX

sMaquinas v2

Jun 26th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. command /maquina [<text>] [<text>] [<text>] [<text>]:
  2. trigger:
  3. if arg 1 is not set:
  4. send " "
  5. send "&6[sMaquinas] &eComandos Gerais"
  6. send " "
  7. send "&6/maquina comprar (blaze/combustivel) &7- &eUtilizado para comprar máquinas"
  8. send " "
  9. send "&6/maquinas &7- &eAbre o menu-gui das máquinas"
  10. send " "
  11. if arg 1 is "comprar" or "buy":
  12. if arg 2 is "blaze" or "maquinablaze" or "ferro" or "maquinaferro" or "estrela" or "maquinaestrela" or "combustivel" or "combu":
  13. if arg 2 is "blaze" or "maquinablaze":
  14. if player's money is more or equal to 1:
  15. give 1 nether brick block named "&cMaquina do &lINFERNO" with lore "&7||&7Essa maquina veio diretamente do fogo das profundezas do inferno||&7" to player
  16. send "&6[sMaquinas] &eVocê comprou uma máquina do inferno."
  17. remove 1 from player's balance
  18. else:
  19. send "&6[sMaquinas] &eVocê não tem dinheiro suficiente para comprar essa máquina."
  20. if arg 2 is "combu" or "combustivel":
  21. if arg 3 is not set:
  22. give 1 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
  23. send "&6[sMaquinas] &eVocê comprou um combustivel por &2R$&a4"
  24. remove 4 from player's balance
  25. else:
  26. if arg 3 is "16":
  27. set {_QuantoFoi} to 16 * 4
  28. give 16 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
  29. send "&6[sMaquinas] &eVocê comprou 16 combustiveis por &2R$&a%{_QuantoFoi}%"
  30. remove {_QuantoFoi} from player's balance
  31. command /maquinas:
  32. trigger:
  33. open chest with 3 rows named "&a&lMaquinas - Comprar" to player
  34. wait 1 tick
  35. format slot 13 of player with Nether Brick Block named "&cMaquina do &lINFERNO" with lore "||&6Preço: &2R$&a1||&7||" to close then run [execute player command "/maquina comprar blaze"]
  36. format slot 26 of player with arrow named "&8Combustiveis" with lore "&7||&7Clique &a&lAQUI&7 para ir à loja de combustiveis.||&7" to close then run [execute player command "/lojacombustivel"]
  37.  
  38. on rightclick holding coal on Nether Brick:
  39. if player has 1 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||":
  40. if {colocoumaquina.%location of block%} is true:
  41. if {usandomaquina.%location of block%} is false:
  42. remove 1 coal named "&8Combustivel para Maquinas" from player's inventory
  43. send " "
  44. send "&6[sMaquinas] &eMáquina ligada."
  45. send " "
  46. set {usandomaquina.%location of block%} to true
  47. loop 36 times:
  48. drop 64 blaze rod
  49. wait 3 seconds
  50. send " "
  51. send "&cAcabou o combustivel de sua maquina"
  52. send " "
  53. set {usandomaquina.%location of block%} to false
  54. stop
  55. else:
  56. send "&6[sMaquinas] &eEssa maquina já foi abastecida"
  57. stop
  58. on break Nether Brick:
  59. if {colocoumaquina.%location of block%} is true:
  60. send "&6[sMaquinas] &eVocê quebrou a sua máquina."
  61. give 1 nether brick block named "&cMaquina do &lINFERNO" with lore "&7||&7Essa maquina veio diretamente do fogo das profundezas do inferno||&7" to player
  62. set {colocoumaquina.%location of block%} to false
  63. on place Nether Brick:
  64. if tool of player is a nether brick block named "&cMaquina do &lINFERNO" with lore "&7||&7Essa maquina veio diretamente do fogo das profundezas do inferno||&7":
  65. add location of block to {blaze::*}
  66. set {colocoumaquina.%location of block%} to true
  67. set {usandomaquina.%location of block%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement