-
Notifications
You must be signed in to change notification settings - Fork 5
Marker Tutorial: Setting up Mob Spawners and MythicMob Spawners
You can use Markers to place Mobs spawner blocks, or Mythicmobs Mob Spawners which will be created when a Schematic is spawned in the world. When the schematic is created, the marker signs will instead be replaced by a Mobs Spawner Block (or in MythicMobs case, a area filled with flame particles which mobs spawn from)
Building on the example from the first tutorial, here is how we would set up the -blockdata config file to replace both markers with Spawner Blocks, one which spawns Skeletons, and one which spawns Zombies.
By changing to subtype to MOBSPAWNER, we let the plugin know that we want that marker to be replaced by a Mob Spawner Block when the schematic is created. Then we put the mob we want the Spawner Block to spawn in the mobs section. If there is more than one mob listed, one mob will be chosen at random from the list
Blocks:
Marker1_MyMarkerBottom:
type: marker
subtype: MOBSPAWNER
x: 2
y: 1
z: 4
properties: {}
mobs:
- ZOMBIE
Marker2_MyMarkerTop:
type: marker
subtype: MOBSPAWNER
x: 2
y: 6
z: 0
properties: {}
mobs:
- SKELETON
The properties section is where you can add further options to customize the Mob Spawner. For Mob Spawner Blocks, the following properties are available:
cooldown: - Cooldown period (in ticks) before the spawner will attempt to spawn more mobs
example: the config below has a cooldown of 10 seconds (200 ticks)
Marker2_MyMarkerTop:
type: marker
subtype: MOBSPAWNER
x: 2
y: 6
z: 0
properties:
cooldown: 200
mobs:
- SKELETON
Building on the example from the first tutorial, here is how we would set up the -blockdata config file to replace both markers with a MythicMobs spawner, both of which will spawn the AngrySludge mob.
By changing to subtype to MYTHICMOBSPAWNER, we let the plugin know that we want that marker to be replaced by a MythicMobs Spawner when the schematic is created. Then we put the mob we want the Spawner Block to spawn in the mobs section. If there is more than one mob listed, one mob will be chosen at random from the list
Blocks:
Marker1_MyMarkerBottom:
type: marker
subtype: MYTHICMOBSPAWNER
x: 2
y: 1
z: 4
properties: {}
mobs:
- AngrySludge
Marker2_MyMarkerTop:
type: marker
subtype: MYTHICMOBSPAWNER
x: 2
y: 6
z: 0
properties: {}
mobs:
- AngrySludge
The properties section is where you can add further options to customize the MythicMobs Spawner. For MythicMobs Spawners, the following properties are available:
checkforplayers: <true/false> - Whether or not players must be near the spawner for it to “activate”
cooldown: <number> - This the amount of time in seconds that the spawner waits after a mob has been spawned before it kicks off the warmup timer.
group: <group name> - This sets the group name for the spawner
leashrange: <true/false> - This is the max distance that a mob can move from its spawn location before it is teleported back to where it came from.
healonleash: <true/false> - Whether the mob should heal to full health when it leashes back to its spawner
maxmobs: <number> - This is the max number of mobs that can be spawned and existing in the world for this spawner.
moblevel: <level> - This is the level of the mob that should spawn from this spawner. Mob must have level configuration for this to work. Can only be a single level.
mobsperspawn: <number> - This is the number of mobs spawned each time the spawner spawns a mob. This is limited by the maxmobs settings.
radius: <radius> - This is the radius around the spawner at which the mob can spawn. setting to 0 will cause the mob to spawn exactly on its spawner. Setting it to 5 will allow the mob to spawn anywhere within a 5 block radius of the spawner.
showflames: <true/false> - Set this to true to show flames around the spawner. Useful for debugging purposes.
For example, the below config will create a spawner which spawns 3 level 2 SkeletalMinions's each time it activates, and will spawn them in a radius of 12 blocks.
Blocks:
Marker2_MyMarkerTop:
type: marker
subtype: MYTHICMOBSPAWNER
x: 2
y: 6
z: 0
mobs:
- SkeletalMinion
properties:
- moblevel: 2
- mobsperspawn: 5
- radius: 12