Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /maquina [<text>] [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send " "
- send "&6[sMaquinas] &eComandos Gerais"
- send " "
- send "&6/maquina comprar (blaze/combustivel) &7- &eUtilizado para comprar máquinas"
- send " "
- send "&6/maquinas &7- &eAbre o menu-gui das máquinas"
- send " "
- if arg 1 is "comprar" or "buy":
- if arg 2 is "blaze" or "maquinablaze" or "ferro" or "maquinaferro" or "estrela" or "maquinaestrela" or "combustivel" or "combu":
- if arg 2 is "blaze" or "maquinablaze":
- if player's money is more or equal to 1:
- 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
- send "&6[sMaquinas] &eVocê comprou uma máquina do inferno."
- remove 1 from player's balance
- else:
- send "&6[sMaquinas] &eVocê não tem dinheiro suficiente para comprar essa máquina."
- if arg 2 is "combu" or "combustivel":
- if arg 3 is not set:
- give 1 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
- send "&6[sMaquinas] &eVocê comprou um combustivel por &2R$&a4"
- remove 4 from player's balance
- else:
- if arg 3 is "16":
- set {_QuantoFoi} to 16 * 4
- give 16 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
- send "&6[sMaquinas] &eVocê comprou 16 combustiveis por &2R$&a%{_QuantoFoi}%"
- remove {_QuantoFoi} from player's balance
- command /maquinas:
- trigger:
- open chest with 3 rows named "&a&lMaquinas - Comprar" to player
- wait 1 tick
- 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"]
- 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"]
- on rightclick holding coal on Nether Brick:
- if player has 1 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||":
- if {colocoumaquina.%location of block%} is true:
- if {usandomaquina.%location of block%} is false:
- remove 1 coal named "&8Combustivel para Maquinas" from player's inventory
- send " "
- send "&6[sMaquinas] &eMáquina ligada."
- send " "
- set {usandomaquina.%location of block%} to true
- loop 36 times:
- drop 64 blaze rod
- wait 3 seconds
- send " "
- send "&cAcabou o combustivel de sua maquina"
- send " "
- set {usandomaquina.%location of block%} to false
- stop
- else:
- send "&6[sMaquinas] &eEssa maquina já foi abastecida"
- stop
- on break Nether Brick:
- if {colocoumaquina.%location of block%} is true:
- send "&6[sMaquinas] &eVocê quebrou a sua máquina."
- 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
- set {colocoumaquina.%location of block%} to false
- on place Nether Brick:
- 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":
- add location of block to {blaze::*}
- set {colocoumaquina.%location of block%} to true
- set {usandomaquina.%location of block%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement