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

Spawner counts related entities against MaxNearbyEntities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w46a
    • 1.19.3, 1.20 Pre-release 7, 23w44a
    • None
    • Confirmed
    • Mob spawning
    • Low
    • Platform

      This bug was first reported in MC-26274. Since it has been closed for many years (erroneously), I am reopening under a new issue.

      Before spawning, spawners check if there are more than MaxNearbyEntities entities of the same type as the spawner. If so, it skips spawning. However, this miscounts entities that are similar. This could be WAI, if not for the fact that it's not symmetric:

      Cave spiders count toward a Spider spawner's mob cap, but spiders don't count toward a cave spider spawner.

      Magma cubes block slime spawners, but not vice versa.

      Pigmen, husks, and drowned block zombie spawners, but not vice versa.

       

      To reproduce, spawn many pigmen. Place a zombie spawner nearby. No zombies will spawn.

            Dat12 [Mojang] etanaratsastaja
            tchatow ShadowGamer
            Votes:
            9 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: