How to set a nametag on an armorstand? set_mob_name() doesn't seem to work

Discussion in 'CommandHelper' started by malon, Sep 10, 2017.

  1. malon

    malon Member

    Is this something that's possible?

    Code (Text):

    test1:/test1 = >>>
            @player = player()
            @ploc = ploc(@player)
            @ploc['y'] += 1
            @marker = spawn_entity('ZOMBIE',1,@ploc)[0]


            set_timeout(1000,closure(
                set_mob_name(@marker,@player)
            ))

            set_timeout(5000,closure(
               entity_remove(@marker)
            ))

    <<<
     
    Leaving ZOMBIE as is, it works fine. If you change it to ARMOR_STAND, almost everything works the same, but the nametag is never applied.
    Last edited: Sep 10, 2017
  2. PseudoKnight

    PseudoKnight Well-Known Member

    You need to also set_name_visible().