Caixa Misteriosa BETA (Skript) 1.1

Skript, MysteryBox

  1. ESKARYOS
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    Languages Supported:
    Inglês Português
    prince.png
    Skript de Caixas Misteriosas :

    SKRIPT EM BETA !
    (REPORTEM BUS ERROS)

    aaa.png
    Skript: https://dev.bukkit.org/projects/skript
    SkQuery:https://dev.bukkit.org/projects/skquery
    HolographicDisplaysAddon: https://forums.skunity.com/resources/holographicdisplaysaddon.393/
    12.png
    /caixa criar : caixa.admin (QUANDO CRIAR PULE E ESPERE O HOLOGRAMA APARECER)
    Abrir Menu: /caixamisteriosaabrir

    DA.png
    teste.png
    Code (Java):
    command /caixamisteriosaabrir:
        trigger:
            wait 1 tick
            open chest with 5 rows named "&f&LCaixa Misteriosa" to player
            format slot 10 of player with ender chest named "&6&lCaixa &a&lDiaria &7Membro" with lore "&7Ganhe itens diarios" to close then run [execute player command "diaria"]
            format slot 19 of player with ender chest named "&6&lCaixa &a&lSemanal &7Membro" with lore "&7Ganhe itens semanais" to close then run [execute player command "semanal"]
            format slot 28 of player with ender chest named "&6&lCaixa &a&lMensal &7Membro" with lore "&7Ganhe itens mensais" to close then run [execute player command "mensal"]
            format slot 13 of player with blue stained glass named "&8><" to be unstealable
            format slot 22 of player with blue stained glass named "&8><" to be unstealable
            format slot 21 of player with blue stained glass named "&8><" to be unstealable
            format slot 23 of player with blue stained glass named "&8><" to be unstealable
            format slot 31 of player with blue stained glass named "&8><" to be unstealable
            format slot 16 of player with ender chest named "&6&lCaixa &a&lDiaria &aVIP" with lore "&7Ganhe itens diarios" to close then run [execute player command "diariavip"]
            format slot 25 of player with ender chest named "&6&lCaixa &a&lSemanal &aVIP" with lore "&7Ganhe itens semanais" to close then run [execute player command "semanalvip"]
            format slot 34 of player with ender chest named "&6&lCaixa &a&lMensal &aVIP" with lore "&7Ganhe itens mensais" to close then run [execute player command "mensalvip"]
            format slot 39 of player with ender chest named "&6&lCaixa &a&lDiaria &aVIP&6+" with lore "&7Ganhe itens diarios" to close then run [execute player command "diariovip+"]
            format slot 40 of player with ender chest named "&6&lCaixa &a&lSemanal &aVIP&6+" with lore "&7Ganhe itens semanais" to close then run [execute player command "semanalvip+"]
            format slot 41 of player with ender chest named "&6&lCaixa &a&lMensal &aVIP&6+" with lore "&7Ganhe itens mensais" to close then run [execute player command "mensalvip+"]
            format slot 3 of player with ender chest named "&6&lCaixa &a&lDiaria &bMVP" with lore "&7Ganhe itens diarios" to close then run [execute player command "diariamvp"]
            format slot 4 of player with ender chest named "&6&lCaixa &a&lSemanal &bMVP" with lore "&7Ganhe itens semanais" to close then run [execute player command "semanalmvp"]
            format slot 5 of player with ender chest named "&6&lCaixa &a&lMensal &bMVP" with lore "&7Ganhe itens mensais" to close then run [execute player command "mensalmvp"]
     
    Code (Java):
    command /diaria:
        permission: caixa.membro
        permission message: &cSem permissão!
        trigger:
            set {_espera} to difference between {delay.%player%} and now
            if {_espera} is less than 1 seconds:
                play raw sound "note.pling" at player with pitch 1 volume 10
                send "&cAguarde 24 horas para executar este comando novamente."
                stop
            chance of 25%:
                send ""
                send "          &a&lCAIXA MISTERIOSA"
                send "       &aVoce recebeu &e200 coins"
                send ""
                execute console command "skywars coins add %player% 200"
                set {delay.%player%} to now
            chance of 25%:
                send ""
                send "          &a&lCAIXA MISTERIOSA"
                send "       &aVoce recebeu &e500 coins"
                send ""
                execute console command "skywars coins add %player% 500"
                set {delay.%player%} to now
            chance of 50%:
                send ""
                send "          &a&lCAIXA MISTERIOSA"
                send "       &aVoce recebeu &e100 coins"
                send ""
                execute console command "skywars coins add %player% 100"
                set {delay.%player%} to now