Click on Sign?

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

claytyne

Member
May 12, 2020
26
0
1
23
i need to check the lines on the sign, there are no error but its not working...

Code:
on rightclick on dark oak sign:
    line 1 of event-block is "&6Buy Sharpness"
    line 2 of event-block is "&d45 &6Coins"
    if player has 45 gold nuggets named "&d&l&oMagical Coin":
        remove 45 gold nuggets named "&d&l&oMagical Coin" from player's inventory
        remove 1 iron sword from player's inventory
        give 1 iron sword of sharpness 5 to player
        play sound "entity.experience_orb.pickup" to player
    else:
        play sound "entity.villager.no" to player
 
First, try just the event
Code:
on right click on a sign:
Then, try debugging. Maybe the line != what you've written. You can try some of these:
Code:
send "%line 1 of event-block%"
#...
Code:
line 1 of event-block is "&6Buy Sharpness"
send "a"
line 2 of event-block is "&d45 &6Coins"
send "b"
 
Status
Not open for further replies.