Spawner help

  • 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 community!

    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.

GiorgixPRO

Member
Jul 29, 2017
44
0
0
How can I set that a block spawns friendly zombies every 5 seconds?

code_language.skript:
command /setspawnerblock:
 trigger:
 
LOL the provided code is a bit useless x3 hehe. But you can just spawn the zombies at a coordinate location. You can save that location to a variable or a list variable of locations as well. If you want it to be a specific block, then just save the location of that block when it is placed using the on place event.
to make them friendly, cancel event in the on damage event by a zombie. If you want to make those specific zombies not do damage you have a number of ways, but the first that comes to mind is just naming them when they spawn and checking the name before cancelling the damage event.
 
LOL the provided code is a bit useless x3 hehe. But you can just spawn the zombies at a coordinate location. You can save that location to a variable or a list variable of locations as well. If you want it to be a specific block, then just save the location of that block when it is placed using the on place event.
to make them friendly, cancel event in the on damage event by a zombie. If you want to make those specific zombies not do damage you have a number of ways, but the first that comes to mind is just naming them when they spawn and checking the name before cancelling the damage event.
Ok, thanks.
 
Last edited:
Status
Not open for further replies.