Shulker Box Open On RightClick

  • 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.
Mar 18, 2021
16
0
1
25
does anyone know how to make a shulker box open on rightclick

this is my code it doesnt really work at all
Code:
on rightclick:
    if player is holding any shulker box:
        cancel event
        set {_tool} to player's tool
        open {_tool}'s inventory to player
and this code does for some reason
Code:
on rightclick on any shulker box:
    cancel event
    open event-block's inventory to player
 
does anyone know how to make a shulker box open on rightclick

this is my code it doesnt really work at all
Code:
on rightclick:
    if player is holding any shulker box:
        cancel event
        set {_tool} to player's tool
        open {_tool}'s inventory to player
and this code does for some reason
Code:
on rightclick on any shulker box:
    cancel event
    open event-block's inventory to player
Well, you just set the variable to the held item of the player, and skript doesnt know that item can be opened. You would have to open a gui, but im not sure how you would save the contents once closed
 
Status
Not open for further replies.