Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-12395

Player spawnpoint used in monster spawning seems to be unaffected by sleeping in bed or /spawnpoint command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • Minecraft 1.4.7, Minecraft 1.5
    • Unconfirmed

      The code which does normal animal/monster spawning (MCP naming class SpawnerAnimals.findChunksForSpawning(), or func_77192_a()), uses a single spawn point fetched as worldServer.getSpawnPoint() to keep a volume around it clear from spawning monsters.

      However, sleeping on bed or using command /spawnpoint does not change that location (tested by console-logging the fetched location in the spawning method). It would also seem theoretically impossible to handle the spawnpoints of multiple players (on multiplayer server) with that code. (I think that location is the initial spawnpoint for single-player.)

      Keeping an apparently "random" single location in the world clear from monster spawning, as it is doing now, seems pointless. More appropriate operation would be either ignore that location completely, or change it so that it considers the effective/current spawnpoint of any and all players.

      Related to MC-10303, where the current functionality causes mobs to not spawn near that spawnpoint when using superflat gametype.

        1. slimes_2.png
          slimes_2.png
          759 kB
        2. slimes_1.png
          slimes_1.png
          1011 kB

            Unassigned Unassigned
            bugi74 Markku
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: