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}