Jump to content

Help Pls


DEV1234

Recommended Posts

 

command test:
    trigger:
        spawn an armor stand at location behind the player
        set {_pet.%player%} to last spawned armor stand
        set name of {_pet.%player%} to "test"
        while {_pet.%player%} is alive:
            if distance between player and {_pet.%player%} is greater than 5:
                teleport {_pet.%player%} behind the player

            else if distance between player and {_pet.%player%} is greater than 3:
                set {_vector} to vector between {_pet.%player%} and player's location
                push {_pet.%player%} {_vector} at speed 1
            wait a tick

So i created this command but when you leave the server the armorstand is still there it there a way to get rid of it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...