1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved open a chest in a chest

Discussion in 'Skript' started by Hartvig, Jun 7, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. Hartvig

    Hartvig Member

    Joined:
    Apr 18, 2017
    Messages:
    39
    Likes Received:
    1
    Minecraft Version: 1.8

    Code:
    Code (Skript):
    1. on rightclick on a entity:
    2.     if name of entity is "&bMissioner":
    3.         open chest with 3 rows named "&e&lServer Missioner" to player
    4.         wait 5 ticks
    5.         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"]
    6.  
    7.  
    8.  
    9. Command /quest1:
    10.     Trigger:
    11.         If {mission.%player%.quest1} is not set:
    12.             open chest with 1 rows named "&b&lMission" to player
    13.             wait 5 ticks
    14.             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"]
    15.             stop
    16.         If {mission.%player%.quest1} is 1:
    17.             If {mission.%player%.quest1blocks} is greater or equal to 150:
    18.                 execute console command "/kit daily1 %player%"
    19.                 send "&bMissioner &7>> &eTak for hjælpen! - &7Kom tilbage imorgen igen!" to player
    20.                 set {mission.%player%.quest1} to 2
    21.                 set {mission.%player%.quest1blocks} to 0
    22.                 stop
    23.             Else:
    24.                 send "&bMissioner &7>> &6Du har ikke færdiggjordt din opgave!" to player
    25.                 stop
    26.         If {mission.%player%.quest1} is 2:
    27.             send "&bMissioner &7>> &cDu har alleredde klaret denne quest &f- &7Kom tilbage imorgen!" to player
    28.             stop
    29.  
    30.  
    31. Command /hdiagsydasydfsyadsarydasd:
    32.     Trigger:  
    33.         set {mission.%player%.quest1} to 1
    34.         message "&6-&e-&6-&6-&e-&6-&6-&e-&6- &7<< &bMissioner &7>> &6-&e-&6-&6-&e-&6-&6-&e-&6-"
    35.         message " "
    36.         message "&6Tak fordi du vil hjælpe mig!"
    37.         message "&eDu skal mine 150 blocks og modtag en præmie!"
    38.         message " "
    39.         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
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Have you tried just using the effect again lol? I can't find where you tried in your code... Also, use set slot.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    if you click the showel it's supossed to run "/quest1" quest1, will open a chest
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    i don't see any problem, can you explain us more?
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Thank you!!!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...