Cant move anything in virtual inventory

  • 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.

newgoldendoge

Member
Feb 1, 2021
2
0
1
18
on inventory close:
if event-inventory's name is "&aTest Chest":
set {slot1} to slot 1 of event-inventory

on inventory open:
wait 1 tick
if event-inventory's name is "&aTest Chest":
open virtual chest with size 1 named "&aTest Chest" to player
set slot 1 of event-inventory to {slot1}

Why cant i move anything in the inventory? Im trying to make a custom sized chest that will also work with hoppers.
 
on inventory close:
if event-inventory's name is "&aTest Chest":
set {slot1} to slot 1 of event-inventory

on inventory open:
wait 1 tick
if event-inventory's name is "&aTest Chest":
open virtual chest with size 1 named "&aTest Chest" to player
set slot 1 of event-inventory to {slot1}

Why cant i move anything in the inventory? Im trying to make a custom sized chest that will also work with hoppers.
first of all, I can't understand anything of your code so use this.

Also, give me the full code please.
Y1aifP.jpg
 
Code:
open virtual inventory with 3 rows named "Name" to player
    format gui slot 0 of player with diamond named "Diamond" to do nothing

The "To do nothing" part is essential im pretty sure. Havent used TuSKe in awhile, I suggest you please learn TuSKe More and skript in general
 
Status
Not open for further replies.