on rightclick on a sign line 1 is "test"

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

Mich7272

Member
Apr 12, 2019
49
0
0
23
skript 2.4 beta
server spigot 1.14.1
mc apigor 1.14.1

code
Code:
on rightclick on a sign holding any tool or sword:
    if line 1 of block is "&0[&3&lTelekinesis&0]":
the line 1 of the sign is &0[&3&lTelekinesis&0] and I set the line like this
Code:
else if line 2 is "xp":
            if line 3 is set:
                set {_d} to line 3 parsed as integer
                if {_d} is a integer:
                    set line 1 to "&0[&3&lTelekinesis&0]"
                    set line 2 to "&0&oExperience cost:"
                    set line 3 to "&a%{_d}%"
                    message "{@logo} Experience sign created." to player
                else:
                    message "{@logo} Line 3 need to be set to a integer for example ""10, 30""" to player
but is nor running the next part of the code and I event try if line 1 is test
also I try to display a message before the if line 1 is ... and the message got displayed
I dont know what to do now.
 
Try entity-block instead of block
no this one does not work.

Console error: Can't compare 'line 1 of entity-block' with a text (telekinesis.sk, line 40: if line 1 of entity-block is "&0[&3&lTelekinesis&0]":')
 
code_language.skript:
if line 1 of block is "&0[&3&lTelekinesis&0]":
Remove the "of block" part, if that is returning false it cannot proceed to check the other if statements, so that is why it is not working.
I will try this and I tell you if does not work if it work I will mark best answer
[doublepost=1566066382,1566049125][/doublepost]
code_language.skript:
if line 1 of block is "&0[&3&lTelekinesis&0]":
Remove the "of block" part, if that is returning false it cannot proceed to check the other if statements, so that is why it is not working.
is also not working
[doublepost=1566066709][/doublepost]
code_language.skript:
if line 1 of block is "&0[&3&lTelekinesis&0]":
Remove the "of block" part, if that is returning false it cannot proceed to check the other if statements, so that is why it is not working.
I find the problem is the color format
 
Status
Not open for further replies.