Solved Specific anti-drop

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

Status
Not open for further replies.

Lolinator

Member
Mar 2, 2017
4
1
3
So I am basically trying to make it so they cannot drop any type of pickaxe by pressing Q. From some reason, it won't work...

I do have it so that they cannot drop the item via slot 0 with a click event. I would also like to mention that the test message does not get sent.

I'm a total newbie at this so please leave just constructive comments.


code_language.skript:
on drop:
    if player is holding pickaxe:
        cancel event
        set action bar of player to "{@Prefix} {@SecondaryColor}>> {@MainColor}You are not allowed to drop this!"
        stop
    else:
        message "Just a test to see if this works. :P"
        stop

on inventory click:
    if clicked slot is 0:
        cancel event
        stop
    else:
        stop

Already had this fixed within minutes.
code_language.skript:
on drop of pickaxe:
    cancel event
    set action bar of player to "{@Prefix} {@SecondaryColor}>> {@MainColor}You are not allowed to drop this!"
    stop
 
Last edited:
Status
Not open for further replies.