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

Mobs no longer spawn in blocks with various redstone components

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w46a, Minecraft 15w47a, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10.2, Minecraft 1.11
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      Mobs will no longer randomly spawn if either the block being spawned in or the block above that contains any of the following: buttons, tripwire hooks, pressure plates, levers, redstone torches, redstone repeaters, comparators, redstone dust.

      It's not clear whether this was an accidental change with the other changes to mob spawning, and it breaks some things, so filing it to be looked at.

      Reasoning it might be accidental: in MCP terms, the old logic allowed spawning if !isNormalCube(), which expands to !(isOpaque() && isFullCube() && !canProvidePower()). New logic is !isSolidFullCube() && !canProvidePower(), which expands to !(blocksMovement() && isFullCube()) && !canProvidePower(). They might have meant that to be !(blocksMovement() && isFullCube() && !canProvidePower()) (note moved paren), just swapping the isOpaque() for blocksMovement(), and got confused like I initially did with the double-negative on canProvidePower().


      Code analysis by Nasm Nasmus can be found in this comment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                anomie x Anomie X
              • Votes:
                38 Vote for this issue
                Watchers:
                36 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: