Skript Issue - Cursor Slot Expressions

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

GToTheG

Member
Jan 26, 2017
35
0
8
23
Hello all.

Following is a issue with skripts cursor slot expression:

code_language.skript:
on inventory click:
    if player's cursor slot is nether_star:
        send "1"
        if the lore of player's cursor slot contains coloured "&7whatever":
            if clicked item is iron pickaxe:

It returns "cursor slot of olivervincent"

If i did:

code_language.skript:
send "%clicked cursor%"

It returns "nether_star".

But the code does not registrer im clicking with a nether star in my inventory, it doesn send the "1".

@LimeGlass
 
Last edited:
code_language.skript:
on inventory click:
    send "%clicked slot%" to player
    if clicked item is nether_star:
        send "1"
 
code_language.skript:
on inventory click:
    send "%clicked slot%" to player
    if clicked item is nether_star:
        send "1"

This is not what i'm trying to do with the skript.

And this is a skript issue, that's why i posted it here.
 
code_language.skript:
on inventory click:
    send "You clicked on slot: %clicked slot%, %clicked item%" to player
   
on click:
    send "You clicked on slot: %current hotbar slot of player%, %tool of player%" to player
I have no clue what else you want.. Your issue is "But the code does not registrer im clicking with a nether star in my inventory, it doesn send the "1"." and i made code which registers it.. in your inventory and in your hand.. you can choose from there what you want..
Or explain it more
 
code_language.skript:
on inventory click:
    send "You clicked on slot: %clicked slot%, %clicked item%" to player
 
on click:
    send "You clicked on slot: %current hotbar slot of player%, %tool of player%" to player
I have no clue what else you want.. Your issue is "But the code does not registrer im clicking with a nether star in my inventory, it doesn send the "1"." and i made code which registers it.. in your inventory and in your hand.. you can choose from there what you want..
Or explain it more


I already have explained it for LimeGlass, he confirms it's a skript issue, and i should create a thread here about it.

But to explain more about what the whole skript is about i was makeing. You are clicking with a item onto another item.

Like:

code_language.skript:
on inventory click:
    if player's cursor slot is nether_star:
        send "1"
        if the lore of player's cursor slot contains coloured "&7whatever":
            if clicked item is iron pickaxe or iron tool or wooden tool or gold tool or diamond tool or stone tool or iron tool or leather armor or gold armor or iron armor or diamond armor:
 
if you do this it should work, or at least its working for me
code_language.skript:
on inventory click:
    if clicked cursor is nether_star:
        send "1"
 
  • Like
Reactions: GToTheG
Status
Not open for further replies.