Solved Alchemy

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

slxshxr

Member
Jul 28, 2018
11
0
0
24
I need a script, which can block put a dragon breath named "&6test" in alchemy tripod.
Else that would be a Script, which blocks creating potions with dragon breath named "&6Test".​
 
I need a script, which can block put a dragon breath named "&6test" in alchemy tripod.
Else that would be a Script, which blocks creating potions with dragon breath named "&6Test".​
This should work for you, i tested it, and it works
code_language.skript:
on inventory click:
    if name of current inventory of player contains "brewing":
        if clicked slot is 3:
            if player's cursor is dragon breath named "&6Test":
                cancel event
                send "NO"
 
Next time please use the format.

Category:

Suggested name: s

What I want:
A proper description.

Ideas for commands:

Ideas for permissions:

When I'd like it by: A reasonable time
 
  • on inventory click:
  • if name of current inventory of player contains "brewing":
  • if clicked slot is 3:
  • if player's cursor is dragon breath named "&6Test":
  • cancel event
  • send "NO"
Not working for me ;/
Using Skript dev. 37c, SkQuerylime, Skellet, SkDragon, WildSkript, Facsk, Sharpsk.
No errors, but when i put dragon breath into alchemy tripod, its going in.

Okay, by using mouse drag it's blocking, but when using SHIFT+LMB it's not
 
Yes, i did. My problem is that, i can move it by SHIFT. Normal drag is blocked.
You could do this.
code_language.skript:
on inventory click:
    if name of current inventory of player contains "brewing":
        if name of clicked item is "&6Test":
            cancel event
            send "NO"
 
Okay found a syntax I didn't know about, try this one
code_language.skript:
on inventory click:
    if name of current inventory of player contains "brewing":
        if clicked slot is 3:
            if player's cursor is dragon breath named "&6Test":
                cancel event
                send "NO"
        if inventory action is instant move:
            if clicked item is dragon breath named "&6Test":
                cancel event
                send "NO"
[doublepost=1532813356,1532766383][/doublepost]Hey just a reminder to either click "BEST ANSWER" or mark it as solved, so other members are aware this thread has been solved :emoji_slight_smile:
 
  • Like
Reactions: slxshxr