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 144
    • Issues 144
    • 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
  • Issues
  • #983

Closed
Open
Created Nov 14, 2022 by Nailm@Akiranya

The new RandomSpawn system does not spawn mobs if option "Biomes" is set

Summary

If a RandomSpawn for a mob has the option Biomes being set, then this mob will not be spawned by the new RandomSpawn system.

Contrastly, removing the Biomes option of the RandomSpawn and doing /mm reload will instantly make it work (i.e. you will soon see the mobs appear around you, and the console starts outputing information like: [MythicMobs] [i] Calling MythicMobSpawnEvent for desert_mob.

Steps to reproduce

Set a RandomSpawn for a mob with the Biomes being set, like this:

desert_mob:
  MobType: desert_mob
  Worlds: world
  Chance: 1
  Priority: 100
  Cooldown: 1
  Action: ADD
  Biomes:
  - DESERT
  Conditions:
  - playernotwithin{d=24} true
  - outside true

Run /mm d 1 to set debug level to 1 so we can see the attempts of random spawn.

Then back to the game, go to a desert biome. Wait and watch the console.

No desert_mob is spawned and no output from the console.

Now removing the Biomes option from the config, we get this:

desert_mob:
  MobType: desert_mob
  Worlds: world
  Chance: 1
  Priority: 100
  Cooldown: 1
  Action: ADD
  # Biomes:
  # - DESERT
  Conditions:
  - playernotwithin{d=24} true
  - outside true

Run /mm reload and go back to the game. You should see mobs instantly appear around you.

Current behavior

The new RandomSpawn system does not spawn mobs if option "Biomes" is set.

Intended correct behavior

With the settings above, if I stand in the desert there should be mobs instantly appearing in my sight.

Server log file

My log file: https://pastebin.com/6uVYDYTd, my combined config files: https://pastebin.com/1iCbXGwC and my disguises file: https://pastebin.com/evtPrwL1

Debug log snippet

There is no debug log honestly. The RandomSpawn simply doesn't output anything in the console...

Proposed fixes

I've had no idea sorry.

Edited Nov 14, 2022 by Nailm
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking