Minecraft Version: 1.8
---
Full Code:
This is a problem I have had for a long time that I have never been able to figure out. Basically I am trying to set a variable to a location that changes directions depending on where the loop-player is.
---
Full Code:
code_language.skript:
on right click holding a nether star:
loop players in radius 15 of block at player:
if loop-player is player's target:
set {mr.%player%} to location 1 infront of player
set {hit.%player%} to false
while {hit.%player%} is false:
set {dir.%player%} to direction from {mr.%player%} to loop-player
broadcast "%{dir.%player%}%"
set {mr.%player%} to location (direction from {mr.%player%} to loop-player) of {mr.%player%}
wait 1 tick
This is a problem I have had for a long time that I have never been able to figure out. Basically I am trying to set a variable to a location that changes directions depending on where the loop-player is.