Hey everyone,
I basically need a skript that spawns a guardian above a player, and follows the player wherever he goes. The guardian needs to float above the player. I would also like the guardian to use a beam to target it's owners opponent (in a fight) with a visual beam that would induce a potion effect on that said player. Now, with that being said, I suck at skripts. Any and all help is very appreciated. Here's what I have (try not to laugh):
I basically need a skript that spawns a guardian above a player, and follows the player wherever he goes. The guardian needs to float above the player. I would also like the guardian to use a beam to target it's owners opponent (in a fight) with a visual beam that would induce a potion effect on that said player. Now, with that being said, I suck at skripts. Any and all help is very appreciated. Here's what I have (try not to laugh):
code_language.skript:
command /guardian:
trigger:
spawn a guardian at location of player
set the display name of the last spawned guardian to "&6&lTwooze's &7Guardian"
set the target of the last spawned guardian to the player
while spawned entity exists:
make spawned entity pathfind to player with speed 1
wait 1 tick