Solved Right click and it wil open 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.

BestGamerNL

Member
Apr 25, 2017
38
1
0
25
Heey guys i have a question i have a code here

code_language.skript:
on join:
    clear player's inventory
    wait 2 ticks
    set slot 4 of player to nether star named "&7● &bAttractie &eMenu &7●"

and what i want is that if a player right click with a netherstar that it wil open a chest with 6 rows
does some one know how to skript this it wil help me a lot i tryt everything. :emoji_frowning:
 
This is a request, so it's on the wrong section.

code_language.skript:
on rightclick holding nether star:
    name of player's tool is "&7● &bAttractie &eMenu &7●"
    open chest with 6 row named "haha lol" to player

That's exactly what you wanted. Have in consideration that it's not a chest per se, you can't store items there.
 
Last edited by a moderator:
I think it worked but not for me because i get a error

Screenshot error: http://prntscr.com/gjh22b

this is now my code and it is still not working :emoji_frowning:

do you know why

code_language.skript:
on join:
    clear player's inventory
    wait 2 ticks
    set slot 4 of player to nether star named "&7● &bAttractie &eMenu &7●"


on rightclick holding nether star:
    name of player's tool is "&7● &bAttractie &eMenu &7●"
    open chest with 6 row named "test"
 
Whoops.

code_language.skript:
open chest with 6 row named "test" to player
It also requires SkQuery to work.
I think it was SkQuery.
 
Status
Not open for further replies.