Solved [SOLVED] Right Click With A Item Isn't Working

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

AshKetchumK

Member
Apr 9, 2022
1
0
1
24
My skript used to work but now it doesn't work even though I didn't make any changes to it.

Code:
on rightclick with shears:
    if name of tool of player is "&6&lAday":
        if {paperrank1} contains "%player%":
            send complex translated "boxurvival.paperone.unsuccesful" with inputs "Hello" and "there" to player
        else:
            set {paperrank1} to "%player%"
            execute server command "/execute run clear AshKetchumK minecraft:shears{KnokkosCustomItems:{Name:paper1}} 1"
            execute server command "/lp user %player% parent set trainertrainee"
            send complex translated "paperone.basarili" with inputs "Hello" and "there" to player

on rightclick with diamond hoe:
    if name of tool of player is "&6&lEğitmen":
        if {rank22} contains "%player%":
            send complex translated "papertwo.basarisiz" with inputs "Hello" and "there" to player
        else:
            set {rank22} to "%player%"
            execute server command "/execute run clear AshKetchumK minecraft:diamond_hoe{KnokkosCustomItems:{Name:paper2}} 1"
            execute server command "/lp user %player% parent set trainer"
            send complex translated "papertwo.basarili" with inputs "Hello" and "there" to player          


on rightclick with diamond hoe:
    if name of tool of player is "&a&lAcemi":
        if {rank33} contains "%player%":
            send complex translated "paperthree.basarisiz" with inputs "Hello" and "there" to player
        else:
            set {rank33} to "%player%"
            execute server command "/execute run clear AshKetchumK minecraft:diamond_hoe{KnokkosCustomItems:{Name:paper3}} 1"
            execute server command "/lp user %player% parent set apprentice"
            send complex translated "paperthree.basarili" with inputs "Hello" and "there" to player          
            execute server command "/chatcolor %player% a"


on rightclick with diamond hoe:
    if name of tool of player is "&b&lBağımlı":
        if {rank44} contains "%player%":
            send complex translated "paperfour.basarisiz" with inputs "Hello" and "there" to player
        else:
            set {rank44} to "%player%"
            execute server command "/execute run clear AshKetchumK minecraft:diamond_hoe{KnokkosCustomItems:{Name:paper4}} 1"
            execute server command "/lp user %player% parent set addicted"
            send complex translated "paperfour.basarili" with inputs "Hello" and "there" to player    
            execute server command "/chatcolor %player% 9"
[doublepost=1649493697,1649493513][/doublepost]i solved it
 
Status
Not open for further replies.