1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Naming a mob

Discussion in 'Skript' started by Narwhal251, Jan 12, 2022.

Thread Status:
Not open for further replies.
  1. Narwhal251

    Narwhal251 Member

    Joined:
    Jan 8, 2022
    Messages:
    2
    Likes Received:
    0
    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
    --- Double Post Merged, Jan 12, 2022, Original Post Date: Jan 12, 2022 ---
    As soon as I posted the thread I got it xD
    --- Double Post Merged, Jan 12, 2022 ---
    nvm it worked and now it isn't working
     
Thread Status:
Not open for further replies.

Share This Page

Loading...