Solved Please Help Me :(

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

MrBedir

Member
Jul 7, 2018
3
0
0
29
code_language.skript:
command /hanimsopamigetir:
    permission: sopa.getir
    trigger:
        give a stick named "Haydar" with lore "Bağımlılık yapar" to player


on damage:
    if attacker is a player:
        if victim is a player:
            if attacker's tool is stick:
                if attacker's tool's name is "Haydar":
                    if attacker's tool's lore is "Bağımlılık yapar":
                        cancel event
                        chance of 10%:
                            loop 120 times:
                                spawn 1 armor stand at block 1 above attacker
                                set {_as} to last spawned entity
                                add "{NoGravity:1}" to nbt of {_as}
                                add "{Invisible:1}" to nbt of {_as}
                                make victim ride {_as}
                                wait 5 ticks
                                kill {_as}

My skript error:
code_language.skript:
[18:10:58 ERROR]: Can't understand this condition/effect: add "{NoGravity:1}" to nbt of {_as} (conconelmas.sk, line 57: add "{NoGravity:1}" to nbt of {_as}')
[18:10:58 ERROR]: Can't understand this condition/effect: add "{Invisible:1}" to nbt of {_as} (conconelmas.sk, line 58: add "{Invisible:1}" to nbt of {_as}')
 
code_language.skript:
command /hanimsopamigetir:
    permission: sopa.getir
    trigger:
        give a stick named "Haydar" with lore "Bağımlılık yapar" to player


on damage:
    if attacker is a player:
        if victim is a player:
            if attacker's tool is stick:
                if attacker's tool's name is "Haydar":
                    if attacker's tool's lore is "Bağımlılık yapar":
                        cancel event
                        chance of 10%:
                            loop 120 times:
                                spawn 1 armor stand at block 1 above attacker
                                set {_as} to last spawned entity
                                add "{NoGravity:1}" to nbt of {_as}
                                add "{Invisible:1}" to nbt of {_as}
                                make victim ride {_as}
                                wait 5 ticks
                                kill {_as}

My skript error:
code_language.skript:
[18:10:58 ERROR]: Can't understand this condition/effect: add "{NoGravity:1}" to nbt of {_as} (conconelmas.sk, line 57: add "{NoGravity:1}" to nbt of {_as}')
[18:10:58 ERROR]: Can't understand this condition/effect: add "{Invisible:1}" to nbt of {_as} (conconelmas.sk, line 58: add "{Invisible:1}" to nbt of {_as}')
Do you have SkStuff succesfully installed? You need it for NBT things
EDIT: for 1.12.2, I think this one is working. It's a fork from the original.
 
Yes İm install the SkStuff but skript error (sorry im bad english) my server its 1.12
 
Status
Not open for further replies.