Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Criado por IgoRzin01
- #
- #
- # Para alterar o valor do cofre, será necessário mecher manualmente nos valores!
- #
- options:
- Mundo: flatroom # IMPORTANTE - nome do mundo que irá funcionar o cofre mágico.
- # Coloque aqui os itens raros. Quando o jogador ganhar o item será mostrada a seguinte mensagem no global. "Fulano ganhou um item ULTRA RARO"
- Raros: diamond helmet or diamond chestplate or diamond leggings or diamond boots or diamond sword or diamond pickaxe or diamond axe or diamond shovel or diamond hoe
- CM1name: §bCofre Mágico - §e✩§7✩✩✩✩ # Nome do cofre número 1
- CM1lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 1
- # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
- CM1loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 50,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %50000-(money of player)% Coins
- # Informações que irá aparecer quando o jogador possuir o dinheiro.
- CM1loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 50,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-50000% Coins
- CM2name: §bCofre Mágico - §e✩✩§7✩✩✩ # Nome do cofre número 2
- CM2lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 2
- # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
- CM2loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 100,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %100000-(money of player)% Coins
- # Informações que irá aparecer quando o jogador possuir o dinheiro.
- CM2loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 100,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-100000% Coins
- CM3name: §bCofre Mágico - §e✩✩✩§7✩✩ # Nome do cofre número 3
- CM3lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 3
- # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
- CM3loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 200,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %200000-(money of player)% Coins
- # Informações que irá aparecer quando o jogador possuir o dinheiro.
- CM3loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 200,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-200000% Coins
- CM4name: §bCofre Mágico - §e✩✩✩✩§7✩ # Nome do cofre número 4
- CM4lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 4
- # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
- CM4loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 300,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %300000-(money of player)% Coins
- # Informações que irá aparecer quando o jogador possuir o dinheiro.
- CM4loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 300,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-300000% Coins
- CM5name: §4Cofre Mágico - §e✩✩✩✩✩ # Nome do cofre número 4
- CM5lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 4
- # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
- CM5loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 850,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %850000-(money of player)% Coins
- # Informações que irá aparecer quando o jogador possuir o dinheiro.
- CM5loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 850,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-850000% Coins
- # Informações do menu de confirmaçao do cofre
- CMopenN: §2Abrir Cofre Mágico
- CMopenL: §aClique para abrir o cofre e ser||§asorteado com§b 1§a item aleatório!
- # Informações do menu de confirmaçao do cofre
- CMcloseN: §4Fechar Cofre Mágico
- CMcloseL: §cClique para fechar o menu||§cde confirmaçao!
- # Créditos
- CCname: §aCriado por IgoRzin01
- CClore: §7V1.0§b Cofre Mágico §7§ngamersboard.com.br§7!||§7Faça um bom proveito!
- # Informações sobre como conseguir o cofre.
- CIname: §aCofre Mágico informaçao
- CIlore: §bCofres Mágicos§7 podem conter diversos itens.||§7Para ganhar§b cofres mágicos§7, tudo o que você||§7precisa fazer é vencer eventos no servidor||§7ou compra-los com dinheiro virtual.
- on rightclick on ender chest:
- if world is "{@Mundo}":
- cancel event
- wait 2.5 ticks
- open chest with 6 rows named "Cofre Mágico" to player
- if player's money is less than 50000:
- format slot 0 of player with ender chest named "{@CM1name}" with lore "{@CM1loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
- if player's money is more than or equal to 50000:
- format slot 0 of player with ender chest named "{@CM1name}" with lore "{@CM1loreCOMgrana}" to close then run [make player execute command "/jjg7fh154"]
- if player's money is less than 100000:
- format slot 1 of player with ender chest named "{@CM2name}" with lore "{@CM2loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
- if player's money is more than or equal to 100000:
- format slot 1 of player with ender chest named "{@CM2name}" with lore "{@CM2loreCOMgrana}" to close then run [make player execute command "/saueadadsa"]
- if player's money is less than 200000:
- format slot 2 of player with ender chest named "{@CM3name}" with lore "{@CM3loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
- if player's money is more than or equal to 200000:
- format slot 2 of player with ender chest named "{@CM3name}" with lore "{@CM3loreCOMgrana}" to close then run [make player execute command "/weoqwekjdsa"]
- if player's money is less than 300000:
- format slot 3 of player with ender chest named "{@CM4name}" with lore "{@CM4loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
- if player's money is more than or equal to 300000:
- format slot 3 of player with ender chest named "{@CM4name}" with lore "{@CM4loreCOMgrana}" to close then run [make player execute command "/9q8wqeiod"]
- if player's money is less than 850000:
- format slot 4 of player with ender chest named "{@CM5name}" with lore "{@CM5loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
- if player's money is more than or equal to 850000:
- format slot 4 of player with ender chest named "{@CM5name}" with lore "{@CM5loreCOMgrana}" to close then run [make player execute command "/qw58qw1dasd"]
- format slot 50 of player with crafting table named "{@CCname}" with lore "{@CClore}" to be unstealable
- format slot 49 of player with emerald named "§2Seus Coins:§f %player's money%" to be unstealable
- format slot 48 of player with book named "{@CIname}" with lore "{@CIlore}" to be unstealable
- stop
- else:
- stop
- #
- command /item setar [<text>]: # Cada cofre tem suporte para 36 itens.
- usage: §6/item setar (1,2,3,4 ou 5)
- trigger:
- if player does not have permission "cmagico.admin":
- message "§cVocê ñ tem direito para executar este comando!" to player
- stop
- if arg 1 is "1":
- clear {cofre1.itens::*}
- loop items in player's inventory:
- add loop-item to {cofre1.itens::*}
- add 1 to {_itens}
- clear player's inventory
- message "&e* Foram adicionados (%{_itens}%) itens no cofre (1)!" to player
- delete {_itens}
- stop
- if arg 1 is "2":
- clear {cofre2.itens::*}
- loop items in player's inventory:
- add loop-item to {cofre2.itens::*}
- add 1 to {_itens}
- clear player's inventory
- message "&e* Foram adicionados (%{_itens}%) itens no cofre (2)!" to player
- delete {_itens}
- stop
- if arg 1 is "3":
- clear {cofre3.itens::*}
- loop items in player's inventory:
- add loop-item to {cofre3.itens::*}
- add 1 to {_itens}
- clear player's inventory
- message "&e* Foram adicionados (%{_itens}%) itens no cofre (3)!" to player
- delete {_itens}
- stop
- if arg 1 is "4":
- clear {cofre4.itens::*}
- loop items in player's inventory:
- add loop-item to {cofre4.itens::*}
- add 1 to {_itens}
- clear player's inventory
- message "&e* Foram adicionados (%{_itens}%) itens no cofre (4)!" to player
- delete {_itens}
- stop
- if arg 1 is "5":
- clear {cofre5.itens::*}
- loop items in player's inventory:
- add loop-item to {cofre5.itens::*}
- add 1 to {_itens}
- clear player's inventory
- message "&e* Foram adicionados (%{_itens}%) itens no cofre (5)!" to player
- delete {_itens}
- stop
- if arg 1 is "clear":
- message "§4[CofreM]§c Todos os itens foram limpos!" to player
- clear {cofre1.itens::*}
- clear {cofre2.itens::*}
- clear {cofre3.itens::*}
- clear {cofre4.itens::*}
- clear {cofre5.itens::*}
- stop
- else if arg 1 is not set:
- message "§cDigite o ID do cofre! (1,2,3,4 ou 5)" to player
- stop
- else:
- if arg 1 is not "1" or "2" or "3" or "4" or "5" or "clear":
- message "§cID do cofre inválido! Tente: 1,2,3,4 ou 5" to player
- stop
- #
- command /cm lista [<text>]: # Listar os itens setados no cofre.
- usage: §6/cm lista (1,2,3,4 ou 5)
- trigger:
- if player does not have permission "cmagico.admin":
- message "§cVocê ñ tem direito para executar este comando!" to player
- stop
- if arg 1 is "1":
- message "§f--- §6Cofre (1) lista:§f ---" to player
- message "§d%{cofre1.itens::*}%" to player
- stop
- if arg 1 is "2":
- message "§f--- §6Cofre (2) lista:§f ---" to player
- message "§d%{cofre2.itens::*}%" to player
- stop
- if arg 1 is "3":
- message "§f--- §6Cofre (3) lista:§f ---" to player
- message "§d%{cofre3.itens::*}%" to player
- stop
- if arg 1 is "4":
- message "§f--- §6Cofre (4) lista:§f ---" to player
- message "§d%{cofre4.itens::*}%" to player
- stop
- if arg 1 is "5":
- message "§f--- §6Cofre (5) lista:§f ---" to player
- message "§d%{cofre5.itens::*}%" to player
- stop
- else if arg 1 is not set:
- message "§cDigite o ID do cofre! (1,2,3,4 ou 5)" to player
- stop
- else:
- if arg 1 is not "1" or "2" or "3" or "4" or "5":
- message "§cID do cofre inválido! Tente: 1,2,3,4 ou 5" to player
- stop
- #
- on place ender chest:
- name of tool is "{@CM1name}" or "{@CM2name}" or "{@CM3name}" or "{@CM4name}" or "{@CM5name}"
- cancel event
- #=======================================
- command /jjg7fh154:
- trigger: # sistema de compra do cofre número 1
- if player's money is more than or equal to 50000:
- remove 50000 from player's account
- give 1 ender chest named "{@CM1name}" with lore "{@CM1lore}" to player
- stop
- else:
- message "§cVocê ñ possui coins o suficiente!" to player
- stop
- #
- on rightclick: # sistema de confirmação do cofre 1
- player is holding a ender chest named "{@CM1name}" with lore "{@CM1lore}"
- wait 2.5 ticks
- open chest with 5 rows named "Confirmaçao" to player
- format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/oisuae58a"]
- format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
- format slot 13 of player with ender chest named "{@CM1name}" to be unstealable
- stop
- #
- command /oisuae58a:
- trigger: # sistema que irá entregar o item aleatório do cofre 1 para o jogador.
- if player have 1 ender chest named "{@CM1name}" with lore "{@CM1lore}":
- remove 1 ender chest named "{@CM1name}" with lore "{@CM1lore}" from player
- set {_item} to a random element out of {cofre1.itens::*}
- if {_item} is {@Raros}:
- broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
- give player {_item}
- stop
- else:
- message " " to player
- message "§f§lVocê ganhou %{_item}%" to player
- message " " to player
- give player {_item}
- stop
- else:
- message "§cVocê ñ possui nenhum cofre no inventário!" to player
- stop
- #=======================================
- #=======================================
- command /saueadadsa:
- trigger: # sistema de compra do cofre número 2
- if player's money is more than or equal to 100000:
- remove 100000 from player's account
- give 1 ender chest named "{@CM2name}" with lore "{@CM2lore}" to player
- stop
- else:
- message "§cVocê ñ possui coins o suficiente!" to player
- stop
- #
- on rightclick: # sistema de confirmação do cofre 2
- player is holding a ender chest named "{@CM2name}" with lore "{@CM2lore}"
- wait 2.5 ticks
- open chest with 5 rows named "Confirmaçao" to player
- format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/aweiawesad"]
- format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
- format slot 13 of player with ender chest named "{@CM2name}" to be unstealable
- stop
- #
- command /aweiawesad:
- trigger: # sistema que irá entregar o item aleatório do cofre 2 para o jogador.
- if player have 1 ender chest named "{@CM2name}" with lore "{@CM2lore}":
- remove 1 ender chest named "{@CM2name}" with lore "{@CM2lore}" from player
- set {_item} to a random element out of {cofre2.itens::*}
- if {_item} is {@Raros}:
- broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
- give player {_item}
- stop
- else:
- message " " to player
- message "§f§lVocê ganhou %{_item}%" to player
- message " " to player
- give player {_item}
- stop
- else:
- message "§cVocê ñ possui nenhum cofre no inventário!" to player
- stop
- #=======================================
- #=======================================
- command /weoqwekjdsa:
- trigger: # sistema de compra do cofre número 3
- if player's money is more than or equal to 200000:
- remove 200000 from player's account
- give 1 ender chest named "{@CM3name}" with lore "{@CM3lore}" to player
- stop
- else:
- message "§cVocê ñ possui coins o suficiente!" to player
- stop
- #
- on rightclick: # sistema de confirmação do cofre 3
- player is holding a ender chest named "{@CM3name}" with lore "{@CM3lore}"
- wait 2.5 ticks
- open chest with 5 rows named "Confirmaçao" to player
- format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/wqeioqwueqwe"]
- format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
- format slot 13 of player with ender chest named "{@CM3name}" to be unstealable
- stop
- #
- command /wqeioqwueqwe:
- trigger: # sistema que irá entregar o item aleatório do cofre 3 para o jogador.
- if player have 1 ender chest named "{@CM3name}" with lore "{@CM3lore}":
- remove 1 ender chest named "{@CM3name}" with lore "{@CM3lore}" from player
- set {_item} to a random element out of {cofre3.itens::*}
- if {_item} is {@Raros}:
- broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
- give player {_item}
- stop
- else:
- message " " to player
- message "§f§lVocê ganhou %{_item}%" to player
- message " " to player
- give player {_item}
- stop
- else:
- message "§cVocê ñ possui nenhum cofre no inventário!" to player
- stop
- #=======================================
- #=======================================
- command /9q8wqeiod:
- trigger: # sistema de compra do cofre número 4
- if player's money is more than or equal to 300000:
- remove 300000 from player's account
- give 1 ender chest named "{@CM4name}" with lore "{@CM4lore}" to player
- stop
- else:
- message "§cVocê ñ possui coins o suficiente!" to player
- stop
- #
- on rightclick: # sistema de confirmação do cofre 4
- player is holding a ender chest named "{@CM4name}" with lore "{@CM4lore}"
- wait 2.5 ticks
- open chest with 5 rows named "Confirmaçao" to player
- format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/qwe9uqweqwe"]
- format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
- format slot 13 of player with ender chest named "{@CM4name}" to be unstealable
- stop
- #
- command /qwe9uqweqwe:
- trigger: # sistema que irá entregar o item aleatório do cofre 4 para o jogador.
- if player have 1 ender chest named "{@CM4name}" with lore "{@CM4lore}":
- remove 1 ender chest named "{@CM4name}" with lore "{@CM4lore}" from player
- set {_item} to a random element out of {cofre4.itens::*}
- if {_item} is {@Raros}:
- broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
- give player {_item}
- stop
- else:
- message " " to player
- message "§f§lVocê ganhou %{_item}%" to player
- message " " to player
- give player {_item}
- stop
- else:
- message "§cVocê ñ possui nenhum cofre no inventário!" to player
- stop
- #=======================================
- #=======================================
- command /qw58qw1dasd:
- trigger: # sistema de compra do cofre número 5
- if player's money is more than or equal to 850000:
- remove 850000 from player's account
- give 1 ender chest named "{@CM5name}" with lore "{@CM5lore}" to player
- stop
- else:
- message "§cVocê ñ possui coins o suficiente!" to player
- stop
- #
- on rightclick: # sistema de confirmação do cofre 5
- player is holding a ender chest named "{@CM5name}" with lore "{@CM5lore}"
- wait 2.5 ticks
- open chest with 5 rows named "Confirmaçao" to player
- format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/qwewqdas"]
- format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
- format slot 13 of player with ender chest named "{@CM5name}" to be unstealable
- stop
- #
- command /qwewqdas:
- trigger: # sistema que irá entregar o item aleatório do cofre 5 para o jogador.
- if player have 1 ender chest named "{@CM5name}" with lore "{@CM5lore}":
- remove 1 ender chest named "{@CM5name}" with lore "{@CM5lore}" from player
- set {_item} to a random element out of {cofre4.itens::*}
- if {_item} is {@Raros}:
- broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
- give player {_item}
- stop
- else:
- message " " to player
- message "§f§lVocê ganhou %{_item}%" to player
- message " " to player
- give player {_item}
- stop
- else:
- message "§cVocê ñ possui nenhum cofre no inventário!" to player
- stop
- #=======================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement