I have tried to create a line with SkDragon between the target and the player (like a laser beam), but it's just stuck in my world and i don't know how to remove it.
The command I used:
IMAGE
The command I used:
code_language.skript:
on leftclick with steak:
if player is op:
if distance between the target and the player is more than 10:
message "too far"
else:
damage the target entity by 3
drawLine particle redstone, center player, target location of target, id "%player%", rainbowMode true, solid true, density 5, length 6, zigZag count 0, height 0, visibleRange 32, displacementXYZ 0, 1, 0, pulseDelay 1
IMAGE