I would like to create a skript that at the specific command blocks my movements for 10 seconds, and adds me blindness and slowness always for 10 seconds, how can I do it?
Code:
command /immobilizza [<player>]:
permission: immobilizza
permission message: &cNessun Permesso
trigger:
if arg-1 is set:
if distance between arg-1 and player is smaller than 4:
set {_location} to location of arg-1
loop 10 times:
set {_check} to location of arg-1
if {_check} isn't {_location}:
teleport arg-1 to {_location}
wait 2 ticks