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}')