Naming a mob

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Narwhal251

Member
Jan 8, 2022
2
0
1
21
So I'm making a Mob Generator server!

I want to name the mobs (I know how to) when the mobs spawn above the gen (I have that)

But if I have 2 Generators down it only names 1 of the mob (chicken)

As you can se
e I have 2 gens, one of the gens the chicken doesn't have a name

the other one has a name

CODE:


every 20 seconds:
loop all players:
spawn 1 chicken 1 meter above {gens::%loop-player's uuid%::chicken::*}
set name of last spawned mob to "%loop-player%'s Chicken"

I think it's the last spawn mob thingy but Idk
2022-01-11_20.06.37.png
2022-01-11_20.06.19.png
2022-01-11_20.06.29.png

[doublepost=1641953625,1641953489][/doublepost]As soon as I posted the thread I got it xD
[doublepost=1642021161][/doublepost]nvm it worked and now it isn't working
 
Status
Not open for further replies.