Solved open a chest in a chest

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Hartvig

Member
Apr 18, 2017
39
1
0
22
Minecraft Version: 1.8

Code:
code_language.skript:
on rightclick on a entity:
    if name of entity is "&bMissioner":
        open chest with 3 rows named "&e&lServer Missioner" to player
        wait 5 ticks
        format slot 13 of player with diamond shovel named "&aGrave mission" with lore "&cDu har mined %{mission.%player%.quest1blocks}%/150" to close then run [execute player command "/quest1"]



Command /quest1:
    Trigger:
        If {mission.%player%.quest1} is not set:
            open chest with 1 rows named "&b&lMission" to player
            wait 5 ticks
            format slot 4 of player with diamond named "&cStart mission" with lore "&5Klik her for at starte din mission!" to close then run [ execute player command "/hdiagsydasydfsyadsarydasd"]
            stop
        If {mission.%player%.quest1} is 1:
            If {mission.%player%.quest1blocks} is greater or equal to 150:
                execute console command "/kit daily1 %player%"
                send "&bMissioner &7>> &eTak for hjælpen! - &7Kom tilbage imorgen igen!" to player
                set {mission.%player%.quest1} to 2
                set {mission.%player%.quest1blocks} to 0
                stop
            Else:
                send "&bMissioner &7>> &6Du har ikke færdiggjordt din opgave!" to player
                stop
        If {mission.%player%.quest1} is 2:
            send "&bMissioner &7>> &cDu har alleredde klaret denne quest &f- &7Kom tilbage imorgen!" to player
            stop


Command /hdiagsydasydfsyadsarydasd:
    Trigger:   
        set {mission.%player%.quest1} to 1
        message "&6-&e-&6-&6-&e-&6-&6-&e-&6- &7<< &bMissioner &7>> &6-&e-&6-&6-&e-&6-&6-&e-&6-"
        message " "
        message "&6Tak fordi du vil hjælpe mig!"
        message "&eDu skal mine 150 blocks og modtag en præmie!"
        message " "
        message "&6-&e-&6-&6-&e-&6-&6-&e-&6- &7<< &bMissioner &7>> &6-&e-&6-&6-&e-&6-&6-&e-&6-"


Troubleshooting:
So i want it to open a new chest when you click on "grave mission"


Have you tried searching the docs? Yes
Have you tried searching the forums? No
 
Status
Not open for further replies.