Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ▒██████ ▒██████████ #
- # ▒██ ▒██ ▒████ ▒███████ ▒████ ▒███████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒████████ ▒████████ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▀▀ #
- # ▒██ ▒██ ▒██ ▒██ ▒███████ ▒██ ▒██ ▒███████ ▒██ ▒██████████ ▒████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
- # ▒██████ ▒████████ ▒██ ▒████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒██ ▒██ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒███████ ▒███████ ▒██████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
- options:
- 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"
- Precoslime: 3.9
- 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"
- Precoxp: 5
- 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"
- Precoferro: 6.25
- 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"
- Precoeme: 7.88
- 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"
- Precodima: 9.42
- function SpawnMaquinas(p: player):
- spawn a villager at location of {_p}
- set name of last spawned villager to "&f&lMAQUINAS"
- add "{NoAI:1}" to nbt of last spawned villager
- add "{Gravity:1}" to nbt of last spawned villager
- function RemoveMaquinas(p: player):
- loop all entities:
- if name of loop-entity is "&f&lMAQUINAS":
- clear loop-entity
- on damage:
- if name of victim is "&f&lMAQUINAS":
- if victim is villager:
- cancel event
- on rightclick on villager:
- if name of clicked entity is "&f&lMAQUINAS":
- cancel event
- make player execute command "/maquinasdoshoppracomprar"
- command /canceladoacomprarmaquinas:
- trigger:
- send action bar from "&8&lCOMBUSTIVEL &fCompra cancelada..." to player
- command /maquinasdoshoppracomprar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Painel" to player
- wait a tick
- 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"]
- 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"]
- 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"]
- command /maquinasdoshoppracomprarmaquinas:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Shop" to player
- wait a tick
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- command /dimacomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /venderoslimedasmaquinasnomaquina:
- trigger:
- set {_size} to number of {@Itemslime} in player's inventory
- if {_size} > 0:
- set {_quantidade} to {_size} * {@Precoslime}
- remove {_size} of {@Itemslime} from player's inventory
- add {_quantidade} to player's balance
- send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
- show mob spawner flames at player
- else:
- send action bar from "&f&lDROPS &fVocê não tem slime para vender." to player
- command /venderoxpdasmaquinasnomaquina:
- trigger:
- set {_size} to number of {@Itemxp} in player's inventory
- if {_size} > 0:
- set {_quantidade} to {_size} * {@Precoxp}
- remove {_size} of {@Itemxp} from player's inventory
- add {_quantidade} to player's balance
- send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
- show mob spawner flames at player
- else:
- send action bar from "&f&lDROPS &fVocê não tem xp para vender." to player
- command /venderoferrodasmaquinasnomaquina:
- trigger:
- set {_size} to number of {@Itemferro} in player's inventory
- if {_size} > 0:
- set {_quantidade} to {_size} * {@Precoferro}
- remove {_size} of {@Itemferro} from player's inventory
- add {_quantidade} to player's balance
- send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
- show mob spawner flames at player
- else:
- send action bar from "&f&lDROPS &fVocê não tem ferro para vender." to player
- command /venderoesmeraldadasmaquinasnomaquina:
- trigger:
- set {_size} to number of {@Itememe} in player's inventory
- if {_size} > 0:
- set {_quantidade} to {_size} * {@Precoeme}
- remove {_size} of {@Itememe} from player's inventory
- add {_quantidade} to player's balance
- send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
- show mob spawner flames at player
- else:
- send action bar from "&f&lDROPS &fVocê não tem esmeralda para vender." to player
- command /venderodimasmaquinasnomaquina:
- trigger:
- set {_size} to number of {@Itemdima} in player's inventory
- if {_size} > 0:
- set {_quantidade} to {_size} * {@Precodima}
- remove {_size} of {@Itemdima} from player's inventory
- add {_quantidade} to player's balance
- send action bar from "&f&lDROPS &fVocê vendeu &7%{_size}%&f por &7%{_quantidade}%&f moedas." to player
- show mob spawner flames at player
- else:
- send action bar from "&f&lDROPS &fVocê não tem diamante para vender." to player
- command /maquinasdoshoppravenderitens:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Itens - Shop" to player
- wait a tick
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- command /comproudimadamaquinas:
- trigger:
- if player's balance is more or equal to 120000:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 120000 from player's balance
- give 1 diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f" to player
- send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de diamante." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
- command /esmeraldacomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /comprouesmeraldadamaquinas:
- trigger:
- if player's balance is more or equal to 90000:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 90000 from player's balance
- give 1 emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f" to player
- send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de esmeralda." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
- command /slimecomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /comprouslimedamaquinas:
- trigger:
- if player's balance is more or equal to 30000:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 30000 from player's balance
- give 1 slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f" to player
- send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de slime." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
- command /xpcomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /comprouxpdamaquinas:
- trigger:
- if player's balance is more or equal to 40000:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 40000 from player's balance
- give 1 quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f" to player
- send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de xp." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
- command /ferrocomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /comprouferrodamaquinas:
- trigger:
- if player's balance is more or equal to 50000:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 50000 from player's balance
- give 1 iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f" to player
- send action bar from "&f&lMAQUINAS &fVocê comprou uma maquina de ferro." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&f&lMAQUINAS &fSeu saldo é insuficiente." to player
- command /maquinasdoshoppracomprarcombustivel:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Combustivel - Shop" to player
- wait a tick
- 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"]
- 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"]
- 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"]
- 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"]
- command /eletricacomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /comproueletricadamaquinas:
- trigger:
- if player's balance is more or equal to 8000:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 8000 from player's balance
- give 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" to player
- send action bar from "&8&lCOMBUSTIVEL &fVocê comprou uma combustivel de eletricidade." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&8&lCOMBUSTIVEL &fSeu saldo é insuficiente." to player
- command /dieselcomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /comproudieseldamaquinas:
- trigger:
- if player's balance is more or equal to 5500:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 5500 from player's balance
- give 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" to player
- send action bar from "&8&lCOMBUSTIVEL &fVocê comprou uma combustivel de diesel." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&8&lCOMBUSTIVEL &fSeu saldo é insuficiente." to player
- command /gasolinacomprardalojadasmaquinasconfirmar:
- trigger:
- play "ORB_PICKUP" to player at volume 0.5
- open chest with 3 row named "&8Maquinas - Confirmação" to player
- wait 4 tick
- 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"]
- 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
- 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"]
- command /comprougasolinadamaquinas:
- trigger:
- if player's balance is more or equal to 4000:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando concluido."
- wait 1 second
- remove 4000 from player's balance
- give 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" to player
- send action bar from "&8&lCOMBUSTIVEL &fVocê comprou uma combustivel de gasolina." to player
- stop
- else:
- send "&7Processensando, aguarde..."
- wait 2 seconds
- send "&7Processensando não aceito."
- wait 1 second
- send action bar from "&8&lCOMBUSTIVEL &fSeu saldo é insuficiente." to player
- on inventory click:
- if inventory name of player's current inventory is "&8Maquinas - Painel":
- cancel event
- on inventory click:
- if inventory name of player's current inventory is "&8Maquinas - Shop":
- cancel event
- on inventory click:
- if inventory name of player's current inventory is "&8Combustivel - Shop":
- cancel event
- on inventory click:
- if inventory name of player's current inventory is "&8Maquinas - Confirmação":
- cancel event
- command /rmaquinas [<text>]:
- trigger:
- if player has permission "maquinas.admin":
- if arg 1 is "spawnar":
- SpawnMaquinas(player)
- send action bar from "&f&lMAQUINAS &fFoi setada com sucesso." to player
- if arg 1 is "despawnar":
- RemoveMaquinas(player)
- send action bar from "&f&lMAQUINAS &fFoi removida com sucesso." to player
- if arg 1 is not "spawnar" or "despawnar":
- send action bar from "&f&lMAQUINAS &fUse /rmaquinas (spawnar/despawnar)." to player
- if arg 1 is not set:
- send action bar from "&f&lMAQUINAS &fUse /rmaquinas (spawnar/despawnar)." to player
- else:
- send action bar from "&cSem permissão." to player
- command /darmaquinas [<player>] [<text>] [<integer>]:
- trigger:
- if player has permission "maquinas.usar":
- if arg 1 is set:
- if arg 2 is "ferro":
- if arg 3 is set:
- give arg-3 of iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f" to arg 1
- send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f ferros para &7%arg-1%&f." to player
- if arg 2 is "slime":
- send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f slimes para &7%arg-1%&f." to player
- give arg-3 of slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f" to arg 1
- if arg 2 is "diamante":
- send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f diamante para &7%arg-1%&f." to player
- give arg-3 of diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f" to arg 1
- if arg 2 is "esmeralda":
- send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f esmeralda para &7%arg-1%&f." to player
- give arg-3 of emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f" to arg 1
- if arg 2 is "xp":
- send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f ferros para &7%arg-1%&f." to player
- give arg-3 of quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f" to arg 1
- if arg 2 is not "slime" or "ferro" or "diamante" or "esmeralda" or "xp":
- send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
- if arg 2 is not set:
- send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
- if arg 3 is not set:
- send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
- if arg 1 is not set:
- send action bar from "&f&lMAQUINAS &7Use /darmaquinas (player) (maquina) (quantia)" to player
- else:
- send action bar from "&cSem permissão." to player
- command /darcumbustivel [<player>] [<text>] [<integer>]:
- trigger:
- if arg 1 is set:
- if arg 2 is "Diesel":
- if arg 3 is set:
- give arg-3 of coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" to arg 1
- send action bar from "&f&lMAQUINAS &fVocê deu &7%arg-3%&f ferros para &7%arg-1%&f." to player
- if arg 2 is "gasolina":
- send action bar from "&f&lCOMBUSTIVEL &fVocê deu &7%arg-3%&f gasolina para &7%arg-1%&f." to player
- give arg-3 of coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" to arg 1
- if arg 2 is "eletricidade":
- give arg-3 of coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" to arg 1
- send action bar from "&f&lCOMBUSTIVEL &fVocê deu &7%arg-3%&f eletricidade para &7%arg-1%&f." to player
- if arg 2 is not "diesel" or "gasolina" or "eletricidade":
- send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
- if arg 2 is not set:
- send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
- if arg 3 is not set:
- send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
- else:
- send action bar from "&f&lCOMBUSTIVEL &7Use /darcumbustivel (player) (combustivel) (quantia)" to player
- #Ferro
- on place:
- if tool of player is iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f":
- send action bar from "&aSua maquina foi colocada com sucesso." to player
- create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
- add location of block to {ferro::*}
- set {ferro.%location of block%} to true
- set {maquinas.%location of block%} to true
- set {carvão.%location of block%} to 0
- set {Diesel.%location of block%} to 0
- set {eletrica.%location of block%} to 0
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- on break iron block:
- if {ferro.%location of block%} is true:
- if {usando.%location of block%} is false:
- if {antidup.%location of block%} is false:
- set {antidup.%location of block%} to true
- remove location of block from {ferro::*}
- cancel event
- delete holo object "%location of block%.ferrodesligado"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fQuebrando..." with id "%location of block%.ferroquebrando" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.ferroquebrando"
- set {ferro.%location of block%} to false
- send action bar from "&cVocê quebrou sua maquina com sucesso." to player
- set block at event-block to air
- give 1 iron block named "&eMaquina de Ferro" with lore "||&7TIPO: &fRaro||&f" to player
- wait 3 tick
- set {maquinas.%location of block%} to false
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- else:
- cancel event
- send action bar from "&cAguarde a maquina ser quebrada" to player
- else:
- cancel event
- send action bar from "&cAguarde o combustivel acabar." to player
- delete holo object "%location of block%.ferroligada"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fAguarde..." with id "%location of block%.ferroaguarde" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.ferroaguarde"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fLigada" with id "%location of block%.ferroligada" at location 1.0 meters above location of block
- #Gasolina
- on right click on iron block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.ferrodesligado"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fLigada..." with id "%location of block%.ferroligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 30 to {carvão.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
- wait 1 minute
- delete holo object "%location of block%.ferroligada"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Diesel
- on right click on iron block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.ferrodesligado"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fLigada..." with id "%location of block%.ferroligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 150 to {Diesel.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
- wait 5 minute
- delete holo object "%location of block%.ferroligada"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Eletricidade
- on right click on iron block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.ferrodesligado"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fLigada..." with id "%location of block%.ferroligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 300 to {eletrica.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
- wait 10 minute
- delete holo object "%location of block%.ferroligada"
- wait 5 tick
- create holo object "&eMaquina de Ferro;&fDeligada" with id "%location of block%.ferrodesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- every 2 second:
- loop {ferro::*}:
- if {carvão.%loop-value%} >= 1:
- 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
- remove 1 from {carvão.%loop-value%}
- every 2 second:
- loop {ferro::*}:
- if {Diesel.%loop-value%} >= 1:
- 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
- remove 1 from {Diesel.%loop-value%}
- every 2 second:
- loop {ferro::*}:
- if {eletrica.%loop-value%} >= 1:
- 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
- remove 1 from {eletrica.%loop-value%}
- #Slime
- on place:
- if tool of player is slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f":
- send action bar from "&aSua maquina foi colocada com sucesso." to player
- create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
- add location of block to {slime::*}
- set {slime.%location of block%} to true
- set {maquinas.%location of block%} to true
- set {carvão.%location of block%} to 0
- set {Diesel.%location of block%} to 0
- set {eletrica.%location of block%} to 0
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- on break slime block:
- if {slime.%location of block%} is true:
- if {usando.%location of block%} is false:
- if {antidup.%location of block%} is false:
- set {antidup.%location of block%} to true
- remove location of block from {slime::*}
- cancel event
- delete holo object "%location of block%.slimedesligado"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fQuebrando..." with id "%location of block%.slimequebrando" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.slimequebrando"
- set {slime.%location of block%} to false
- send action bar from "&cVocê quebrou sua maquina com sucesso." to player
- set block at event-block to air
- give 1 slime block named "&eMaquina de Slime" with lore "||&7TIPO: &fComum||&f" to player
- wait 3 tick
- set {maquinas.%location of block%} to false
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- else:
- cancel event
- send action bar from "&cAguarde a maquina ser quebrada" to player
- else:
- cancel event
- send action bar from "&cAguarde o combustivel acabar." to player
- delete holo object "%location of block%.slimeligada"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fAguarde..." with id "%location of block%.slimeaguarde" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.slimeaguarde"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fLigada" with id "%location of block%.slimeligada" at location 1.0 meters above location of block
- #Gasolina
- on right click on slime block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.slimedesligado"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fLigada..." with id "%location of block%.slimeligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 30 to {carvão.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
- wait 1 minute
- delete holo object "%location of block%.slimeligada"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Diesel
- on right click on slime block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.slimedesligado"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fLigada..." with id "%location of block%.slimeligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 150 to {Diesel.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
- wait 5 minute
- delete holo object "%location of block%.slimeligada"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Eletricidade
- on right click on slime block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.slimedesligado"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fLigada..." with id "%location of block%.slimeligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 300 to {eletrica.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
- wait 10 minute
- delete holo object "%location of block%.slimeligada"
- wait 5 tick
- create holo object "&eMaquina de Slime;&fDeligada" with id "%location of block%.slimedesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- every 2 second:
- loop {slime::*}:
- if {carvão.%loop-value%} >= 1:
- 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
- remove 1 from {carvão.%loop-value%}
- every 2 second:
- loop {slime::*}:
- if {Diesel.%loop-value%} >= 1:
- 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
- remove 1 from {Diesel.%loop-value%}
- every 2 second:
- loop {slime::*}:
- if {eletrica.%loop-value%} >= 1:
- 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
- remove 1 from {eletrica.%loop-value%}
- #Diamante
- on place:
- if tool of player is diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f":
- send action bar from "&aSua maquina foi colocada com sucesso." to player
- create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
- add location of block to {dima::*}
- set {dima.%location of block%} to true
- set {maquinas.%location of block%} to true
- set {carvão.%location of block%} to 0
- set {Diesel.%location of block%} to 0
- set {eletrica.%location of block%} to 0
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- on break diamond block:
- if {dima.%location of block%} is true:
- if {usando.%location of block%} is false:
- if {antidup.%location of block%} is false:
- set {antidup.%location of block%} to true
- remove location of block from {dima::*}
- cancel event
- delete holo object "%location of block%.dimadesligado"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fQuebrando..." with id "%location of block%.dimaquebrando" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.dimaquebrando"
- set {dima.%location of block%} to false
- send action bar from "&cVocê quebrou sua maquina com sucesso." to player
- set block at event-block to air
- give 1 diamond block named "&eMaquina de Diamante" with lore "||&7TIPO: &fSuprema||&f" to player
- wait 3 tick
- set {maquinas.%location of block%} to false
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- else:
- cancel event
- send action bar from "&cAguarde a maquina ser quebrada" to player
- else:
- cancel event
- send action bar from "&cAguarde o combustivel acabar." to player
- delete holo object "%location of block%.dimaligada"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fAguarde..." with id "%location of block%.dimaaguarde" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.dimaaguarde"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fLigada" with id "%location of block%.dimaligada" at location 1.0 meters above location of block
- #Gasolina
- on right click on diamond block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.dimadesligado"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fLigada..." with id "%location of block%.dimaligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 20 to {carvão.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
- wait 1 minute
- delete holo object "%location of block%.dimaligada"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Diesel
- on right click on diamond block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.dimadesligado"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fLigada..." with id "%location of block%.dimaligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 100 to {Diesel.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
- wait 5 minute
- delete holo object "%location of block%.dimaligada"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Eletricidade
- on right click on diamond block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.dimadesligado"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fLigada..." with id "%location of block%.dimaligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 200 to {eletrica.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
- wait 10 minute
- delete holo object "%location of block%.dimaligada"
- wait 5 tick
- create holo object "&eMaquina de Diamante;&fDeligada" with id "%location of block%.dimadesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- every 3 second:
- loop {dima::*}:
- if {carvão.%loop-value%} >= 1:
- 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
- remove 1 from {carvão.%loop-value%}
- every 3 second:
- loop {dima::*}:
- if {Diesel.%loop-value%} >= 1:
- 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
- remove 1 from {Diesel.%loop-value%}
- every 3 second:
- loop {dima::*}:
- if {eletrica.%loop-value%} >= 1:
- 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
- remove 1 from {eletrica.%loop-value%}
- #Esmeralda
- on place:
- if tool of player is emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f":
- send action bar from "&aSua maquina foi colocada com sucesso." to player
- create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
- add location of block to {eme::*}
- set {eme.%location of block%} to true
- set {maquinas.%location of block%} to true
- set {carvão.%location of block%} to 0
- set {Diesel.%location of block%} to 0
- set {eletrica.%location of block%} to 0
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- on break emerald block:
- if {eme.%location of block%} is true:
- if {usando.%location of block%} is false:
- if {antidup.%location of block%} is false:
- set {antidup.%location of block%} to true
- remove location of block from {eme::*}
- cancel event
- delete holo object "%location of block%.emedesligado"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fQuebrando..." with id "%location of block%.emequebrando" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.emequebrando"
- set {eme.%location of block%} to false
- send action bar from "&cVocê quebrou sua maquina com sucesso." to player
- set block at event-block to air
- give 1 emerald block named "&eMaquina de Esmeralda" with lore "||&7TIPO: &fUltra raro||&f" to player
- wait 3 tick
- set {maquinas.%location of block%} to false
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- else:
- cancel event
- send action bar from "&cAguarde a maquina ser quebrada" to player
- else:
- cancel event
- send action bar from "&cAguarde o combustivel acabar." to player
- delete holo object "%location of block%.emeligada"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fAguarde..." with id "%location of block%.emeaguarde" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.emeaguarde"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fLigada" with id "%location of block%.emeligada" at location 1.0 meters above location of block
- #Gasolina
- on right click on emerald block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.emedesligado"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fLigada..." with id "%location of block%.emeligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 20 to {carvão.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
- wait 1 minute
- delete holo object "%location of block%.emeligada"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Diesel
- on right click on emerald block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.emedesligado"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fLigada..." with id "%location of block%.emeligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 100 to {Diesel.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
- wait 5 minute
- delete holo object "%location of block%.emeligada"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Eletricidade
- on right click on emerald block:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.emedesligado"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fLigada..." with id "%location of block%.emeligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 200 to {eletrica.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
- wait 10 minute
- delete holo object "%location of block%.emeligada"
- wait 5 tick
- create holo object "&eMaquina de Esmeralda;&fDeligada" with id "%location of block%.emedesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- every 3 second:
- loop {eme::*}:
- if {carvão.%loop-value%} >= 1:
- 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
- remove 1 from {carvão.%loop-value%}
- every 3 second:
- loop {eme::*}:
- if {Diesel.%loop-value%} >= 1:
- 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
- remove 1 from {Diesel.%loop-value%}
- every 3 second:
- loop {eme::*}:
- if {eletrica.%loop-value%} >= 1:
- 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
- remove 1 from {eletrica.%loop-value%}
- #XP
- on place:
- if tool of player is quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f":
- send action bar from "&aSua maquina foi colocada com sucesso." to player
- create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
- add location of block to {xp::*}
- set {xp.%location of block%} to true
- set {maquinas.%location of block%} to true
- set {carvão.%location of block%} to 0
- set {Diesel.%location of block%} to 0
- set {eletrica.%location of block%} to 0
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- on break quartz ore:
- if {xp.%location of block%} is true:
- if {usando.%location of block%} is false:
- if {antidup.%location of block%} is false:
- set {antidup.%location of block%} to true
- remove location of block from {xp::*}
- cancel event
- delete holo object "%location of block%.xpdesligado"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fQuebrando..." with id "%location of block%.xpquebrando" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.xpquebrando"
- set {xp.%location of block%} to false
- send action bar from "&cVocê quebrou sua maquina com sucesso." to player
- set block at event-block to air
- give 1 quartz ore named "&eMaquina de Xp" with lore "||&7TIPO: &fRaro||&f" to player
- wait 3 tick
- set {maquinas.%location of block%} to false
- set {usando.%location of block%} to false
- set {antidup.%location of block%} to false
- else:
- cancel event
- send action bar from "&cAguarde a maquina ser quebrada" to player
- else:
- cancel event
- send action bar from "&cAguarde o combustivel acabar." to player
- delete holo object "%location of block%.xpligada"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fAguarde..." with id "%location of block%.xpaguarde" at location 1.0 meters above location of block
- wait 2 seconds
- delete holo object "%location of block%.xpaguarde"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fLigada" with id "%location of block%.xpligada" at location 1.0 meters above location of block
- #Gasolina
- on right click on quartz ore:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.xpdesligado"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fLigada..." with id "%location of block%.xpligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 30 to {carvão.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fGasolina||&7DURAÇAO: &f1 Minuto||&f" from player's inventory
- wait 1 minute
- delete holo object "%location of block%.xpligada"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Diesel
- on right click on quartz ore:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.xpdesligado"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fLigada..." with id "%location of block%.xpligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 150 to {Diesel.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fDiesel||&7DURAÇAO: &f5 Minutos||&f" from player's inventory
- wait 5 minute
- delete holo object "%location of block%.xpligada"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- #Eletricidade
- on right click on quartz ore:
- if tool of player is coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f":
- if {maquinas.%location of block%} is true:
- if {usando.%location of block%} is false:
- delete holo object "%location of block%.xpdesligado"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fLigada..." with id "%location of block%.xpligada" at location 1.0 meters above location of block
- set {usando.%location of block%} to true
- add 300 to {eletrica.%location of block%}
- send action bar from "&eVocê colocou combustivel em sua maquina." to player
- remove 1 coal named "&8Combustivel" with lore "||&7TIPO: &fEletricidade||&7DURAÇAO: &f10 Minutos||&f" from player's inventory
- wait 10 minute
- delete holo object "%location of block%.xpligada"
- wait 5 tick
- create holo object "&eMaquina de Xp;&fDeligada" with id "%location of block%.xpdesligado" at location 1.0 meters above location of block
- set {usando.%location of block%} to false
- send action bar from "&cO combustivel da maquina acabou" to player
- else:
- send action bar from "&6Está maquina já foi abastecida." to player
- else:
- send action bar from "&eIsto não é uma maquina.." to player
- every 2 second:
- loop {xp::*}:
- if {carvão.%loop-value%} >= 1:
- 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
- remove 1 from {carvão.%loop-value%}
- every 2 second:
- loop {xp::*}:
- if {Diesel.%loop-value%} >= 1:
- 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
- remove 1 from {Diesel.%loop-value%}
- every 2 second:
- loop {xp::*}:
- if {eletrica.%loop-value%} >= 1:
- 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
- remove 1 from {eletrica.%loop-value%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement