Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 138
    • Issues 138
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
  • Random Spawns

Last edited by Lxlp Mar 31, 2025
Page history

Random Spawns

RandomSpawns give you complete control over how mobs are supposed to spawn in your worlds. You can fully customize where, how often, and how many mobs spawn, allowing for precise control over your mob spawns.

Is this your first time making a RandomSpawn? Consider reading the Beginner RandomSpawns Guide

Important Differences

There are major randomspawn options that are important to distinguish between:

  • Action: REPLACE
    • The REPLACE action is used to replace mobs that are spawned by Minecraft's own random spawning system with your own mobs.
    • This allows for full control over Minecraft's spawning system.
    • If Minecraft's random spawners are turned off on your server (such as setting gamerule doMobSpawning false), this action will not do anything.
  • Action: ADD
    • The ADD action will utilize MythicMobs' own spawning algorithms which will, in a similar fashion to Minecraft's spawning system, generate random spawn points around players.
    • However these spawn points, as opposed to Minecraft's, will be generated without any conditions allowing you to spawn mobs in any light level and at any location.
    • Detailed configurations as to how these spawn points are generated can be found in MythicMobs' configuration file "config.yml".
    • Please note Action: ADD only generates points around survival & adventure mode players and only if there is a location present.
    • If a condition is used that needs an entity it will throw an exception. In case of the biome condition you can use the Biomes: option!
    • For the Action: ADD to work, you will need to go to your plugins/MythicMobs/config/config-spawning.yml and set GenerateSpawnPoints to true!
  • Action: DENY
    • The Deny action can be used to prevent mobs from spawning.
    • Any mob that matches the conditions of a RandomSpawn configured with DENY will not spawn.
  • Action: SCALE
    • upcoming feature

Options

A complete list of all available randomspawn options.

Global Randomspawn Options

Example

    my_favorite_randomspawn:
      Action: ADD
      Type: cute_zombie
      Level: 2
      Chance: 0.01
      Priority: 10
      UseWorldScaling: false
      Worlds: my_overworld,my_overworld_nether
      Biomes: JUNGLE,PLAINS
      Conditions:
      - day true
  • Action: [action]
    • The spawning method to utilize, defaults to "ADD"
    • Action: ADD
    • Action: REPLACE
  • Type: [mobtypes]
    • Defines the type of mob(s) to be spawned. Can be an array/multiple mob types
    • Type: SuperZombie
    • Type: SkeletalMage,WitchBoss
    • May also use vanilla mob types.
    • Optionally, can also have this syntax to have a single randomspawn spawn multiple mobs with different weights
Deeps:
  Types:
  - RegularZombie 100
  - BigZombie 50
  - GiantZombie 5
  - HugeZombie 1
  Worlds: world
  Chance: 0.1
  Priority: 1
  Action: ADD
  PositionType: LAND
  • Level: [number]
    • The level the specified mob(s) should spawn with.
    • Must be a fixed number, will not parse number ranges
    • May be overriden by world scaling settings (see below for options)
    • Defaults to 1
    • Level: 7
  • Chance: [number]
    • The chance for the mob(s) to spawn.
    • Defaults to 1 [1]
    • Chance: 0.025
  • Priority: [number]
    • The priority used to determine which randomspawn to prefer when multiple mobs are chosen to be spawned at the same spawn point
    • Rule of thumb: a higher priority number = higher chance to be selected when multiple mobs are chosen
    • Defaults to 1
    • Priority: 128
  • UseWorldScaling: [true/false]
    • Whether the spawned mob's level should be affected by the world scaling settings
    • Defaults to true
  • Conditions: [list]
    • A list of conditions used to further shape the random spawn.
    • The random spawn will fail if any of the given conditions aren't met
    • The full list of available conditions can be found here: Conditions manual page
    • Conditions:
    • - condition 1
    • - condition 2
    • ...
  • Worlds: [worldnames]
    • The names of worlds in which the randomspawns should be applied.
    • Can be an array / multiple worlds
    • These names correspond to how your minecraft worlds are named in the gamefiles
    • Worlds: world
    • Worlds: world,world_the_end,world_nether
    • Worlds: jays_overworld
  • Biomes: [biomes]
    • The biomes the specified mobtype(s) can spawn inside of.
    • Can be an array / multiple biomes
    • Biomes: SNOWY_TUNDRA,ICE_SPIKES,SNOWY_TAIGA,...
  • Reason: [reason]
    • The reason of minecraft-randomspawn to be matched
    • Can be an array / multiple reasons
    • If this option exists, the randomspawn will only work if it matches one of the specified reasons
    • Can be anything from this list: CreatureSpawnEvent.SpawnReason
    • Reason: NATURAL
  • PositionType: [LAND/SEA]
    • Whether this RandomSpawn should use land or sea points to spawn
    • Only works with Action: ADD
    • PositionType: LAND
  • Cooldown: [number]
    • The interval, in seconds, that must elapse between the spawning of two mobs by this same RandomSpawn
    • Added in MythicMobs 5.2.0
    • Cooldown: 60
  • Structures: [list]
    • A list of structures in which the mob can spawn. If set, the mob will be able to spawn only there.
Nether_Fortress:
  Types:
  - blaze_wisp 100
  - blazer 60
  - blaze_soldier 60
  - blaze_skeleton 50
  Worlds: world_nether
  Chance: 0.02
  Priority: 1
  Action: ADD
  PositionType: LAND
  Structures:
  - 'minecraft:fortress'
  - 'incendium:forbidden_castle'
  - 'incendium:infernal_altar'

Extra Options in config.yml

You can find general RandomSpawn options in the MythicMobs/config/config-spawning.yml file, with an up-tp-date copy of it that can be found here

Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
Config Files

Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs

MythicScribe MythicScribe - VSCode Extension

Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine

Skills
  • Mechanics
    • Mechanics by Tag
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables

Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework

Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops

Spawning
  • Spawners
  • Random Spawns

Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats

Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Item Matcher
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques