Jump to content

mob spawning skript


Narratrr

Recommended Posts

every 5 seconds in "world1":
    if {mob1count} is less than 90:
        spawn zombie at location at {location1}
        apply potion of absorption of tier 30 to last spawned zombie for 1000000 seconds
        apply potion of strength of tier 1 to last spawned zombie for 1000000 seconds
        apply potion of speed of tier 1 to last spawned zombie for 1000000 seconds
        apply potion of glowing of tier 1 to last spawned zombie for 5 seconds
        add 1 to {mob1count}

 

command /setmobspawn [<text>] [<integer>]:
    permission: op
    trigger:
        if player's world = "world1":
            set {world1%arg-1%spawn%arg-2%} to location of player
            send "&fworld 1, %arg-1%&f's spawn %arg-2%"
            send "%{world1%arg-1%spawn%arg-2%}%" to player

 

 

no errors. mobs just dont seem to be spawning... 
my plugins: 
 

2023-05-10_17.12.58.png

IGN: LastMC

Discord: LastXD#7171

Rank: PRO

Join date: Monday - December - 23rd - 2019

Link to comment
Share on other sites

  • 4 weeks later...

every 5 seconds in "world1":
    if {mob1count} is less than 90:
        spawn zombie at {location1}
        apply potion of absorption of tier 30 to last spawned zombie for 1000000 seconds
        apply potion of strength of tier 1 to last spawned zombie for 1000000 seconds
        apply potion of speed of tier 1 to last spawned zombie for 1000000 seconds
        apply potion of glowing of tier 1 to last spawned zombie for 5 seconds
        add 1 to {mob1count}

Idk if this works but it might

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