Clicked item/Cursor item

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

Goetheus

Hi everybody!

It seems cursor item was erased from Umbaska... Right?

I would like to modify the lore of an item when you click it on the inventory...

code_language.skript:
on inventory click:
    set line 1 of lore of clicked item to "test"

This code do nothing. No error, no result.

Thank you for help!
Kiss <3
 
If you're using the Bensku's fork:
code_language.skript:
on inventory click:
    #event-slot == clicked item
    #cursor slot of player == cursor item
    #click action & inventory action == click type
    #event-inventory == clicked inventory
 
  • Like
Reactions: Goetheus
Hi @Mr_Simba & @Snow-Pyon !

Thank you for your answers!

Finally, my code works! But only in survival gamemode... I forgeted this limitation...

Thank you Pyon for these precisions!
 
Status
Not open for further replies.