Solved makes items unmovable in the player's 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 community!

    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!

S13Luke

Member
Sep 16, 2024
4
0
1
Hello, I want to create a script where when the player clicks on an item called "soul", the item cannot move in the player's inventory. Can anyone create one for me?
 
First off, This is a request, and you posted it in the Skript Help thread, so next time post it in the Request Thread.

But as for what you want, here you go:

Code:
on inventory click:
    event-inventory is player's inventory
    if clicked item is named "soul":
        cancel event
I did not test this.
Also, if ANY item is named 'soul', it would do this, meaning if the player names any item 'soul', it would not be able to move in the playeer's inventory.
you can tweak it if needed.
 
First off, This is a request, and you posted it in the Skript Help thread, so next time post it in the Request Thread.

But as for what you want, here you go:

Code:
on inventory click:
    event-inventory is player's inventory
    if clicked item is named "soul":
        cancel event
I did not test this.
Also, if ANY item is named 'soul', it would do this, meaning if the player names any item 'soul', it would not be able to move in the playeer's inventory.
you can tweak it if needed.
Thank you, it's exactly what I wanted.