Move items

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

zuhir__

Member
Feb 16, 2017
14
3
3
22
Hi, i have a problem for block the items movement in the inventory, if i put the cursor in the slot 2 and have item in slot 5 and press 5 the item move to cursor slot, can help me?

upload_2017-2-16_13-34-50.png
upload_2017-2-16_13-35-24.png

(White slot is cursor slot)

Sorry for my bad english.
 
code_language.skript:
on inventory click:
  cancel the event

Depends: SkQuery or WildSkript
Nope, i have this but don't block
code_language.skript:
on inventory click:
    if clicked item's name is "{@Visible}" or "{@Hidden}":
        cancel event
    if clicked type is number key:
        if clicked item's name is "{@Visible}" or "{@Hidden}":
            cancel event
Skellet, SkQuery and SkRayFall
 
Status
Not open for further replies.