Jump to content

Spawning a mob and naming it


Narwhal_251

Recommended Posts

I'm on mobile sorry for the non coded code

16 hours ago, Narwhal_251 said:

so I have a skript:

 

command /chicken:
    trigger:
        spawn 16 chicken at player's location
        set name of spawned entity to "&f%player%'s Chicken"

 

but it only names 1 of the 16 chickens, how would I name all of them?

 

 

loop 16 times:

    spawn a chicken at player's location

    set name of last spawned entity to "&f%player%'s Chicken"

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

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