effect by rightclicking 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 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.

zaved

Member
Sep 19, 2022
18
0
1
hey,

I wanted to ask if someone can help me. I dont get it :emoji_frowning:

Code:
on rightclick on sign:
    if line 1 is "Regeneration":
        execute console command "effect %player% minecraft:regeneration 99999 10"
 
Code:
on rightclick on sign:
    if line 1 of clicked block is "Regeneration":
        apply regeneration of tier 10 to player for 999 days


I have this now:
Code:
on rightclick on sign:
    if line 1 of clicked block is "---------------":
        if line 2 of clicked block is "Effekt:":
            if line 3 of clicked block is "&cAbsorption IV":
                if line 4 of clicked block is "---------------":
                    apply absorption of tier 4 to player for 20 seconds

why doesnt it work?
 
I have this now:
Code:
on rightclick on sign:
    if line 1 of clicked block is "---------------":
        if line 2 of clicked block is "Effekt:":
            if line 3 of clicked block is "&cAbsorption IV":
                if line 4 of clicked block is "---------------":
                    apply absorption of tier 4 to player for 20 seconds

why doesnt it work?
It has errors after reload?
[doublepost=1665683456,1665683215][/doublepost]
I have this now:
Code:
on rightclick on sign:
    if line 1 of clicked block is "---------------":
        if line 2 of clicked block is "Effekt:":
            if line 3 of clicked block is "&cAbsorption IV":
                if line 4 of clicked block is "---------------":
                    apply absorption of tier 4 to player for 20 seconds

why doesnt it work?
I think it causes because you write "&cAbsorption IV", but table line doesn't have '&' symbol, try use '§'
 
It has errors after reload?
Nah

I think it causes because you write "&cAbsorption IV", but table line doesn't have '&' symbol, try use '§'
Actually as I did it the first time it worked. But the more signs I made the more it didnt work anymore. So in the first tries it worked also with &. I'll try now with §

//Edit: It still doesnt work, also with §
 
Last edited:
Status
Not open for further replies.