#pet

1 messages · Page 1 of 1 (latest)

languid saddle
#
command /petspawn:
    trigger:
        spawn armor stand at player with nbt from "{Small:1,Invisible:1,NoGravity:1}"
        set {pet::%player's uuid%} to last spawned armor stand
        set helmet of {pet::%player's uuid%} to player head

command /removepet:
    trigger:
        delete {pet::%player's uuid%}

every 1 tick:
    set {_y} to 0.45
    set {_x} to -1.55
    set {_z} to 0.75
    set {_spawn} to location {_x}, {_y}, {_z} in world "mainblisssmp"

on player move:
    if entity is player:
        set {_y} to player's y coord + 0.45
        set {_x} to player's x coord + -1.55
        set {_z} to player's z coord + 0.75
        set {_w} to player's world
        set {_st} to location {_x}, {_y}, {_z} in world {_w}
        set {_st}'s pitch to 0
        set {_st}'s yaw to 110
        teleport {pets::%player's uuid%} to {_st}

on damage of entity:
    delete victim
``` im trying to remove the pet but doesnt remove, theres just an idle head there, how do i remove it. i know an armour stand is an entity but how can i only remove the pet?
hasty gulch
#

kill then delete the variable
also you can use vector offsets (which are more performant) instead of manipulating the player’s location

languid saddle
hasty gulch
#

yes

languid saddle
#

pet soawn doesnt work i think because i have one stuck

#

basically i done removepet earlier

#

and now there is an idle head

#

how remove that permanently

languid saddle
#

how do i remove the idle head tho

cedar grove
#

what the heck is the point of that periodical

languid saddle
#

i don't wanna lie otherwise its gonna be harder on me but i just found this code online

#

as i didn't know where to start with this kinda stuff

#

well how do i remove the pet the idle one