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

Iron golems do not follow the doMobSpawning gamerule

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 1.14.2
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      In my world, doMobSpawning is false, and iron golems still spawn in the village I made. But everything else does not spawn.

      Code analysis / fix

      Based off of Minecraft 1.11, MCP 9.35

      net.minecraft.village.Village.java
          public void tick(int tickCounterIn)
          {
              //added "&& this.worldObj.getGameRules().getBoolean("doMobSpawning")"
              if (this.numIronGolems < i && this.villageDoorInfoList.size() > 20 && this.worldObj.rand.nextInt(7000) ==  0 && this.worldObj.getGameRules().getBoolean("doMobSpawning"))
              {
              	//...
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nickian16 nickian16
            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: