A feedback area designed for scripting and mods suggestions and feedback. Please note bug reports and support issues will be removed.

27

Control mob spawning rules with datapacks

4 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    Like biome's and light levels?

  • 0
    Registered User commented
    Comment actions Permalink

    im playing hardcore and mobs arent spawning

     

  • 1
    Registered User commented
    Comment actions Permalink

    This is a huge issue with Worldgen Datapacks, Passive mobs will only spawn on grass and near flat terrain, causing terrain with various materials or too much hills to not have any Passive mobs. This can't even be cheesed but doubling Passive mobs spawning because it will just result in bigger groups in adequate terrain.

  • 0
    Registered User commented
    Comment actions Permalink

    Wanted to add onto this with how I think configuration could work: 

    1) A block tag for what blocks the mobs can spawn on. (i.e. #minecraft:sheep_spawn_on, #minecraft:creepers_spawn_on). Some mobs already use block tags to determine what blocks they can spawn on, so making all mobs use it would make things easier.

    2) Biome tags to determine where mobs can spawn. This would primarily exist so modded mobs can be added to vanilla and other modded biomes more easily and in a data-driven way. 

    3) Block/Light level conditions for each mob. I know that the "dimension_type" files already have this for monster spawning, but passive mobs are still hardcoded at 9 or above.

    4) The difficulty level the server must be on for mobs to spawn. This would default to Peaceful for passive mobs, and Easy for hostile mobs. This also means players could use datapacks to make mobs spawn on Peaceful difficulty, but not force all players to use it.

    5) For mobs that can wear armor / wield tools, the likelihood of those mobs having tools / wearing armor.