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 our 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 Make player open a chest

Discussion in 'Skript' started by Two, Feb 20, 2017.

Thread Status:
Not open for further replies.
  1. Two

    Two
    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    4
    Likes Received:
    2
    Hey,
    I remember there being an effect to force player to open a chest from certain location, now I've been trying to find this effect from the documentation but cannot find it. Can anyone help me to find it?

     
  2. Best Answer:
    Post #5 by ShaneBee, Feb 21, 2017
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,050
    Likes Received:
    145
    What chest to you wanna open?
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,050
    Likes Received:
    145
    a chest from certain location, for example
    x: 10
    y:60
    z:20
    But the location itself doesn't really matter.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,050
    Likes Received:
    145
    I dont think that is possible...
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,050
    Likes Received:
    145
    You can use this Skript effect to open an inventory:
    Code (Skript):
    1.  
    2. open %inventory% to %player%
    But, the problem is: You can only open inventory of blocks in loaded chunks, which mean if there isn't any player around the block, it will close the inventory about 3 seconds later.
    Code (Skript):
    1. open inventory of block at location(10, 60, 20, world("worldName")) to player
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,050
    Likes Received:
    145
    Thank you, this is what I was looking for.
     
    • Like Like x 1
Thread Status:
Not open for further replies.
Loading...